Skip to main content
Glama

overleaf-mcp

An MCP server for Overleaf that lets a Claude or other agent navigate projects, read/edit .tex files, compile, and work with review-panel comments — over Overleaf's real web/Socket.IO API, the same channel the official web editor uses.

The headline feature: when a project has track-changes enabled, the agent's edits appear as pending suggestions in the Review panel, just like a human collaborator's. You and your collaborators can accept or reject each one, or ask the agent to do it (e.g. "accept all suggestions about typos"). Tools that edit through Overleaf's Git bridge can't do this: their changes overwrite the file directly.

Why a new MCP

The three existing Overleaf MCPs (mjyoo2/overleafmcp, YounesBensafia/overleaf-mcp-server, GhoshSrinjoy/Overleaf-mcp) all write through Overleaf's Git bridge, which has two problems for collaborative academic work:

  1. Commits show up in Overleaf with delay (the bridge polls).

  2. Git-bridge writes bypass tracked changes entirely — even when track-changes mode is on, edits land as direct overwrites, not as suggestions for review.

The overleaf-workshop VSCode extension already uses Overleaf's Socket.IO API rather than Git, but doesn't yet emit tracked changes (issue #94).

overleaf-mcp solves both: a minimal Socket.IO 0.9 client over fetch + ws@8, plus the meta.tc ID seed on applyOtUpdate that flips Overleaf's server-side RangesTracker into track-changes mode.

Related MCP server: overleaf-claude-mcp

Status

Working end-to-end against overleaf.com — 33 tools, tracked-changes edits and review-panel comments both verified. Published on npm as @netique/overleaf-mcp.

Tools

Every project-scoped tool also takes an optional project_id — see Project selection across MCP sessions.

Tool

Description

ping

Health check. Does not contact Overleaf.

create_project

Creates a new project (template: "none" or "example") and returns its id.

list_projects

Lists projects on the configured account, sorted by most recently updated. Supports name_contains, include_archived, include_trashed, limit.

open_project

Joins a project's real-time session and caches its file tree. Returns rich metadata: root_doc_path, compiler, spell_check_language, public_access_level, owner + members (with privileges), and whether track-changes is on for your user.

list_files

Lists the file tree of the open project (cached, no network). Filter by kind and path_contains.

read_file

Reads a doc (returns text + OT version + a summary of tracked changes / comments) or a binary file (base64 + MIME). path is optional — defaults to the project's root doc.

edit_file

Replaces a doc's contents. Computes a minimal diff via diff-match-patch, submits it as an OT operation, and adds meta.tc so the edit lands as a pending suggestion in the Review panel by default. Pass track: "off" to write directly or track: "auto" to honor the project's track-changes setting. path is optional — defaults to the project's root doc.

find_and_replace

Surgical edit: replace one occurrence (or all, with replace_all: true) of old_string with new_string without re-emitting the rest of the doc. Cheaper in tokens than edit_file for targeted changes and avoids whitespace drift from re-emitting surrounding text. By default old_string must be unique; ambiguous matches return a list of line:col locations so you can extend the match. Same track defaults and OT path as edit_file, so it lands as a pending suggestion in the Review panel.

create_doc

Creates a text doc at path (missing folders are created), optionally with initial content.

create_folder

Creates a folder and any missing parents.

upload_file

Uploads a binary file (figure, PDF, ...) from local_path or content_base64 to path, replacing an existing file. local_path must be inside the client's MCP roots or OL_UPLOAD_DIRS (symlinks resolved first; dotfiles and dot-directories refused); with neither configured, only content_base64 works.

rename_entity

Renames a doc, file or folder in place.

move_entity

Moves a doc, file or folder to another folder.

delete_entity

Deletes a doc, file or folder (folders with their contents). Restorable from Overleaf's history.

list_history

Lists recent versions from the History view: version range, time, authors, files touched, file add/rename/remove ops, labels. Pages back with before; filter with path_contains.

diff_file

Shows what changed in one file between two versions, with [+inserted+] / [-deleted-] markers and context lines.

list_tracked_changes

Enumerates every pending tracked-change suggestion across the open project, with author name + email, doc path, op kind (insert/delete), position, op text, change_id. Filter by author_email, author_id_endswith, path_contains, kind, text_contains, limit.

accept_changes

Accepts tracked changes, selected by change_id (from list_tracked_changes) or by filters (author_email, path_contains, kind, text_contains, combined with AND) or all: true. Multi-doc groups are batched automatically. Irreversible.

set_track_changes

Turns the Review panel's 'Track changes' switch on or off (on) for the logged-in user only. Other collaborators' and guests' settings are never changed. Updates track_changes_on_for_me.

reject_changes

Rejects tracked changes, selected by change_id or the same filters as accept_changes. Implemented as applyOtUpdate with the inverse op + u:true (same pathway Overleaf's web client uses). Irreversible.

compile

Triggers an Overleaf compile and returns a unified summary: status, built_cleanly (true iff PDF + zero LaTeX errors), page_count, error_count, warning_count, first_errors (sample), output_files, timings. Already fetches and parses output.log inline — no extra read_log call needed for the happy path. Pass root_doc, draft, stop_on_first_error to control.

label_pages

After compile, reads output.aux and lists every \label with its number and PDF page, plus the page count. For page-limit and float-placement checks.

read_log

Returns the full output.log from the most recent compile, with !-prefixed error lines surfaced at the top. Use when compile's inline summary isn't enough context.

list_comments

Lists review-panel comment threads with doc path, quoted text, author, latest-message preview. Supports include_resolved, path_contains, full. Orphaned threads (whose doc was deleted, hidden by Overleaf's Review panel) are left out and counted in hidden_orphaned unless include_orphaned: true.

read_comment_thread

Returns the full message history of one thread.

add_comment

Starts a new comment thread anchored to quoted_text in a doc, like selecting text and clicking 'Add comment'. The text is not changed. occurrence picks one match when the text occurs more than once.

reply_comment

Posts a new message to an existing thread.

resolve_comment

Marks a thread resolved. Optional doc_id (from list_comments) skips the doc lookup.

reopen_comment

Reopens a resolved thread. Optional doc_id (from list_comments) skips the doc lookup.

delete_comment

Permanently deletes a thread and all its messages.

edit_comment_message

Edits one of your own messages in a thread.

delete_comment_message

Deletes one message from a thread (own messages; any_author: true for the project owner).

search_project

Searches every doc in the project (plain text or regex, optional case sensitivity, path filter, skip comment lines) and returns path:line:col matches.

Typical workflow

Things to ask Claude once overleaf-mcp is connected:

  • "Accept every pending tracked change by John Doe that's only adjusting punctuation or whitespace." — uses list_tracked_changes(author_email: "...") → LLM filters by op text → accept_changes(...).

  • "List my recent Overleaf projects."

  • "Open my thesis project and show me what comments my collaborators have left."

  • "Read intro.tex and fix the missing comma in the second paragraph." → with track-changes on, this lands as a tracked suggestion.

  • "Compile the project and tell me what the LaTeX errors mean." → uses compile then read_log automatically.

  • "For each open comment thread, suggest a fix and reply with what you did." → end-to-end review workflow.

  • "Turn on track changes, then proofread sec/intro.tex: fix typos directly and leave a comment wherever a sentence is unclear." → set_track_changes, find_and_replace, add_comment.

  • "Where do we cite smith2020 or mention 'domain shift'?" → search_project.

  • "Compile and tell me on which page the Conclusion ends and where Table 2 lands." → compile, label_pages.

  • "What did my co-author change in sec/method.tex since yesterday?" → list_history, diff_file.

  • "Reject all of Alice's tracked changes in main.bib." → reject_changes(author_email, path_contains).

Project selection across MCP sessions

An HTTP gateway may run a separate stdio server for each MCP session, so a successful open_project in one session does not select a project in another. Every project tool therefore accepts an optional project_id; if your client may reconnect or change sessions between calls, pass it on every call:

{"name": "read_file", "arguments": {"project_id": "61d853bcbf1003100e957034", "path": "main.tex"}}

The tool opens the project when needed and reuses it when it is already active.

Reads may switch projects, but they never silently retarget writes. A write (edit_file, find_and_replace, comment replies/resolution, accepting or rejecting changes) without project_id only goes to the project last confirmed by open_project or by a write that named it. After read_file(project_id=B) in a session working on project A, a bare edit_file is refused instead of landing in B. Pass project_id (or call open_project) to confirm the target. Results include project_id and project_name, plus a note whenever a call switched projects.

Omitting project_id everywhere keeps the original workflow: call open_project first in the same session. Refresh your client's tool definitions after upgrading to expose the new parameter.

Requirements

  • Node ≥ 20

  • An Overleaf account (overleaf.com or self-hosted Community Edition)

Quick start

No local install needed — npx fetches and runs the latest version. Add this to your Claude Desktop / Claude Code MCP config:

{
  "mcpServers": {
    "overleaf": {
      "command": "npx",
      "args": ["-y", "@netique/overleaf-mcp"]
    }
  }
}

The first MCP tool call (or npx @netique/overleaf-mcp login run ahead of time) opens a Chrome window pointed at Overleaf — log in normally and the session cookie is captured and saved to a file under your config dir. No DevTools paste, no cookie in your MCP config. When the cookie expires (~5 days), the next tool call re-opens the window and refreshes it.

For self-hosted Community Edition: set OL_BASE_URL:

{
  "mcpServers": {
    "overleaf": {
      "command": "npx",
      "args": ["-y", "@netique/overleaf-mcp"],
      "env": { "OL_BASE_URL": "https://overleaf.mylab.edu" }
    }
  }
}

Useful one-shot commands:

npx @netique/overleaf-mcp login              # opens Chrome, captures cookie
npx @netique/overleaf-mcp status             # who am I logged in as
npx @netique/overleaf-mcp logout --confirm   # clear the saved cookie
git clone https://github.com/netique/overleaf-mcp.git
cd overleaf-mcp
npm install
npm run build

Then point your MCP config at the built file:

{
  "mcpServers": {
    "overleaf": {
      "command": "node",
      "args": ["/absolute/path/to/overleaf-mcp/dist/index.js"]
    }
  }
}

Authentication

The session cookie lives in a plaintext file at <configDir>/overleaf-mcp/cookie.json (mode 0600), where <configDir> is ~/Library/Application Support on macOS, $XDG_CONFIG_HOME (or ~/.config) on Linux, %APPDATA% on Windows. The CSRF token is auto-discovered from the /project page on each session — no separate copy needed.

npx @netique/overleaf-mcp login — or an MCP tool call that finds no stored cookie — spawns Chrome with a dedicated browser profile at <configDir>/overleaf-mcp/chrome-profile/, points it at ${OL_BASE_URL}/project, and reads the session cookie via the Chrome DevTools Protocol once the dashboard loads. Why a dedicated profile:

  • We don't touch your real Chrome profile, so there's no macOS Keychain prompt for your everyday browser.

  • It's a real interactive Chrome window, so captcha, Google OAuth, ORCID, institutional SSO and 2FA all work out of the box.

  • The profile persists. Re-logins are usually a flash: window opens → /project loads → cookie captured → window closes.

When the cookie expires (Overleaf cookies last ~5 days), the next request hits a 302 to /login, overleaf-mcp evicts the stale entry, re-launches Chrome and captures a fresh one. If your browser session also expired, the Chrome window waits for you to log in (up to 5 minutes).

Any Chromium-family browser works — Chrome, Brave, Edge, Arc, Chromium. If findChrome can't locate one automatically, set OL_BROWSER to a binary path.

⚠️ The session cookie grants full account access. The cookie file is mode 0600 but plaintext on disk. Treat it like a password. Remove it with overleaf-mcp logout --confirm.

Environment variables

Var

Default

Notes

OL_BASE_URL

https://www.overleaf.com

Override for self-hosted Overleaf.

OL_BROWSER

auto-detected

Path to a Chromium-family browser if auto-detection fails (Chrome / Brave / Edge / Arc / Chromium).

OL_INSECURE

—

Set to 1 to pass --ignore-certificate-errors to the captured Chrome instance — for self-hosted CE with a self-signed cert.

OL_CSRF

auto-discovered

Force a specific CSRF token. Only needed if your server doesn't ship the ol-csrfToken meta tag.

OL_UPLOAD_DIRS

—

Directories upload_file may read local_path from, separated by : (; on Windows), in addition to the client's MCP roots. Files outside them, and dotfiles, are refused.

OL_MCP_LOG_LEVEL

info

debug, info, warn, error. Goes to stderr; stdout is reserved for MCP JSON-RPC.

Troubleshooting

OverleafAuthError: Session cookie rejected (redirected to /login) — your stored cookie has expired. overleaf-mcp relaunches Chrome automatically on the next tool call to refresh; you should only see this surface as a user-facing error if Chrome itself failed to start.

No Chromium-family browser found — install Chrome (or Brave/Edge/Arc/Chromium), or set OL_BROWSER to a binary path.

Socket.IO handshake returned 502 — Overleaf's load balancer rejected the WebSocket upgrade. Usually means the cookie was rejected — overleaf-mcp should auto-recover on the next tool call.

Could not find ol-csrfToken meta tag — your Overleaf server doesn't expose the CSRF meta tag (rare; mostly very old Community Edition). Set OL_CSRF explicitly.

Edits land but don't show up as tracked suggestions — confirm track-changes is on for your user on this project (Menu → Settings → Track Changes → "For me" or "For everyone"). open_project reports the detected state under track_changes_on_for_me. To force tracking regardless, pass track: "on" to edit_file.

Compile succeeds but read_log returns 404 — Overleaf needs ?clsiserverid=... to route to the right CLSI worker; we add this automatically from the previous compile response. If you see this, the previous compile may not have completed; re-run compile and then read_log.

Releasing

Releases are published to npm automatically by GitHub Actions (.github/workflows/publish.yml), using npm trusted publishing, so no npm token or npm login is involved:

  1. Rename the Unreleased section of CHANGELOG.md to the new version, then bump the version: npm version patch --no-git-tag-version (or minor / major).

  2. Commit package.json and package-lock.json, then merge to main.

  3. The workflow runs the type check and tests, publishes the new version to npm with provenance, and creates the vX.Y.Z tag and a GitHub release whose notes are that version's CHANGELOG.md section.

It skips versions that are already on npm, and can also be started manually from the Actions tab. One-time setup: on npmjs.com, the package's Settings → Trusted Publisher must list GitHub Actions, repository netique/overleaf-mcp, workflow publish.yml.

Acknowledgements

  • overleaf-workshop by @iamhyc and contributors — protocol reference for the HTTP + Socket.IO flow, comment thread endpoints. The 94-review-panel branch was the source for the comment data shapes.

  • overleaf/overleaf — libraries/ranges-tracker/index.cjs and services/document-updater/RangesManager.js are the authoritative source for how tracked changes are emitted (the update.meta.tc flag and ID seed format).

  • googlecolab/colab-mcp — UX reference for what an agent-friendly MCP into a hosted editor should feel like.

License

AGPL-3.0-or-later — see LICENSE.

overleaf-mcp incorporates code ported from two AGPL-3.0 projects (overleaf-workshop and overleaf/overleaf — see Acknowledgements), so the combined work is distributed under the same terms. Practical implications:

  • You can use, study, and modify overleaf-mcp freely.

  • If you redistribute it, modified or not, recipients must also receive the source under AGPL-3.0.

  • If you run a modified version as a network service that users interact with, you must make the modified source available to those users. Running unmodified overleaf-mcp as your own personal MCP server is unaffected.

Available Tools

33 tools
accept_changesAccept tracked changesA

Permanently accepts tracked-change suggestions. The text stays in the doc; the pending-change metadata is cleared. Select changes either by change_ids from list_tracked_changes, or by filters (author, path, kind, text; combined with AND), or with all: true. Changes that span multiple docs are grouped automatically. Irreversible.

Inputs: all, kind, change_ids, project_id, +4 more.

add_commentAdd a review-panel commentA

Starts a new comment thread anchored to quoted_text in a doc, exactly like selecting text in Overleaf and clicking 'Add comment'. The text itself is not changed. Use this for questions or suggestions that should not be edits.

Inputs: content (required), quoted_text (required), path, occurrence, +1 more.

compileCompile the open Overleaf projectA

Triggers a LaTeX compile on Overleaf's CLSI, then fetches output.log and returns a unified summary: status, whether a PDF was produced, error_count (parsed ! -prefixed log lines), warning_count, first error lines, output file list, timings. Note: Overleaf returns status:"success" even when LaTeX has errors (PDF is still generated under nonstopmode). The truthful 'did it build cleanly?' check is error_count === 0. Use read_log for the full log when more context is needed.

Inputs: draft, root_doc, project_id, stop_on_first_error.

create_docCreate a new text docA

Creates a new .tex/.bib/... doc at path, optionally with initial content. Fails if the path already exists.

Inputs: path (required), content, project_id, create_parents.

create_folderCreate a folderB
Idempotent

Creates a folder (and any missing parents) at path.

Inputs: path (required), project_id.

create_projectCreate a new Overleaf projectA

Creates a new project owned by the logged-in user and returns its id. Open it with open_project.

Inputs: name (required), template.

delete_commentDelete a comment threadA
Destructive

Permanently deletes a comment thread and all its messages (Overleaf's 'Delete' in the thread menu). Cannot be undone; prefer resolve_comment unless the thread should disappear entirely. Also works for orphaned threads (see list_comments).

Inputs: thread_id (required), doc_id, project_id.

delete_comment_messageDelete a message from a comment threadA
Destructive

Deletes one message (e.g. a reply) from a thread, leaving the rest of the thread. Own messages by default; any_author: true deletes someone else's, which Overleaf only allows for the project owner. Cannot be undone.

Inputs: thread_id (required), message_id (required), any_author, project_id.

delete_entityDelete a doc, file or folderB
Destructive

Deletes the entity at path (a folder with all its contents). Overleaf keeps deleted files in the project history, from where they can be restored in the web editor.

Inputs: path (required), project_id.

diff_fileDiff one file between two history versionsA
Read-only

Shows what changed in one file between two versions from list_history. Changed lines are marked with ~, insertions as [+text+] and deletions as [-text-], with a few lines of context.

Inputs: to (required), from (required), path (required), project_id, +1 more.

edit_comment_messageEdit a message in a comment threadA
Idempotent

Replaces the text of one message in a thread. Overleaf only allows editing your own messages.

Inputs: content (required), thread_id (required), message_id (required), project_id.

edit_fileEdit a .tex doc in the open Overleaf projectA

Replaces the contents of a doc by computing a minimal diff and submitting it as an OT operation over the live Socket.IO connection. The change lands in the web editor in real time. By default the edit appears as a pending suggestion in the Review panel (track:'on'); pass track:'off' to write directly. If path is omitted, defaults to the project's root doc. Only .tex / .bib / .md / similar text docs are editable — binary files are not.

Inputs: new_content (required), path, track, project_id, +2 more.

find_and_replaceSurgical find-and-replace in an Overleaf docA

Replace one occurrence — or all, with replace_all: true — of old_string with new_string in a doc, without re-emitting the rest of the file. By default old_string must be unique; ambiguous matches are returned with line:column locations so you can extend the match. Submits the minimal OT operation through the same pathway as edit_file, so by default it lands as a pending suggestion in Overleaf's Review panel (track:'on'). If path is omitted, defaults to the project's root doc. USE WHEN: a SINGLE targeted edit (one typo, one label rename, one heading change) in a large doc — saves tokens vs. re-emitting the body and avoids accidental whitespace drift. AVOID FOR BATCH WORK: for multiple substitutions (e.g. converting many words, applying a style guide across a chapter) prefer ONE edit_file call with all changes computed client-side. Each find_and_replace is its own round-trip with its own race window, its own tracked-change entry, and its own cache-sync cycle — calling it N times for N small changes amplifies the failure modes that one batched edit_file would avoid.

Inputs: new_string (required), old_string (required), path, track, +4 more.

label_pagesFind which PDF page each \label lands onA
Read-only

Reads the .aux file of the most recent compile and returns, for every \label, its number (e.g. section or table number) and the PDF page it lands on, plus the total page count. Useful for page-limit checks ('does the Conclusion end on page 8?') and for checking that figures sit near their first reference. Call compile first.

Inputs: project_id, label_prefix.

list_commentsList review-panel comment threadsA
Read-only

Returns all review-panel comment threads in the open project, sorted by most recently updated. Each entry includes the thread id, the doc path it's anchored on, the quoted text it refers to, the latest message preview, and whether it's resolved. Use read_comment_thread for full content.

Inputs: full, project_id, path_contains, include_orphaned, +1 more.

list_filesList files in the open Overleaf projectA
Read-onlyIdempotent

Returns the file tree of the currently open project as a flat list of project-relative paths. Uses the cached file tree when the requested project is already active; otherwise project_id opens it first. Each entity has a path (e.g. 'chapters/intro.tex'), an id, and a kind ('doc' | 'file' | 'folder').

Inputs: kind, project_id, path_contains.

list_historyList recent project historyA
Read-only

Lists recent versions from the project's History view, newest first: version range, time, authors, files touched, file additions/renames/removals and named labels. Use the versions with diff_file to see what changed.

Inputs: limit, before, project_id, path_contains.

list_projectsList Overleaf projectsA
Read-onlyIdempotent

Lists projects on the configured Overleaf account, sorted by most recently updated. Returns each project's id, name, last update time, and owner. Use the returned id with open_project to start working on a project.

Inputs: limit, name_contains, include_trashed, include_archived.

list_tracked_changesList pending tracked changes across the open projectA
Read-only

Enumerates every pending tracked-change suggestion in the open project (across all docs), with author name + email, doc path, op kind ('insert' | 'delete'), position, inserted/deleted text, and a stable change_id. Use this to plan an accept_changes or reject_changes call: filter the result by author / doc / kind / text, collect the matching change_id values, then pass them. Tracked changes only — review-panel comments are listed by list_comments.

Inputs: kind, limit, full_text, project_id, +4 more.

move_entityMove a doc, file or folderB

Moves the entity at path into the folder to_folder ('' for the project root). The folder must exist.

Inputs: path (required), to_folder (required), project_id.

open_projectOpen Overleaf projectA

Joins the project's real-time Socket.IO session and caches its file tree. Must be called before list_files / read_file / edit_file. Switching projects automatically closes the previous session.

Inputs: project_id (required).

pingPingA
Read-onlyIdempotent

Health check. Returns 'pong' and the server version. Does not contact Overleaf.

Inputs: no named parameters.

read_comment_threadRead a single comment thread's messagesA
Read-only

Fetches the full message history of one thread (all replies with author + timestamp). Use this when list_comments shows a thread that looks relevant.

Inputs: thread_id (required), project_id.

read_fileRead a file from the open Overleaf projectA
Read-only

Reads the contents of a file by project-relative path. Pass project_id to read without a prior open_project in this session. For text docs (.tex, .bib, .md, etc.) the full text appears in both the content array and structuredContent.text; metadata (version, line/byte counts, ranges, tracked-change/comment counts) is in structuredContent. For binary files (images, PDFs) base64 is in content and structuredContent.base64, with MIME type alongside.

Inputs: path, project_id.

read_logRead the last compile's output.logA
Read-only

Returns the full LaTeX log from the most recent compile call. compile already includes the error count + first few errors in its response — use this only when you need more context (full log, line numbers, package warnings, etc.). The content array shows a summary of !-prefixed error lines at the top, then the log truncated to the last 8000 chars for display. structuredContent.log contains the FULL untruncated log so programmatic callers can grep / parse it.

Inputs: project_id.

reject_changesReject tracked changesA

Rejects the specified tracked-change suggestions. For tracked inserts the inserted text is removed; for tracked deletes the strikethrough is cleared and the text stays. Implemented as an OT update with u:true flags on the inverse ops — same pathway Overleaf's web client uses. Select changes by change_ids from list_tracked_changes, by filters (author, path, kind, text; combined with AND), or with all: true. Irreversible.

Inputs: all, kind, change_ids, project_id, +4 more.

rename_entityRename a doc, file or folderA

Renames the entity at path to new_name, keeping it in the same folder.

Inputs: path (required), new_name (required), project_id.

reopen_commentReopen a resolved comment threadB

Reopens a previously-resolved thread. Pass doc_id from list_comments to skip a lookup round-trip.

Inputs: thread_id (required), doc_id, project_id.

reply_commentPost a reply to a comment threadA

Adds a new message to an existing comment thread. Threads come from list_comments. The message appears immediately in Overleaf's review panel for collaborators.

Inputs: content (required), thread_id (required), project_id.

resolve_commentResolve a comment threadA

Marks a thread as resolved. Use after addressing the comment (e.g. by editing the doc and replying). Also works for orphaned threads. Pass doc_id from list_comments to skip a lookup round-trip.

Inputs: thread_id (required), doc_id, project_id.

search_projectSearch all docs in the projectA
Read-only

Searches every text doc in the project (like Overleaf's 'Search in project') and returns matches with path, line and column. Use it to find where a term, label, citation key or phrase appears before editing.

Inputs: query (required), regex, project_id, max_results, +3 more.

set_track_changesTurn tracked changes on or offA
Idempotent

Turns Overleaf's 'Track changes' mode on or off for the logged-in user only, the same switch as in the Review panel. Other collaborators' and guests' settings are left as they are. While it is on for you, the server records every edit you make (including track:"off" edits) as a tracked change. Returns the per-user state after the change.

Inputs: on (required), project_id.

upload_fileUpload a binary file (figure, PDF, ...)A

Uploads a file from the local disk (local_path) or from base64 (content_base64) to path in the project, replacing an existing file of the same name. Use for figures and other binary assets; use create_doc / edit_file for text. local_path is only allowed inside the client's MCP roots or the directories in OL_UPLOAD_DIRS, and never for dotfiles.

Inputs: path (required), local_path, project_id, content_base64, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 33 tools

    Disambiguation4/5

    Tools are grouped by clear resource domains (files, comments, tracked changes, history, compile) and the descriptions explicitly separate the closest pairs — edit_file vs find_and_replace, add_comment vs reply_comment, delete_comment vs delete_comment_message — including 'USE WHEN' / 'AVOID FOR' guidance. A couple of pairs (compile/read_log/label_pages, and the comment-message vs thread deletion tools) still require reading the descriptions carefully, but there is no true duplication.

    Naming Consistency4/5

    Almost everything follows a snake_case verb_noun pattern (open_project, list_comments, resolve_comment, create_doc, delete_entity), which is easy to predict. Minor deviations exist: bare verbs (compile, ping) and a reversed noun_verb form (diff_file), plus label_pages, but these are few and readable.

    Tool Count3/5

    33 tools is heavy for a single MCP server, even though the domain genuinely spans projects, files, editing, compile, comments, tracked changes and history. Each cluster is coherent, but the surface is large enough that an agent must navigate eight distinct sub-areas; a few tools (reopen_comment, delete_comment_message, label_pages) are edge operations that could be folded into siblings.

    Completeness4/5

    Coverage is strong: full file lifecycle (create/read/edit/upload/rename/move/delete), full comment thread CRUD plus per-message editing, and complete tracked-change list/accept/reject/mode. Gaps are modest — no project delete/rename, no PDF download or version restore in history, and no collaborator management — all of which agents can work around via the web editor.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers