mcp-server-overleaf
A conflict-safe Overleaf MCP server for Claude, Codex, ChatGPT, and Cursor. It allows agents to read, search, edit, compile, sync, and review LaTeX papers with tracked changes. Edits stay in a local clone until explicitly published, and the server checks for collaborator changes before pushing to prevent conflicts.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Read, search, and edit LaTeX papers by section or exact text
- Compile LaTeX projects locally and inspect diffs
- Publish changes to Overleaf with conflict detection
- Send edits as tracked-change suggestions for co-authors
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
mcp-server-overleaf 0.3.9
{
"version": "0.3.9",
"transport": "stdio",
"identifier": "mcp-server-overleaf",
"runtimeHint": "npx",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"packageArguments": [
{
"type": "positional",
"value": "--stdio",
"valueHint": "transport",
"description": "Serve on stdio, which is the transport a local client starts."
}
],
"environmentVariables": [
{
"name": "OVERLEAF_GIT_TOKEN",
"isRequired": true,
"description": "Overleaf Git authentication token, from https://www.overleaf.com/user/settings under Git integration."
},
{
"name": "OVERLEAF_PROJECT_ID",
"isRequired": true,
"description": "The project to open: its 24-character id, or the Overleaf address bar URL that contains it."
},
{
"name": "OVERLEAF_SESSION_COOKIE",
"description": "Optional. An Overleaf browser session cookie, which turns on the tracked-changes tools: suggest an edit, read the review panel, leave a comment."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf@0.3.9",
"--stdio"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}Cline
{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf@0.3.9",
"--stdio"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}VS Code
{
"servers": {
"mcp-server-overleaf": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf@0.3.9",
"--stdio"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"mcp-server-overleaf": {
"command": "npx",
"args": [
"-y",
"mcp-server-overleaf@0.3.9",
"--stdio"
],
"env": {
"OVERLEAF_GIT_TOKEN": "<YOUR_OVERLEAF_GIT_TOKEN>",
"OVERLEAF_PROJECT_ID": "<YOUR_OVERLEAF_PROJECT_ID>",
"OVERLEAF_SESSION_COOKIE": "<YOUR_OVERLEAF_SESSION_COOKIE>"
}
}
}
}Let your agent find its tools
Find servers like mcp-server-overleaf from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.