Overleaf Web MCP
MCP server by mhmdaskari Community
Overleaf Web MCP lets AI assistants read, edit, compile, and review Overleaf projects through the user's own signed-in web session. It also works as a command line tool and a TypeScript library.
Install Overleaf Web MCP
Built from the published package, never by AI.
claude mcp add overleaf-web-mcp -- npx -y overleaf-web-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"overleaf-web-mcp": {
"args": [
"-y",
"overleaf-web-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"overleaf-web-mcp": {
"args": [
"-y",
"overleaf-web-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"overleaf-web-mcp": {
"args": [
"-y",
"overleaf-web-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add overleaf-web-mcp -- npx -y overleaf-web-mcp{
"mcpServers": {
"overleaf-web-mcp": {
"args": [
"-y",
"overleaf-web-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add overleaf-web-mcp npx -y overleaf-web-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the overleaf-web-mcp block.
About
Overleaf Web MCP is a Model Context Protocol server, a command line tool, and a TypeScript library for working with Overleaf projects. It signs in once through a browser window the user controls, then lets an AI assistant, a script, or a program browse files, make revision-checked edits, compile, and handle review comments and tracked changes. It uses the same browser-facing endpoints as the Overleaf editor.
It suits Overleaf users who want an assistant or script to work on their projects. Edits can be recorded as tracked changes, and destructive actions need confirmation first. The source describes 33 tools in eight groups, and read-only tools change nothing on Overleaf.
Written from the project's README and checked against it.
Tools it gives your assistant
auth_statusVerifies the saved session and reports when it expires.list_projectsLists and searches projects, newest first.read_fileReads a text document and its revision.write_fileReplaces a document with a revision-checked edit of only the changed words.sync_directoryUploads changed local files and can delete files removed locally in mirror mode.compile_projectCompiles the project and reports errors and warnings from the log.get_sectionsParses the section headings of one file.list_commentsLists review threads with their locations.list_tracked_changesLists tracked changes with their locations and authors.monitor_project_historyPolls recent project history with a cursor to see who changed what.
What you need
- Node.js 20 or newer
- A Chrome-family browser (Chrome, Chromium, Brave, or Edge)
- An Overleaf account
| Setting | Needed | What it is |
|---|---|---|
OVERLEAF_Environment variable | Optional | Overleaf origin to use, for a self-hosted instance. Use the same value for login and serve. Default: https://www.overleaf.com |
OVERLEAF_Environment variable | Optional | Where the saved session is read from, if not the platform configuration directory. |
OVERLEAF_Environment variable | Optional | Comma-separated project ids the server may touch. Unset allows every project. |
OVERLEAF_Environment variable | Optional | Absolute folders local reads must stay inside, separated by : (; on Windows). Unset allows any. |
OVERLEAF_Environment variable | Optional | Absolute folders local writes must stay inside, separated by : (; on Windows). Unset allows any. |
OVERLEAF_Environment variable | Optional | Comma-separated kinds of change operations may make, such as overleaf-read. Unset allows all. |
OVERLEAF_Environment variable | Optional | Comma-separated tool groups to offer MCP clients, such as files,compile. Unset offers every tool. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Compile the paper and tell me whether it built cleanly, and where any errors are.
- Summarize the open review comments and reply to the one about Table 2.
- Rewrite the introduction of main.tex for a general audience, as a tracked change.
Good to know
- Uses Overleaf's private web APIs, which can change without notice.
- Automating www.overleaf.com may carry Terms-of-Service and account risk.
- The saved session lasts five days from its last use.
- Accepting or rejecting tracked changes needs a project whose owner's Overleaf plan includes track changes.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Overleaf Web MCP
All alternatives →Creates, opens, edits and exports Word, Excel, PowerPoint and PDF files through the MR Office MCP server. It suits AI assistants that need to work on real office documents, with the editor shown in chat when the client supports MCP Apps.
Parses Korean documents such as HWP, HWPX, PDF, XLSX, DOCX and PPTX into Markdown, and writes HWPX or HWP official documents from Markdown. It runs as a library, CLI, HTTP API or MCP server for AI assistants.
Desktop Commander is an MCP server that lets an AI assistant run terminal commands, edit files and manage processes on your computer. It is for developers and users who want an assistant to work with local code and text.
Connects AI assistants to the Linear GraphQL API so they can manage projects, issues, and documents. Built for teams that want planning and project-management workflows in Linear, beyond basic issue CRUD.
pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.
Reactive Resume is a free, open-source resume builder with an MCP server for document management, imports, exports, checks and job application workflows. It suits people who want to write and track resumes and keep their data under their own control. The source describes the app itself and does not describe the DeepSeek Harness connection.
Compare with MR Office, kordoc or Desktop Commander
Overleaf Web MCP: common questions
Does it need an Overleaf premium plan?
The source says no Git integration or premium plan is needed for the core workflow. Accepting or rejecting tracked changes does need a plan that includes track changes.
Does it store my Overleaf password?
The source says only cookies for the Overleaf origin are saved, to a file only the user can read.
Can it delete projects by accident?
Projects go to the trash first, and permanent deletion only works from there. Trashing or deleting a project requires its name to be confirmed.
How do I install Overleaf Web MCP?
In Claude Code run claude mcp add overleaf-web-mcp -- npx -y overleaf-web-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Overleaf Web MCP the official server?
Overleaf Web MCP is a community project by mhmdaskari, not verified by a company domain.
Is Overleaf Web MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Overleaf Web MCP safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Overleaf Web MCP?
Similar MCP servers: MR Office, kordoc, Desktop Commander, MCP Linear.
Does Overleaf Web MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
