Overleaf Web MCP Server
Read, edit, compile, and review Overleaf projects through your own signed-in web session.
Overleaf Web MCP scores 72 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Version control. GitHub shows 14 stars. Package registries report about 720 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
72 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 72 comes from
22 + 20 + 9 + 10 + 4 + 7 = 72. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 9 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "mhmdaskari-overleaf-web-mcp": { "command": "npx", "args": [ "-y", "overleaf-web-mcp@1.4.1" ], "env": { "OVERLEAF_BASE_URL": "https://www.overleaf.com", "OVERLEAF_COOKIE_JAR_FILE": "", "OVERLEAF_ALLOWED_PROJECTS": "", "OVERLEAF_LOCAL_READ_ROOTS": "", "OVERLEAF_LOCAL_WRITE_ROOTS": "", "OVERLEAF_ALLOWED_EFFECTS": "", "OVERLEAF_TOOLSETS": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
OVERLEAF_BASE_URL | Optional | Overleaf origin to use, for a self-hosted instance. Use the same value for login and serve. |
OVERLEAF_COOKIE_JAR_FILE | Optional | Where the saved session is read from, if not the platform configuration directory. |
OVERLEAF_ALLOWED_PROJECTS | Optional | Comma-separated project ids the server may touch. Unset allows every project. |
OVERLEAF_LOCAL_READ_ROOTS | Optional | Absolute folders local reads must stay inside, separated by : (; on Windows). Unset allows any. |
OVERLEAF_LOCAL_WRITE_ROOTS | Optional | Absolute folders local writes must stay inside, separated by : (; on Windows). Unset allows any. |
OVERLEAF_ALLOWED_EFFECTS | Optional | Comma-separated kinds of change operations may make, such as overleaf-read. Unset allows all. |
OVERLEAF_TOOLSETS | Optional | Comma-separated tool groups to offer MCP clients, such as files,compile. Unset offers every tool. |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Overleaf 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
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 local .zip archive | reads | |
| Project lifecycle | manage_project | Rename, trash, restore, archive, unarchive, or delete a project | destructive | |
| Project lifecycle | update_project_settings | Set the root document, TeX engine, TeX Live image, or spell-check language | ||
| Project lifecycle | manage_tags | Create, rename, recolour, or delete your dashboard tags, and add projects to them or remove them | destructive | |
| Files | get_project_tree | Read the file tree with the project's compile settings | read-only | |
| Files | read_file | Read a text document and its revision | read-only | |
| Files | search_project | Find a literal string in the project's documents, with line, column, and a preview | read-only | |
| Files | write_file | Replace a document, or change named passages, with a revision-checked edit of only the changed words | destructive | reads |
| Files | create_file | Create a text document, optionally with content | ||
| Files | manage_entity | Create a folder, or rename, move, or delete an entity | destructive | |
| Files | upload_file | Upload a local file, replacing what is at that path when confirmed | destructive | reads |
| Files | batch_upload | Upload a list of local files to the paths given, creating missing folders | destructive | reads |
| Files | download_file | Save a document or binary file locally | destructive | writes |
| Files | download_project_zip | Save the whole project locally as one zip archive | destructive | writes |
| Folder sync | plan_sync | Compare a local folder with the project and show what a sync would do | read-only | reads |
| Folder sync | sync_directory | Upload what changed, and in mirror mode delete what is gone locally | destructive | reads |
| Folder sync | delete_entities | Delete several files or folders in one confirmed call | destructive | |
| Sections | get_full_document | Read a document with its \input and \include files flattened in, with a map back to each file | read-only | |
| Sections | get_sections | Parse the section headings of one file, or of a document across its included files | read-only | |
| Sections | get_section_content | Read one section's body | read-only | |
| Sections | write_section | Replace one section's body, revision-checked | destructive | |
| Sections | check_references | List undefined and unused labels, references, and citations without compiling | read-only | |
| Compilation | compile_project | Compile the project and report its errors and warnings from the log | ||
| Compilation | stop_compile | Stop the active compile | destructive | |
| Compilation | get_compile_log | Read the end of a build's LaTeX or BibTeX log | read-only | |
| Compilation | download_compile_output | Save the compiled PDF, or another output file, locally | destructive | writes |
| Compilation | inspect_build | Map a source line to the PDF and back with SyncTeX, or count words | read-only | |
| Review | list_comments | List review threads with their locations | read-only | |
| Review | reply_to_comment | Reply in an existing thread | ||
| Review | add_comment | Add a comment anchored to exact text | ||
| Review | set_comment_status | Resolve or reopen a thread | destructive | |
| Review | list_tracked_changes | List tracked changes with their locations and authors | read-only | |
| Review | manage_tracked_changes | Accept or reject tracked changes in one document | destructive | |
| History | monitor_project_history | Poll recent project history with a cursor | read-only | |
| History | read_file_version | Read a document as it was at an earlier version or label | read-only | |
| History | manage_history | Label the current version as a checkpoint, or restore a document to an earlier version | destructive |
How it keeps your project safe
- Text edits require the revision from a prior read and fail with a conflict if the document changed underneath.
- Tracked changes are opt-in and never silently downgraded to plain edits. Accepting or rejecting them needs the revision they were listed with and their number confirmed, and is verified afterwards.
- Deleting a file requires its path to be confirmed, deleting several requires their count, and trashing or deleting a project requires its name. Projects go to the trash first; permanent deletion only works from there. Downloads, including a whole-project zip, never overwrite a local file unless asked, and never write over the saved session.
- A write that times out is observed, never resubmitted, so nothing is applied twice. The same holds for each file in a batch upload.
- A folder sync needs the
planTokenfromplan_sync, and stops before changing anything if the project or the folder changed since the plan. It deletes only in mirror mode, only with the delete count confirmed, and never after a failed upload. - An upload never replaces a file unless asked: a binary needs
overwrite, and a text document, which an upload replaces with no revision check, needsuncheckedDocumentReplace. - Optionally, you can limit which projects, which folders on your computer, and which kinds of change the server may touch (access policy). It keeps an assistant inside what you gave it; it is not a sandbox.
- Your session cookie stays on your machine in a file only you can read, and is never returned by any tool, command, or SDK method.
- While a project is open, up to 90 seconds after the last call, you may appear online to collaborators. Each command is its own session, so for many files use one sync or batch command rather than a command per file.
Security model
Your session stays in a file only your user can read and is sent nowhere but OVERLEAF_BASE_URL; nothing the server, command line, or library prints carries cookies, document text, or Overleaf's own responses; and only reads are ever retried. The safety model has the full contract, including what the access policy does not protect against.
Terms of Service
This is an unofficial client, not affiliated with Overleaf. It drives the same browser-facing endpoints the web editor uses, signed in as you, and that kind of automation of www.overleaf.com may be against Overleaf's Terms of Service and put your account at risk. You are responsible for how you use it. Keep request volume to what you would produce by hand, try it on a disposable project first, and prefer a self-hosted Overleaf for anything automated or heavy.
When Overleaf changes
Overleaf can change its private endpoints at any time; a response this release cannot read fails with PROTOCOL_UNSUPPORTED, and nothing is guessed or written on it. Run npx overleaf-web-mcp doctor <projectId> to see which step fails, and paste its output, which names no project, file, or person, into an issue.
Versioning
From 1.0.0 the tools, the command line, the stable overleaf-web-mcp/core surface, and the capabilities report follow Semantic Versioning: a breaking change waits for a major version, and a deprecation is announced a minor version ahead. The changelog records every change.
How it compares
Against the three most-starred Overleaf MCP servers and the two closest in design, each checked against its own source code on 2026-11-09. β supported, π‘ partly, β not supported; the full comparison has every capability checked and what each π‘ means.
| This project | OverleafMCP | olcli | overleaf-mcp-server | overleaf-mcp-rt | netique/overleaf-mcp | |
|---|---|---|---|---|---|---|
| Connects through | Web session | Git bridge | Web session | Git bridge | Web session | Web session |
| Tools | 41 | 8 | 21 | 5 | 22 | 17 |
| Works without an MCP client (command line or library) | β | β | β | β | β | β |
| Works without the Git bridge | β | β | β | β | β | β |
| Self-hosted Overleaf | β | β | β | β | β | π‘ |
| Sends edits as collaborative OT operations, not whole files | β | β | β | β | β | β |
| Refuses an edit if the document changed since it was read | β | π‘ | β | π‘ | β | π‘ |
| Writes as tracked changes when asked | β | β | β | β | β | β |
| Accepts or rejects tracked changes | β | β | π‘ | β | β | β |
| License | MIT | MIT | MIT | MIT | AGPL-3.0 | AGPL-3.0 |
Documentation
| Page | What it covers |
|---|---|
| Install | Claude Code, Codex, Claude Desktop, Cursor, Antigravity, VS Code, the command line alone, self-hosted Overleaf, troubleshooting |
| Using it | Example prompts and what happens underneath |
| Tool reference | All 41 tools with parameters and results |
| Command line | Every command, request formats, output, exit codes, and the Agent Skills |
| TypeScript SDK | createOverleafClient, results and errors, and the stable surface |
| Safety model | Revisions, tracked changes, confirmations, error codes |
| Privacy | What it sends and where, what it stores on your computer, and how to delete it |
| Configuration | Environment variables, the access policy, proxies, where the session is stored, and keeping it alive |
| Internals | Protocol notes, reliability guarantees, related projects |
| Contributing | Reporting bugs and feedback, setting up, and opening a pull request |
| Changelog | What changed in each release |
For AI agents
The server sends usage instructions to the MCP client when it connects, and every tool description is self-contained, so an assistant does not need this README to use it correctly. An agent working in a shell can use the command line instead, with overleaf-web-mcp --help and the three Agent Skills in skills/, which call only public commands. MCP clients are offered the same three workflows as prompts. Coding agents contributing to the repository should read AGENTS.md.
Contributing
Bug reports, feedback, and pull requests are welcome. CONTRIBUTING.md explains how to report a problem without exposing your session or your manuscripts, and how to propose a change.
License
MIT. An independent project, not affiliated with or endorsed by Overleaf.
Frequently asked questions
What is Overleaf Web MCP Server?
Read, edit, compile, and review Overleaf projects through your own signed-in web session.
How do I install Overleaf Web MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Overleaf Web MCP Server runs locally from the npm package overleaf-web-mcp with the command npx -y overleaf-web-mcp@1.4.1.
Is Overleaf Web MCP Server free and open source?
Yes. Overleaf Web MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Overleaf Web MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Overleaf Web MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Overleaf Web MCP Server's trust score calculated?
Overleaf Web MCP Server scores 72 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetβBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
