overleaf-mcp
Provides the ability to read and edit Overleaf projects, with atomic compile-gated writes via git bridge, including listing files, outlining structure, reading, searching, editing, writing, compiling, and rendering Overleaf documents.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@overleaf-mcpAdd a paragraph about the results to section 4"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Overleaf MCP
Read and edit Overleaf projects from Claude, using the Overleaf git bridge.
WARNING: When your provide the MCP with a project ID, This gives Claude access to the ENTIRE project directory.
Requirements
Overleaf premium (check your institution's access!)
uv,git, TeX distribution, andpdftocairo(you couldbrew install poppleron Macs)
Related MCP server: overleaf-mcp
Setup
Clone the repo.
Create
~/.overleaf-mcp/projects.json. An example is inprojects.json.example. The project id is the string after/project/in the Overleaf URL.{ "default": "paper", "projects": { "paper": "<project-id>" } }Add the server to your Claude config. You can generate the git token in Overleaf Account Settings.
{ "mcpServers": { "overleaf": { "command": "/absolute/path/to/uv", "args": ["run", "--directory", "/absolute/path/to/overleaf-mcp", "overleaf-mcp"], "env": { "OVERLEAF_TOKEN": "your_git_token" } } } }Restart Claude.
How it works
A project is unverified until open_project succeeds, which checks that
every \usepackage resolves against your local TeX environment, and baseline-compiles each root.
All writes are refused until open_project passes
A .tex containing \documentclass is a root, while children are included with
by \input/\include/\subfile. Editing a child re-compiles the roots that include
it. For instance, this covers a standard main.tex + sections/ project, a single-file paper, or even a
folder of standalone one-page documents with the same rule.
Further, any errors block a push while warnings are only reported.
Tools
tool | description |
| pull, verify environment, and baseline-compile |
| list |
| structure with line numbers |
| line-numbered, optionally a range ( |
| regex search, |
| replace an exact unique snippet, compile-gated |
| create or overwrite a file, compile-gated |
| copy an image or binary |
| compile the owning root, return a digest |
| one page as an image - very useful for layout/images |
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceProvides access to Overleaf projects via Git integration, allowing Claude and other MCP clients to read LaTeX files, analyze document structure, and extract content.695236MIT
- AlicenseNot gradedqualityBmaintenanceEnables editing Overleaf projects from Claude, with tools to list, read, edit, and sync files via Git.MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude and AI agents to read and edit Overleaf documents in real time, with support for project listing, document manipulation, LaTeX compilation, and live collaboration.1038MIT
- AlicenseNot gradedqualityBmaintenanceConnects Claude/ChatGPT to Overleaf projects via the Git integration, enabling read, edit, write, and file management through natural language commands.2AGPL 3.0
Related MCP Connectors
Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
Read, edit, publish, and preview your pepita websites from Claude.
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/meaninglessC0de/Overleaf-Claude-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server