OverleafMCP
by mjyoo2·★ 128·Score 48
An MCP server for AI assistants to read and edit Overleaf LaTeX projects via Git integration.
Overview
OverleafMCP provides a comprehensive interface for AI assistants to interact with Overleaf LaTeX projects. It allows listing, reading, and writing files from and to Overleaf projects, parsing LaTeX document structure, extracting specific sections, and managing multiple projects. The server integrates seamlessly with Claude Desktop, Cursor, Windsurf, and any other MCP client, enabling AI systems to understand and edit LaTeX documents in a natural way. The implementation includes robust security measures to protect Overleaf Git tokens and provides multiple configuration options to suit different workflow needs.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need AI assistance with LaTeX document management in Overleaf projects, especially for academic papers or technical documentation requiring section-level edits.
When NOT to choose this
Avoid if you're not using Overleaf, need non-LaTeX document support, or require authentication beyond simple project tokens with no access controls.
Tools this server exposes
8 tools extracted from the READMElist_projectsList all configured projects
list_filesextension?, projectName?List files in a project (default: .tex files)
read_filefilePath, projectName?Read a specific file from the project
get_sectionsfilePath, projectName?Get all sections from a LaTeX file
get_section_contentfilePath, sectionTitle, projectName?Get content of a specific section
status_summaryprojectName?Get a comprehensive project status summary
write_filefilePath, content, commitMessage, projectName?Write the full content of a file to the project
write_sectionfilePath, sectionTitle, newContent, commitMessage, projectName?Write the content of a specific section to the project
Comparable tools
Installation
Installation
Quick Start (recommended):
**macOS / Linux**
{
"mcpServers": {
"overleaf": {
"command": "npx",
"args": ["-y", "@mjyoo2/overleaf-mcp"],
"env": {
"OVERLEAF_PROJECT_ID": "YOUR_OVERLEAF_PROJECT_ID",
"OVERLEAF_GIT_TOKEN": "YOUR_OVERLEAF_GIT_TOKEN"
}
}
}
}**Windows**
{
"mcpServers": {
"overleaf": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@mjyoo2/overleaf-mcp"],
"env": {
"OVERLEAF_PROJECT_ID": "YOUR_OVERLEAF_PROJECT_ID",
"OVERLEAF_GIT_TOKEN": "YOUR_OVERLEAF_GIT_TOKEN"
}
}
}
}FAQ
- How do I get Overleaf credentials?
- Project ID is in the URL (https://www.overleaf.com/project/[PROJECT_ID]). Git Token is created in Overleaf → Account Settings → Git Integration → 'Create Token'.
- Can I manage multiple Overleaf projects?
- Yes. Create a projects.json file with multiple project configurations and reference them by name in tool calls.
Compare OverleafMCP with
Last updated · Auto-generated from public README + GitHub signals.