Overleaf MCP Server
by yangzichaoio.github.yangzichao/mcp-server-overleafv0.3.4
Read and edit Overleaf papers from any AI client. Edits can arrive as tracked-change suggestions.
context tax
queued
security
queued
cold start
queued
freshness
Active20d ago
Install Overleaf MCP server
Install in Claude Code
claude mcp add overleaf -e OVERLEAF_GIT_TOKEN='<overleaf-git-token>' -e OVERLEAF_PROJECT_ID='<overleaf-project-id>' -e OVERLEAF_SESSION_COOKIE='<overleaf-session-cookie>' -- npx -y mcp-server-overleaf --stdioInstall in Cursor
{
"mcpServers": {
"overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf",
"--stdio"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<overleaf-git-token>",
"OVERLEAF_PROJECT_ID": "<overleaf-project-id>",
"OVERLEAF_SESSION_COOKIE": "<overleaf-session-cookie>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf",
"--stdio"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<overleaf-git-token>",
"OVERLEAF_PROJECT_ID": "<overleaf-project-id>",
"OVERLEAF_SESSION_COOKIE": "<overleaf-session-cookie>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"overleaf": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf",
"--stdio"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<overleaf-git-token>",
"OVERLEAF_PROJECT_ID": "<overleaf-project-id>",
"OVERLEAF_SESSION_COOKIE": "<overleaf-session-cookie>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf",
"--stdio"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<overleaf-git-token>",
"OVERLEAF_PROJECT_ID": "<overleaf-project-id>",
"OVERLEAF_SESSION_COOKIE": "<overleaf-session-cookie>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| OVERLEAF_GIT_TOKEN | yes | yes | Overleaf Git authentication token, from https://www.overleaf.com/user/settings under Git integration. |
| OVERLEAF_PROJECT_ID | yes | — | The project to open: its 24-character id, or the Overleaf address bar URL that contains it. |
| OVERLEAF_SESSION_COOKIE | — | yes | Optional. An Overleaf browser session cookie, which turns on the tracked-changes tools: suggest an edit, read the review panel, leave a comment. |
Freshness
Active — last maintenance signal 20d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-19 · 20d ago · GitHub
Latest release
2026-09-11 · 28d ago · GitHub · v0.3.4
Package published
no data · npm/PyPI
Registry entry updated
2026-09-11 · 28d ago · official registry · v0.3.4
FAQ
›How do I install the Overleaf MCP server in Claude Code?
Run: claude mcp add overleaf -e OVERLEAF_GIT_TOKEN='<overleaf-git-token>' -e OVERLEAF_PROJECT_ID='<overleaf-project-id>' -e OVERLEAF_SESSION_COOKIE='<overleaf-session-cookie>' -- npx -y mcp-server-overleaf --stdio. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Overleaf require an API key?
Yes. It expects OVERLEAF_GIT_TOKEN, OVERLEAF_PROJECT_ID, OVERLEAF_SESSION_COOKIE, of which 2 are secrets.
›Can I use Overleaf as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Overleaf in the official MCP registry?
Yes, as io.github.yangzichao/mcp-server-overleaf.
Alternatives to Overleaf
Other science & research MCP servers.