Overleaf MCP Server
Provides read-only access to Overleaf projects, allowing users to list projects and files, and read file contents from their Overleaf LaTeX projects.
Click on "Deploy 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 MCP Serverlist all files in my current project"
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 Server
MCP server that lets compatible clients (e.g., Claude Desktop, Cursor, VS Code) interact with Overleaf projects via tools and resources.
Features
List projects and files.
Read files.
Safe, read-only mode.
Adjust to match your implementation.
Related MCP server: overleaf-mcp
Requirements
Python 3.10+
An Overleaf account (or session cookie)
Configure a client
Claude Desktop
Edit claude_desktop_config.json:
{
"mcpServers": {
"overleaf": {
"command": "uvx",
"args": ["overleaf-mcp"],
"env": {
"PROJECT_ID": "<YOUR_PROJECT_ID>",
"OVERLEAF_TOKEN": "<YOUR_OVERLEAF_TOKEN>"
},
"timeout": 120000
}
}
}If you have a console script, set "command": "overleaf-mcp" and remove "args".
Cursor (settings.json)
{
"mcpServers": {
"overleaf": {
"command": "uvx",
"args": ["overleaf-mcp"],
"env": {
"PROJECT_ID": "<YOUR_PROJECT_ID>",
"OVERLEAF_TOKEN": "<YOUR_OVERLEAF_TOKEN>"
}
}
}
}VS Code MCP (.vscode/mcp.json)
{
"servers": {
"my-mcp-server-overleaf": {
"type": "stdio",
"command": "uvx",
"args": ["overleaf-mcp"],
"env": {
"PROJECT_ID": "<YOUR_PROJECT_ID>",
"OVERLEAF_TOKEN": "<YOUR_OVERLEAF_TOKEN>"
}
}
},
"inputs": []
}Tools
list_of_files: List all files in the project.
read_file: Read a specified file from the project.
This server cannot be deployed
Maintenance
Related MCP Connectors
Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
Read-only catalog of prompt packs and rule files: Cursor, CLAUDE.md, AGENTS.md, SKILL.md.
Read-only access to your Citlyze workspace: AI search visibility, citations, and recommendations.
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides access to Overleaf projects via Git integration, allowing Claude and other MCP clients to read LaTeX files, analyze document structure, and extract content.6130 npm332MIT
- AlicenseNot gradedqualityFmaintenanceEnables 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.75 npm35MIT
- AlicenseAqualityDmaintenanceEnables Claude Code to manage Overleaf projects by auto-discovering them and reading/editing files across all projects, with a review-before-push local-workspace workflow.17MIT