overleaf-web-mcp
Read, edit, compile, and review your Overleaf projects through your own signed-in session: from Claude, Codex, Cursor, or any MCP client, from the command line, or from TypeScript. No Git integration or premium plan needed.
Install / Use
claude mcp add mhmdaskari -- npx -y github:mhmdaskari/overleaf-web-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of overleaf-web-mcp
overleaf-web-mcp scores 84/100 on our quality scale, 2775th of 4,715 Development & Engineering skills we index.
Its MCP Server is 23 KB long, well organised into 15 sections with 6 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated today, so overleaf-web-mcp is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-25. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
overleaf-web-mcp compared with similar skills
All 4 of these similar skills score higher than overleaf-web-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| overleaf-web-mcp (this skill)by mhmdaskari | 84 | 10 | today | MCP Server |
| taste-skillby Leonxlnx | 100 | 121.5k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 114.7k | 1d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 90.0k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.4k | today | CLAUDE.md |
Frequently asked questions
- How do I install overleaf-web-mcp?
- Run
claude mcp add mhmdaskari -- npx -y github:mhmdaskari/overleaf-web-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does overleaf-web-mcp work with?
- It is written for Claude Code, Claude Desktop, Cursor and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is overleaf-web-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is overleaf-web-mcp still maintained?
- The repository was last updated today, so overleaf-web-mcp is actively maintained.
Skill content
View source on GitHubOverleaf Web MCP is a Model Context Protocol server, the overleaf-web-mcp command line, and a TypeScript library, createOverleafClient from overleaf-web-mcp/core, all over one engine with the same safety checks. It signs in to Overleaf once through a browser window you control, then lets an AI assistant, a script, or your own program work on your projects the way you would in the web editor: browse files, make revision-checked edits, optionally as tracked changes, compile, and handle review comments and tracked changes. It uses the same browser-facing endpoints the Overleaf editor uses, so it works with the Overleaf account and plan you already have. Features your plan does not include, such as track changes, stay unavailable.
What you can say
Once connected, talk to your assistant in plain language. It picks the tools.
- "Create a new project called Grant renewal from the folder I zipped, and make
proposal.texthe root." - "List my Overleaf projects and open the one called Thesis."
- "Rewrite the introduction of
main.texfor a general audience, as a tracked change." - "Compile the paper and tell me whether it built cleanly, and where any errors are."
- "Which figures in
./figuresdiffer from what's in the project? Upload only those." - "Make the project match
~/papers/thesis, and show me what would be deleted first." - "Summarize the open review comments and reply to the one about Table 2."
- "Go through the tracked changes in
main.texwith me, and accept the ones I approve."
Get started
You need Node.js 20 or newer, a Chrome-family browser (Chrome, Chromium, Brave, or Edge), and an Overleaf account.
[!NOTE] The server uses Overleaf's private web APIs, which can change without notice, and automating
www.overleaf.commay carry Terms-of-Service and account risk. Try it on a disposable project first and keep request volume low.
1. Sign in once. A dedicated browser window opens. Complete the normal Overleaf login, including SSO or two-factor. Only cookies for the Overleaf origin are saved, to a file only your user can read. The session lasts five days from its last use, so sign in again after five idle days, or schedule npx overleaf-web-mcp keepalive daily to keep it alive (see configuration).
npx overleaf-web-mcp login
2. Connect your MCP client. For Claude Code:
claude mcp add overleaf --scope user -- npx -y overleaf-web-mcp serve
For Codex:
codex mcp add overleaf -- npx -y overleaf-web-mcp serve
<details>
<summary>Claude Desktop, Cursor, Antigravity, VS Code, and other clients</summary>
Add this to the client's MCP configuration:
{
"mcpServers": {
"overleaf": {
"command": "npx",
"args": ["-y", "overleaf-web-mcp", "serve"]
}
}
}
Claude Desktop can instead install the extension file attached to each release, which runs on its own Node.js; see Claude Desktop in the guide. VS Code uses a servers key and "type": "stdio" instead; the installation guide has the exact block for each client.
3. Restart the client and ask it to check your Overleaf connection.
Client-by-client steps, self-hosted Overleaf, and troubleshooting, including the "failed to connect" you get when node is older than 20, are in the installation guide.
Without an MCP client
Every tool is also a command, for scripts, CI jobs, and agents that work in a shell. After npx overleaf-web-mcp login:
npx overleaf-web-mcp projects list --query thesis
npx overleaf-web-mcp files read <projectId> main.tex
npx overleaf-web-mcp call get_sections --request request.json
Each command prints one JSON value on stdout, or one JSON error line on stderr, and its exit code says what is safe to do next: 0 complete, 1 failed, 2 fix the call, 3 not allowed, 4 read or plan again, 5 outcome unknown (never re-run it blindly), 6 partial, 7 retry later. Document text goes through a file or stdin, never the command line. The command line guide has every command and exit code. Three Agent Skills in skills/ use it to revise a manuscript, handle reviewer comments, and sync figures and sources.
From TypeScript, overleaf-web-mcp/core has one typed method per tool (TypeScript SDK):
import { createOverleafClient } from 'overleaf-web-mcp/core'
const client = await createOverleafClient()
try {
const file = await client.readFile({ projectId, filePath: 'main.tex' })
} finally {
await client.close()
}
What it can do
- Start and manage projects. Create a blank or example project, clone one, or import a zip; rename, trash, restore, or archive projects with the name confirmed first; set the root document, TeX engine, and TeX Live image so the web editor's Recompile follows; and organize projects with your dashboard tags.
- Browse and organize. List and search projects, find text across a project's documents, read the file tree with the configured root document and compiler, create folders and files, rename, move, upload one file or a list of them, download a file or the whole project as a zip, and delete with confirmation.
- Sync a folder. Compare a local folder with the project without changing anything, then upload only what changed, and optionally delete what you removed locally, in one confirmed call. Changed text files go through the same revision-checked edits as a single write, so a collaborator's concurrent edit is never overwritten.
- Write safely. Replace a whole document or a single section, or change only the passages you name. Every edit is checked against the revision you read first, so a collaborator's concurrent change is reported instead of overwritten. Edits can be recorded as Overleaf tracked changes.
- Work by section. Parse
\sectionheadings in a file, read one section, replace one section. For a manuscript split across files, read it as one flattened document with a map back to each file, and list, read, and replace sections across\input,\include,\subfile, and\import, each write going to the one file that holds the section. - Compile. Build the project's configured root document, or any document you name, and get the errors and warnings from its log by file and line, with a clear yes or no on whether it built cleanly. Read the full log, save the PDF or any other output locally, or stop a running compile.
- Review. List comment threads with their locations, reply, add a comment anchored to exact text, and resolve or reopen threads. List tracked changes with their authors and locations, and accept or reject them once you have confirmed which. Accepting or rejecting them needs a project whose owner's Overleaf plan includes track changes, and on self-hosted Overleaf an edition that includes it; otherwise the decision is refused with nothing changed.
- Follow history. Poll recent project history with a version cursor to see who changed what.
Tools
41 tools in eight groups: account, project lifecycle, files, folder sync, sections, compilation, review, and history. Read-only tools change nothing on Overleaf and write nothing on your computer. Destructive tools can replace or remove existing content, and all but stop_compile need a value repeated back first: the path, name, or count of what they delete, the revision of the document they replace, the planToken of a folder sync, or overwrite for a file that exists.
An upload that would replace a file, and a folder sync without a planToken, are refused unless that replacement or unplanned sync is asked for by name. The last column shows which tools read or write files on the computer the server runs on. Every parameter and result is in the tool reference; each tool but sign_in is also overleaf-web-mcp call <name> and a method of createOverleafClient.
| Group | Tool | What it does | Annotation | Local effect |
| --- | --- | --- | --- | --- |
| Account | auth_status | Verify the saved session and report when it expires | read-only | |
| Account | sign_in | Open a browser window for the user to sign in, and save the session; MCP only, login on the command line | | writes the session |
| Account | list_projects | List and search projects, newest first, with their tags on request | read-only | |
| Project lifecycle | create_project | Create a blank or example project | | |
| Project lifecycle | clone_project | Copy a project, files and settings included | | |
| Project lifecycle | import_project_zip | Create a project from a
Truncated for display — read the full file on GitHub.
Related Skills
taste-skill
121.5kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
114.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
hyperframes
90.0kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.4k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
