Technical reference
Lilia's connector is a remote MCP server. Your AI app signs in as you, with OAuth, and works in your own Lilia account: it writes and revises documents, checks they compile with a real TeX engine, and exports PDF, LaTeX, an Overleaf zip or Word. For what it does in plain words, see the connector page.
https:// editor.liliaeditor.com/ api/ mcpAt a glance
| Server address | https://editor.liliaeditor.com/api/mcp |
|---|---|
| Transport | Streamable HTTP (POST) |
| Sign-in | OAuth 2.1 with PKCE (S256). Dynamic client registration and client ID metadata documents are both supported, so no client id is needed in advance. |
| Authorization server | https://auth.liliaeditor.com |
| Resource metadata | https://editor.liliaeditor.com/.well-known/oauth-protected-resource/api/mcp |
| Scopes | documents:read, documents:write (plus openid, email, profile, offline_access) |
| Server name | lilia (“Lilia”), version 1.0.0 |
| Tools | 36: 16 read-only, 20 that write (3 of them marked destructive). Every tool has a title and its read-only or destructive hint. |
| Prompts | 6 ready-made prompts |
Without a token the server answers 401 with a WWW-Authenticate header naming the resource metadata, which is how apps discover the sign-in. The user signs in to Lilia (or creates a free account) and clicks Allow on “Connect … to Lilia?”.
Connect it
In apps with a connector screen (Claude, ChatGPT, Grok, Le Chat, Perplexity…), add a custom connector with the address above. Each app's own steps are on editor.liliaeditor.com/connect. In code editors and terminals:
Claude Code
claude mcp add --transport http lilia https://editor.liliaeditor.com/api/mcpCursor (~/.cursor/mcp.json)
{
"mcpServers": {
"lilia": { "url": "https://editor.liliaeditor.com/api/mcp" }
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"lilia": { "type": "http", "url": "https://editor.liliaeditor.com/api/mcp" }
}
}The first call opens Lilia's sign-in in your browser.
Tools
Find and read
| Tool | Title | Does | Hint |
|---|---|---|---|
list_documents | List documents | Your documents and the ones shared with you. | Read-only |
get_outline | Read a document's outline | Its headings and blocks, in order. | Read-only |
get_document | Read the whole document | Every block, in order, in pages. | Read-only |
get_block | Read a block | One block in full. | Read-only |
search_document | Search a document | Find text across its blocks. | Read-only |
get_latex | Show the LaTeX | The LaTeX Lilia compiles for the document. | Read-only |
get_document_settings | Read the page setup | Class, paper, margins, columns, fonts. | Read-only |
list_versions | List saved versions | The versions kept for the document. | Read-only |
list_comments | Read the comments | Reviewers' comments and replies. | Read-only |
whoami | Your account and plan | Which account the app uses, its plan, the actions left today and the month’s limits. | Read-only |
Write and revise
| Tool | Title | Does | Hint |
|---|---|---|---|
create_document | Create a document | A new document, optionally with a first draft in LaTeX. | Writes |
add_block | Insert content | A paragraph, equation, list, table, figure, theorem… | Writes |
add_section | Add a section | A section, subsection or subsubsection heading. | Writes |
edit_block | Edit a block | Change one block. | Writes |
paste_content | Paste text into a document | LaTeX, Markdown or plain text, checked as it lands. | Writes |
reorder_blocks | Reorder blocks | Move blocks around. | Writes |
set_title | Set the title | Title, authors, date and keywords. | Writes |
set_document_settings | Change the page setup | Class, paper, margins, columns, fonts. | Writes |
set_venue | Format for a venue | One of 20 publisher formats (ACM, IEEE, LNCS, Elsevier, APS, AMS, SIAM…). | Writes |
add_reference | Add a reference | From a DOI, an arXiv id or an ISBN, looked up so the entry is the real one. | Writes |
add_figure_image | Put an image in a figure | A PNG, JPEG or PDF image, with alt text. | Writes |
rewrite_document | Rewrite the whole document | Replaces the content from LaTeX in one step; it can be undone. | Writes · destructive |
remove_block | Remove a block | Deletes one block; it can be undone. | Writes · destructive |
restore_version | Restore a saved version | Goes back to an earlier version. | Writes · destructive |
Import, check and export
| Tool | Title | Does | Hint |
|---|---|---|---|
import_document | Import a file | A .tex, an Overleaf .zip, a .docx or a .md, in one call. | Writes |
start_import | Start a file import | A larger file the author drops on Lilia’s page. | Writes |
import_status | Check an import | Where a started import stands. | Read-only |
start_bulk_import | Start a bulk PDF import | Many PDFs at once (scanned notebooks, up to 50), each into its own document, in the background. | Writes |
bulk_import_status | Check a bulk import | Pages read per file, and each document when it is done. | Read-only |
check_document | Check the document compiles | Compiles it with a real TeX engine: errors and warnings by block, page count. | Read-only |
export_document | Export a document | A PDF, a .tex, a zip that opens in Overleaf, or Word. | Read-only |
Comments and help
| Tool | Title | Does | Hint |
|---|---|---|---|
add_comment | Add a comment | On a block. | Writes |
reply_to_comment | Reply to a comment | In its thread. | Writes |
resolve_comment | Resolve a comment | Mark it done. | Writes |
search_help | Search Lilia's help | Lilia's help articles. | Read-only |
get_help | Read a help article | One article in full. | Read-only |
Prompts
write_paper (Write a paper) · format_for_venue (Format for a venue) · fix_compile (Fix what doesn't compile) · add_references (Add references) · export_files (Export) · import_and_tidy (Import a file)
What it can and can't do
- It works as you: it sees only documents you can open, and changes only documents you own or can edit.
- It can't share a document or delete one.
- Every change can be undone in the editor, and versions are kept.
- You can disconnect an app at any time: Settings → Connected apps → Disconnect.
Limits and prices
| Plan | Price | Connector actions |
|---|---|---|
| Free | €0 | 25 a day (3 documents, every export, the compile check) |
| Pro | €10.99 a month or €99 a year | 500 a day (unlimited documents and imports) |
| Operation pack | €5, paid once | 300 more actions on Free or Pro; they never expire |
An action is one tool call (the two help tools don't count), counted per account and UTC day. Past the day's actions, the tool answers with a message your app reads out. Separately, each account may make up to 60 connector calls a minute; past that the server answers 429 with a Retry-After header. Plans and prices: liliaeditor.com/#pricing.
Privacy and support
- Your documents stay in your Lilia account; the connector reads and writes them only when your app calls a tool.
- Privacy policy: editor.liliaeditor.com/legal/privacy · Terms: editor.liliaeditor.com/legal/terms
- Help: Connect your AI and the rest of Lilia's help.