MCP server that connects Claude to Overleaf. Read, edit, compile and restore LaTeX projects on the free tier.
MCPpedia last refreshed this data
Overleaf Claude MCP is an MCP server that MCP server that connects Claude to Overleaf. Read, edit, compile and restore LaTeX projects on the free tier. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 72/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"overleaf": {
"args": [
"C:/CoolYEAH/overleaf-claude-mcp/dist/index.js"
],
"command": "node"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Connect Claude to your Overleaf account. Claude can list your projects, pick one, read the LaTeX and the figures, edit files, compile, and pull the PDF back.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in ai-ml / writing
🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.
Unified real-time search engine skill for AI agents.
The official MCP server implementation for the Perplexity API Platform
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
MCP Security Weekly
Get CVE alerts and security updates for Overleaf Claude MCP and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Connect Claude to your Overleaf account. Claude can list your projects, pick one, read the LaTeX and the figures, edit files, compile, and pull the PDF back. It can also run your writing through free AI content detectors and check it for plagiarism, and tell you which sentence, in which file, on which line, was flagged.
Overleaf has no public API on the free tier: the Git bridge and Dropbox sync are Premium features. So this server speaks the same internal HTTP and socket endpoints the Overleaf web app uses, authenticated with a browser session you create once. Every endpoint was read out of Overleaf's own JavaScript bundle and then exercised against a live account. See Verified endpoints.
node -v)claude --version) or Claude DesktopIf you only want to use the server, you do not need this repository at all. Register it straight from npm:
claude mcp add overleaf -- npx -y overleaf-claude-mcp@latest
Then paste your overleaf_session2 cookie into ~/.overleaf-claude-mcp/cookie.txt and save it, and you are done. See Paste the cookie into a file.
Because the registration resolves @latest, every Claude restart picks up the newest published version. There is nothing to pull and nothing to rebuild. Two things to know: it costs a registry lookup at startup, so a machine with no network will fail to start the server, and the AI detector that drives a real browser needs its Chromium once, with npx playwright install chromium.
Everything below is for working on the server, or for running it from a clone.
The server creates ~/.overleaf-claude-mcp/cookie.txt the first time it starts. On Windows that is C:\Users\<you>\.overleaf-claude-mcp\cookie.txt. Open it in any text editor, paste the overleaf_session2 value on the empty line under the instructions, and save.
The server checks that file on every Overleaf tool call. When the value in it changes, it is verified against Overleaf and saved as the session, so there is nothing to restart. When the session expires five days later, paste the new value over the old one and save again. Lines starting with # are ignored.
If Overleaf rejects the value, the next tool call says so and names the file.
The server also reads OVERLEAF_SESSION_COOKIE when it starts. When that value differs from the saved session, it is verified against Overleaf and saved, so a fresh cookie only needs a new registration and a restart:
claude mcp add overleaf -e OVERLEAF_SESSION_COOKIE="s%3A..." -- node C:/path/to/overleaf-claude-mcp/dist/index.js
If Overleaf rejects the value, the server keeps using the saved session.
From this folder, on Windows:
setup.cmd
On macOS or Linux:
./setup.sh
Setup runs five steps and prints each one:
dist/Want Claude to set this up for you? Tell it: "set up overleaf-claude-mcp, read AGENTS.md first". It runs `npm run