Overleaf MCP server for Claude, Codex, ChatGPT, and Cursor with safe LaTeX editing and review.
registry version 0.3.9
npm
npx -y mcp-server-overleafnpm
npx -y mcp-server-overleaf@0.3.9mcpb
https://github.com/yangzichao/mcp-server-overleaf/releases/download/v0.3.9/mcp-server-overleaf-0.3.9.mcpb
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf@0.3.9"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env OVERLEAF_GIT_TOKEN=<YOUR_OVERLEAF_GIT_TOKEN> --env OVERLEAF_PROJECT_ID=<YOUR_OVERLEAF_PROJECT_ID> --env OVERLEAF_SESSION_COOKIE=<YOUR_OVERLEAF_SESSION_COOKIE> mcp-server-overleaf -- npx -y mcp-server-overleaf
claude mcp add --env OVERLEAF_GIT_TOKEN=<YOUR_OVERLEAF_GIT_TOKEN> --env OVERLEAF_PROJECT_ID=<YOUR_OVERLEAF_PROJECT_ID> --env OVERLEAF_SESSION_COOKIE=<YOUR_OVERLEAF_SESSION_COOKIE> mcp-server-overleaf -- npx -y mcp-server-overleaf@0.3.9
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf@0.3.9"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}{
"servers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf@0.3.9"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf@0.3.9"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
OVERLEAF_GIT_TOKEN required secret — Overleaf Git authentication token, from https://www.overleaf.com/user/settings under Git integration.OVERLEAF_PROJECT_ID required — The project to open: its 24-character id, or the Overleaf address bar URL that contains it.OVERLEAF_SESSION_COOKIE secret — Optional. An Overleaf browser session cookie, which turns on the tracked-changes tools: suggest an edit, read the review panel, leave a comment.最近更新于 33 天前 · MIT license
Overleaf MCP Server — Safe AI Editing for LaTeX Papers Connect Claude Code, Claude Desktop, Codex, ChatGPT, Cursor, VS Code, or any MCP client to Overleaf. Read, search, edit, compile, and review real LaTeX projects without copy pasting your paper into a chat window. Edits stay in a local clone unti…
Summary from the project README — github.com/yangzichao/mcp-server-overleaf
Distributed as npm, mcpb, listed under Developer Tools. Review our MCP security guide before granting access to real data.
Overleaf MCP Server — Safe AI Editing for LaTeX Papers Connect Claude Code, Claude Desktop, Codex, ChatGPT, Cursor, VS Code, or any MCP client to Overleaf. Read, search, edit, compile, and review real LaTeX projects without copy pasting your paper into a chat window. Edits stay in a local clone unti
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/yangzichao/mcp-server-overleaf. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/mcp-server-overleaf/)
HTML
<a href="https://mcpnav.net/server/mcp-server-overleaf/"><img src="https://mcpnav.net/badge/mcp-server-overleaf.svg" alt="Listed on MCPNav" height="20"></a>