
Overleaf Web MCP
io.github.mhmdaskari由 GitHub 帳號 mhmdaskari 發布v0.9.0更新於 Nov 7, 2026
Read, edit, compile, and review Overleaf projects through your own signed-in web session.
概覽
讓助理透過你自己已登入的瀏覽器工作階段讀取、編輯、編譯與審閱 Overleaf LaTeX 專案。
- 可以做什麼
- 列出、搜尋、建立、複製、匯入、重新命名、移到垃圾桶與還原專案,並設定根文件、TeX 引擎與 TeX Live 映像
- 瀏覽檔案樹,依修訂版本檢查讀寫文件,建立、移動、重新命名與刪除檔案和資料夾,上傳下載單一檔案或整個專案
- 比對本機資料夾與專案,只同步有變動的內容,可選擇刪除本機已移除的檔案
- 解析、讀取與取代單一章節,包括跨 input 與 include 檔案的情況
- 編譯專案並依檔案與行號回報錯誤和警告,讀取日誌、儲存 PDF、停止建置
- 列出、回覆、新增、解決與重新開啟審閱留言;列出、接受與拒絕追蹤修訂;輪詢專案歷史
- 適用情境
- 適合在 Overleaf 撰寫或維護 LaTeX 論文時使用:讓助理起草與修改正文、把圖片和原始檔與本機資料夾同步、修正編譯錯誤,或不必離開對話就能處理審稿意見與追蹤修訂。
- 執行需求
- 透過 npx 在本機執行,需要 Node.js 20 或更新版本、Chrome 系列瀏覽器與 Overleaf 帳號。需先以 npx overleaf-web-mcp login 登入一次,工作階段自最後使用起保留五天,除非定期保持連線。選用環境變數可指定自架 Overleaf 的位址、工作階段檔案位置,以及可存取的專案、本機資料夾與變更類型。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Overleaf Web MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Overleaf Web MCP
Read, edit, compile, and review your Overleaf projects, signed in as you,
from Claude, Codex, Cursor, or any MCP client, or from a shell or a TypeScript program.
Docs · Get started · Command line · Tools · Safety · Compare · Changelog
[npm version]
[Total npm installs]
[CI status]
[Node.js 20 or newer]
[34 MCP tools]
[MIT license]
[Works with Claude Code, Codex, Cursor, and VS Code]
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 no Git integration or premium plan is needed for the core workflow.
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).
2. Connect your MCP client. For Claude Code:
For Codex:
Claude Desktop, Cursor, VS Code, and other clients
Add this to the client's MCP configuration:
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:
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):
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.
- Browse and organize. List and search projects, 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. 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
34 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.
All 34 tools, with their annotations and local effects
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 is also overleaf-web-mcp call <name> and a method of createOverleafClient.
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.
How it compares
The three most-starred Overleaf MCP servers and the two closest in design to this one, each checked against its own source code on 2026-10-25. They change often, so follow the links for their current state. The capability rows describe each project's MCP tools. ✅ supported, 🟡 partly (see the numbered notes), ❌ not supported.
Notes 1–14
- Documented, but sign-in appears to require overleaf.com's
overleaf_session2cookie, which Community Edition does not set by default. - Only the projects named in its own configuration.
- Lists projects without search, and leaves out archived and trashed ones.
- Lists projects, with no search or filter.
- Files are saved to the server's disk; no tool returns a document's text.
- Git rejects the push if Overleaf moved on after the tool's own pull, but an edit made between the assistant's read and that pull is overwritten.
- Only with
strict_version: true; by default a concurrent edit is reported after the write. - Accepts any tracked change, but rejects only in documents that use Overleaf's older ShareJS text OT, not history-ot.
- Creates files by writing them; no rename, move, or delete.
- Creates, renames, and deletes files and folders; no move.
- Downloads binary files; no upload.
- Lists, replies to, resolves, and reopens threads, but cannot add a comment.
- Creates and renames projects.
- Reports what collaborators changed during the session.
Documentation
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. 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.
來源:README.md,提交 6abcd5b
工具
0版本歷史
8- v0.9.0最新Nov 7, 2026
- v0.8.1Nov 3, 2026
- v0.8.0Nov 1, 2026
- v0.7.1Oct 26, 2026
- v0.6.2Oct 20, 2026
- v0.6.1Oct 20, 2026
- v0.6.0Oct 19, 2026
- v0.5.1Oct 12, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分