overleaf-paper-mcp
Manages academic LaTeX projects in Overleaf, including creating projects, transferring files, compiling documents, inspecting compiler output, and downloading PDFs.
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-paper-mcpcompile the paper and download the PDF"
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-paper-mcp
MCP server for managing academic LaTeX projects in Overleaf: create projects, transfer files, compile documents, inspect compiler output, and download PDFs.
Install
Requirements: Node.js 20+ and Playwright Chromium.
npm install
npx playwright install chromium
npm run buildRun the published package with:
OVERLEAF_EMAIL="your@email.com" \
OVERLEAF_PASSWORD="yourpassword" \
npx -y @youzhijc/overleaf-paper-mcpRelated MCP server: overleaf-mcp
Configuration
Provide credentials as runtime environment variables; do not commit a .env
file.
Variable | Purpose |
| Overleaf login email. |
| Overleaf login password. |
| Recommended absolute root for all MCP-managed local resources. Downloads are kept in |
| Legacy alternative for the workspace only. Use |
Use absolute paths for local_path and zip_path when possible. Relative paths
are accepted only inside OVERLEAF_DATA_DIR/workspace (or the legacy
OVERLEAF_WORKSPACE_DIR). With OVERLEAF_DATA_DIR, all local state is kept
below one directory:
OVERLEAF_DATA_DIR/
├── workspace/ # downloaded project files and PDFs
└── browser-data/ # Overleaf login session and browser cacheDo not upload or share browser-data/: it can contain your Overleaf login
session. Delete workspace/ to clear downloads, browser-data/ to sign out,
or the full data directory to reset the MCP.
Workflow
overleaf_list_files (optional)
→ overleaf_download_file
→ edit the local file
→ overleaf_upload_file (overwrite: true when replacing a file)
→ overleaf_compile
→ overleaf_download_pdfOn a visible compilation failure, overleaf_compile clears cached files,
retries once, and returns parsed diagnostics plus the compiler log if the retry
also fails.
overleaf_upload_file currently writes to the project root. To import a full
project archive, use overleaf_create_project_from_zip.
Tools
Tool | Purpose |
| Check server availability. |
| Start or close the browser session. |
| Find or open a project. |
| Create an empty project. |
| Create a project from a local ZIP archive. |
| List project files and paths. |
| Transfer one project file. |
| Create empty root-level items. |
| Rename or delete a file. |
| Compile and, after a failed retry, return LaTeX diagnostics and output.log. |
| Download the compiled PDF. |
Codex configuration
[mcp_servers.overleaf-paper-mcp]
command = "npx"
args = ["-y", "@youzhijc/overleaf-paper-mcp"]
env = {
OVERLEAF_EMAIL = "your@email.com",
OVERLEAF_PASSWORD = "yourpassword",
OVERLEAF_DATA_DIR = "/absolute/path/to/your/overleaf-paper-mcp-data"
}
startup_timeout_sec = 120
tool_timeout_sec = 120License
MIT
This server cannot be installed
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
- AlicenseAqualityDmaintenanceIntegrates with Overleaf's Git feature to manage LaTeX projects directly from MCP-enabled environments, enabling cloning, syncing, and pushing changes between local machine and Overleaf.517MIT
- AlicenseAqualityDmaintenanceAn MCP server for Overleaf that allows Claude or other agents to navigate projects, read and edit .tex files, compile, and interact with review-panel comments via Overleaf's real-time Socket.IO API, with seamless support for tracked changes as pending suggestions.17312AGPL 3.0
- Alicense-qualityCmaintenanceA real-time MCP server that enables AI coding agents to read, write, and compile LaTeX projects in self-hosted Overleaf instances via native OT protocol.212AGPL 3.0
- Alicense-qualityBmaintenanceMCP server for agentic-first PDF review of LaTeX papers, enabling commenting, compiling, and visual inspection via Claude Code.4MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Academic research MCP server for paper search, citation checks, graphs, and deep research.
An MCP server for deep research or task groups
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/jcswhldbb/overleaf-paper-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server