Overleaf MCP server for Claude, Codex, ChatGPT, and Cursor with safe LaTeX editing and review.
Connect Runs on your machine
claude mcp add mcp-server-overleaf -e OVERLEAF_GIT_TOKEN=<OVERLEAF_GIT_TOKEN> -e OVERLEAF_PROJECT_ID=<OVERLEAF_PROJECT_ID> -e OVERLEAF_SESSION_COOKIE=<OVERLEAF_SESSION_COOKIE> -- npx -y [email protected]
{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<OVERLEAF_SESSION_COOKIE>"
}
}
}
}
{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<OVERLEAF_SESSION_COOKIE>"
}
}
}
}
{
"servers": {
"mcp-server-overleaf": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<OVERLEAF_SESSION_COOKIE>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
OVERLEAF_GIT_TOKENRequired, secret | Overleaf Git authentication token, from https://www.overleaf.com/user/settings under Git integration. |
OVERLEAF_PROJECT_IDRequired | The project to open: its 24-character id, or the Overleaf address bar URL that contains it. |
OVERLEAF_SESSION_COOKIEOptional, secret | Optional. An Overleaf browser session cookie, which turns on the tracked-changes tools: suggest an edit, read the review panel, leave a comment. |
Details
| Package | [email protected] (NPM, stdio) |
| Package | https://github.com/yangzichao/mcp-server-overleaf/releases/download/v0.3.9/mcp-server-overleaf-0.3.9.mcpb (MCPB, stdio) |
| First published | 15 Oct 2026 |
| Last updated | 15 Oct 2026 |
| Registry name | io.github.yangzichao/mcp-server-overleaf |
More other servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
