Best for
- People writing LaTeX papers or research documents in Overleaf
- People who want an AI client to inspect or help work with Overleaf projects
Suitable for LaTeX users working with Overleaf projects through an AI client. The source lists file operations, compilation, PDFs, diffs, comments, and tracked changes; writes require confirmation. A valid Overleaf session cookie is required.
Strongest · Documentation 14/20 Weakest · Reliability 10/20
Static review · not runReviewed 2026-12-01
Read the FMRS scoring method →Runtime:Node.js 22+
OVERLEAF_SESSION
Required Overleaf session cookie; after signing in, copy the overleaf_session2 value from your browser's developer tools (self-hosted instances often use overleaf.sid).
OVERLEAF_BASE_URL
Base URL for a self-hosted Overleaf instance; get it from the instance administrator. Defaults to https://www.overleaf.com.
OVERLEAF_COOKIE_NAME
Session cookie name for a self-hosted instance; confirm it with the instance administrator. Defaults to overleaf_session2.
Add the supplied npx configuration to your client's MCP settings and set the required OVERLEAF_SESSION (Overleaf session cookie). For self-hosted instances, OVERLEAF_BASE_URL and OVERLEAF_COOKIE_NAME are optional settings.
{"mcpServers":{"overleaf":{"command":"npx","args":["-y","--package","@aloth/olcli","olcli-mcp"]}}}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"overleaf": {
"command": "npx",
"args": [
"-y",
"--package",
"@aloth/olcli",
"olcli-mcp"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.overleaf] command = "npx" args = ["-y", "--package", "@aloth/olcli", "olcli-mcp"]
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add overleaf -- npx -y --package @aloth/olcli olcli-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm that olcli tools appear in your client's MCP tool list. Then ask it to list your Overleaf projects; a successful project list confirms the connection and authentication.
Once connected, you can ask your AI assistant things like:
Listed from the project's documentation, not tested by this site.
olcli gives AI clients access to Overleaf projects for files, compilation and PDFs, diffs, comments, and tracked changes. The server uses stdio transport.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision 5f7065357052 Data synced 2026-12-05 Read the FMRS scoring method Markdown