Lilia MCP server

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/mcp

At a glance

Server addresshttps://editor.liliaeditor.com/api/mcp
TransportStreamable HTTP (POST)
Sign-inOAuth 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 serverhttps://auth.liliaeditor.com
Resource metadatahttps://editor.liliaeditor.com/.well-known/oauth-protected-resource/api/mcp
Scopesdocuments:read, documents:write (plus openid, email, profile, offline_access)
Server namelilia (“Lilia”), version 1.0.0
Tools36: 16 read-only, 20 that write (3 of them marked destructive). Every tool has a title and its read-only or destructive hint.
Prompts6 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/mcp

Cursor (~/.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

ToolTitleDoesHint
list_documentsList documentsYour documents and the ones shared with you.Read-only
get_outlineRead a document's outlineIts headings and blocks, in order.Read-only
get_documentRead the whole documentEvery block, in order, in pages.Read-only
get_blockRead a blockOne block in full.Read-only
search_documentSearch a documentFind text across its blocks.Read-only
get_latexShow the LaTeXThe LaTeX Lilia compiles for the document.Read-only
get_document_settingsRead the page setupClass, paper, margins, columns, fonts.Read-only
list_versionsList saved versionsThe versions kept for the document.Read-only
list_commentsRead the commentsReviewers' comments and replies.Read-only
whoamiYour account and planWhich account the app uses, its plan, the actions left today and the month’s limits.Read-only

Write and revise

ToolTitleDoesHint
create_documentCreate a documentA new document, optionally with a first draft in LaTeX.Writes
add_blockInsert contentA paragraph, equation, list, table, figure, theorem…Writes
add_sectionAdd a sectionA section, subsection or subsubsection heading.Writes
edit_blockEdit a blockChange one block.Writes
paste_contentPaste text into a documentLaTeX, Markdown or plain text, checked as it lands.Writes
reorder_blocksReorder blocksMove blocks around.Writes
set_titleSet the titleTitle, authors, date and keywords.Writes
set_document_settingsChange the page setupClass, paper, margins, columns, fonts.Writes
set_venueFormat for a venueOne of 20 publisher formats (ACM, IEEE, LNCS, Elsevier, APS, AMS, SIAM…).Writes
add_referenceAdd a referenceFrom a DOI, an arXiv id or an ISBN, looked up so the entry is the real one.Writes
add_figure_imagePut an image in a figureA PNG, JPEG or PDF image, with alt text.Writes
rewrite_documentRewrite the whole documentReplaces the content from LaTeX in one step; it can be undone.Writes · destructive
remove_blockRemove a blockDeletes one block; it can be undone.Writes · destructive
restore_versionRestore a saved versionGoes back to an earlier version.Writes · destructive

Import, check and export

ToolTitleDoesHint
import_documentImport a fileA .tex, an Overleaf .zip, a .docx or a .md, in one call.Writes
start_importStart a file importA larger file the author drops on Lilia’s page.Writes
import_statusCheck an importWhere a started import stands.Read-only
start_bulk_importStart a bulk PDF importMany PDFs at once (scanned notebooks, up to 50), each into its own document, in the background.Writes
bulk_import_statusCheck a bulk importPages read per file, and each document when it is done.Read-only
check_documentCheck the document compilesCompiles it with a real TeX engine: errors and warnings by block, page count.Read-only
export_documentExport a documentA PDF, a .tex, a zip that opens in Overleaf, or Word.Read-only

Comments and help

ToolTitleDoesHint
add_commentAdd a commentOn a block.Writes
reply_to_commentReply to a commentIn its thread.Writes
resolve_commentResolve a commentMark it done.Writes
search_helpSearch Lilia's helpLilia's help articles.Read-only
get_helpRead a help articleOne 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

PlanPriceConnector actions
Free€025 a day (3 documents, every export, the compile check)
Pro€10.99 a month or €99 a year500 a day (unlimited documents and imports)
Operation pack€5, paid once300 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