Overleaf for AI agents (olmcp)

io.github.nipdep由 GitHub 帳號 nipdep 發布v1.0.0-alpha.3更新於 Nov 7, 2026

Overleaf for AI agents: review comments, tracked-change edits, new files and PDFs; no Git needed

已驗證STDIO僅桌面效率與工作流開發者工具

概覽

AI 產生的概覽

本機連接器,讓 AI 助理讀取 Overleaf 審閱留言、以追蹤修訂提出編輯、在討論串中回覆並建立文字檔。

可以做什麼
  • 讀取 Overleaf 專案中的留言、討論串、選取文字與文字檔
  • 在 review 模式下提出追蹤修訂式編輯,留言帶 #direct 時直接套用一般編輯
  • 在留言討論串中回覆,並依要求修改自己待處理的建議
  • 建立新的文字檔與缺少的資料夾,並在 Overleaf 上編譯專案、把 PDF 存到本機
  • 用 #no-agent 與 #agent 標籤略過或聚焦特定討論串
適用情境
適合在 Overleaf 審閱 LaTeX 論文或報告時使用:希望助理把邊註留言變成可審閱的追蹤修訂,而不必複製專案或使用 Git。也適合反覆「提意見—改一版」的流程,由你保留接受或拒絕每次編輯的審閱權。
執行需求
需要 Node.js 20 或更新版本、Overleaf 帳號,以及支援 MCP 的助理(例如 Claude Code 或 Codex);從 GitHub 安裝時可能還需要 git。安裝 npm 套件 olmcp,並透過 olmcp auth 以 overleaf_session2 cookie 登入,或設定 OVERLEAF_SESSION。只有自架 Overleaf 時才需設定 OVERLEAF_BASE_URL。僅限桌面端。
安裝前請注意
Overleaf 工作階段 cookie 等同密碼:請用 olmcp auth 儲存,切勿貼到對話、issue 或提交中,過期後需重新驗證。編輯會記在你的帳號名下,#direct 修改立即生效,新建檔案不會以追蹤修訂呈現。具備 shell 權限的助理可能讀取已儲存的 cookie。介面非官方,可能隨 Overleaf 變動而失效;目前為 alpha 版本,建議先在可丟棄的專案中試用。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Overleaf for AI agents (olmcp),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Agent standing over a leaf]

Agent–Overleaf Connector (olmcp)

[tests]

olmcp lets an AI agent respond to review comments in an Overleaf project.

You comment in Overleaf. The agent reads the comment and the selected text, proposes an edit as an Overleaf tracked change, and replies in the same thread. You remain the reviewer: you accept or reject the edit and close the thread.

olmcp has no hosted backend: the connector runs on your computer and uses your Overleaf session. Your chosen AI client may still send MCP results to its model provider under that client's own privacy terms.

The workflow

text
1. You select text and leave a comment in Overleaf.2. The agent reads the comment and the live project.3. The agent proposes a tracked change and replies in the thread.4. You accept, reject, request another version, or resolve the thread.

By default, an edit is a proposal, not a silent replacement. Overleaf shows the original text as a tracked deletion and the proposed text as a tracked insertion.

Project status: 1.0.0-alpha.3. The core review flow has been used on real Overleaf projects; newer features such as pending-suggestion revision and file creation still need real-service testing. Start with a disposable project.

What the MCP can and cannot do

It canIt deliberately cannot
Read comments, threads, selected text, and text files in the projectAccept or reject a tracked change for you
Propose tracked edits in review modeResolve, reopen, close, or delete a comment thread
Apply a plain edit when you explicitly use #directOverwrite or delete an existing file
Reply in a comment threadEdit documents that use Overleaf's unsupported newer history format
Revise its own pending suggestion when you ask for another versionCreate images, PDFs, or other binary project files
Create a new text file and missing foldersWork continuously in the background or watch for new comments
Compile the project on Overleaf and save the PDF locallyGive the agent a separate Overleaf identity; changes use your account

The tool surface enforces these limits. However, an agent with unrestricted shell access could read the stored session cookie and contact Overleaf outside the MCP. See Security and trust.

Quick start

You need Node.js 20 or newer, an Overleaf account, and an MCP-capable agent such as Claude Code or Codex. You do not need Python, TeX, or Overleaf's paid Git integration. The current GitHub-based installation may also need the git command; normal use does not.

1. Install olmcp

bash
npm install -g github:nipdep/agent-overleaf-connectorolmcp --version

2. Sign in to Overleaf

Copy the overleaf_session2 cookie from your browser's developer tools, then run:

bash
olmcp auth --cookie "<cookie value>"

Treat this cookie like a password. Never paste it into an agent chat, issue, or commit. The setup guide shows where to find it and what to do when it expires.

3. Register the MCP server

Choose your agent, then restart it:

bash
# Claude Codeclaude mcp add --scope user olmcp -- "$(which olmcp)" mcp
# Codexcodex mcp add olmcp -- "$(which olmcp)" mcp

Windows PowerShell commands and other MCP clients are covered in Connect an AI agent.

4. Give the agent your project URL

No project folder or clone is required. After connecting the MCP, paste the Overleaf project URL into the request:

Address the comments in https://www.overleaf.com/project/&lt;project-id>.

If you prefer not to paste the URL each time, you can save the project ID in a working folder with olmcp init. See Choosing a project.

5. Address a comment

In Overleaf, select a sentence and comment “make this clearer.” Then tell your agent:

Address the comments in https://www.overleaf.com/project/&lt;project-id>.

Back in Overleaf, review the tracked edit. Accept or reject it, reply with another request, or resolve the thread yourself.

Everyday controls

When you want to…Do this in Overleaf
Propose a normal reviewable editLeave an ordinary comment; review is the default
Apply an edit without tracked changesAdd #direct to the comment
Keep the agent away from a threadAdd #no-agent
Focus the agent on particular threadsAdd #agent to those comments
Ask for another version of a pending suggestionReply in the same thread, for example “shorter please,” then run the agent again
Add a new section or bibliography fileAsk in a comment; the new file appears immediately, while the \input or bibliography edit is proposed separately
Finish a discussionResolve the thread yourself

Read Using olmcp for examples, modes, tags, file creation, and the complete MCP tool list.

Important safety details

  • Tracked changes are attributed to your Overleaf account because the connector uses your session.
  • A newly created file cannot be a tracked change. It appears immediately; the connector never overwrites or deletes files.
  • #direct changes are immediate. Use Overleaf History if you need to undo one.
  • The interface is unofficial and may break when Overleaf changes it.
  • The session cookie usually expires after a few days. Run olmcp auth again when olmcp doctor reports an expired session.

Documentation

Release changes are in the changelog. The retired Python workflow—Git sync, source markers, redline.tex, and GitHub Actions—remains on the python-legacy branch.

Logo files: PNG · SVG

License and credit

Apache 2.0. See LICENSE. The Overleaf protocol handling follows the approach used by olcli by Alexander Loth (MIT); see THIRD_PARTY_NOTICES.md.

來源:README.md,提交 0a07e78

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0-alpha.3最新Nov 7, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分