mcp-server-overleaf
This MCP server gives AI clients full read, edit, compile, review and publishing access to real Overleaf LaTeX projects, with collaborator-safe Git workflows.
Discover projects: list configured and account projects, filter by owned/shared/archived/trashed or tag, and find projects by name.
Read projects: inspect overview, file listings, outlines across
\input/\include, sync status, pending diffs, members, and word counts.Read files: retrieve text, line ranges, sections by title, earlier revisions, inlined includes, or figures as images.
Search: run literal or regex searches across project source files.
Inspect history: view commits, diffs between revisions, and line-by-line blame.
Check references: find undefined, duplicate or unused labels and citations, plus missing included files.
Verify citations: check bibliography entries against doi.org, Crossref and arXiv, and find BibTeX for DOIs, arXiv ids or titles.
Compile: build locally with latexmk or on Overleaf's servers and report errors and warnings.
Review: read tracked changes and comment threads in Overleaf's review panel.
Edit files: replace exact text, replace whole sections, append, or write files locally with optional revision guards.
Manage files: delete, move, upload files/folders, restore revisions, create Overleaf folders, or discard local changes.
Publish safely: push local edits as one commit, refusing to overwrite a co-author's conflicting changes.
Manage suggestions: propose edits as tracked changes, accept or reject suggestions.
Manage comments: add threads, reply, resolve, reopen, edit or delete messages.
Manage projects: create, copy, rename, archive/trash, tag, update settings, download ZIP, invite members and manage access.
Provides access to Overleaf projects through the official Git bridge, enabling listing files, reading and searching sections, editing LaTeX documents, compiling, and safely pushing changes while detecting collaborator conflicts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-overleaf Show me the contents of main.tex in my paper project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Overleaf MCP Server: AI editing for real LaTeX papers
Give Claude, Codex, ChatGPT, Cursor, VS Code, or any MCP client direct access to your Overleaf project. It reads the whole paper, fixes broken citations, suggests edits as tracked changes, compiles, and publishes. When a co-author has changed the same lines, it stops instead of overwriting them.
npx --yes mcp-server-overleaf@0.6.4 setupThat command connects the AI clients on this computer. On Claude Desktop you can download the one-click bundle instead, and every other client has its own route.

Independent community project; not affiliated with or endorsed by Overleaf.
What it does
Works on the real project. The AI reads the outline across
\inputfiles, searches every file, and edits by section or by exact text. Nothing is copied into a chat window.Suggests instead of rewriting. An edit can land in Overleaf's review panel as a tracked change for co-authors to accept or reject, and review comments can be read, answered and resolved.
Never overwrites a co-author. With a Git token, edits stay in a local clone until you push. Every read and every push first checks Overleaf, and when a co-author changed the same lines, the push stops and shows both versions.
Checks the bibliography.
check_referencesfinds undefined and unused labels and citations without compiling.look_up_citationschecks entries against doi.org, Crossref and arXiv, flags a DOI that belongs to a different paper, and finds BibTeX for a DOI, an arXiv id or a title.Compiles. Locally with latexmk, or on Overleaf's servers with no TeX installed, and reports every error and warning, BibTeX's and biber's included.
Works on a free plan. A session cookie alone gives 13 of the 15 tools, with no Git integration. A Git token adds history, blame and the guarded push.
Comes with workflows. Prompts review a paper, revise a section, answer
#agentcomments, resolve a refused push and prepare an arXiv upload. The Claude Code and Codex plugins add skills for chktex, latexdiff, texcount, SyncTeX and arXiv packaging.
Related MCP server: Overleaf MCP Server
Why choose this Overleaf MCP server?
Several Overleaf MCP servers exist. This one uses both ways into Overleaf: the Git bridge, where it is the most complete server and the only one that refuses to overwrite a co-author's lines, and the editor itself, through a session cookie, for tracked changes, comments, compiling and project management.
You approve what matters. Each tool only reads or only writes, so a client can allow every read at once and still confirm each write. An invitation to the project goes out only after you confirm it in your MCP client.
The secret stays in one place. The token is written once, to one file, at mode 600. No client configuration holds it, and the published plugin declares no environment variables.
No terminal, if you do not want one. Claude Desktop installs it from a downloaded bundle; Claude Code, Codex and Gemini CLI install it as a plugin or extension.
Related projects compares the alternatives tool by tool, and is equally direct about what this server cannot do.
Common workflows include revising an academic paper by section, searching a large LaTeX project, checking a bibliography, compiling before publication, reviewing the exact diff, and sending an edit to Overleaf as a tracked suggestion.
Where it installs
Every route below reaches the same server and the same tools, and every one of them keeps Git edits local until an explicit push. Pick the row for your client. Which tools appear depends on the credentials you give it; see the tools.
Client | How to install it |
Claude Desktop | Download the bundle and double-click it. One click |
Claude Code | Add this repository as a plugin marketplace. Two commands |
Codex CLI, desktop, and IDE extension | The same, with the Codex commands. Two commands |
Gemini CLI | Install the repository's Gemini CLI extension. |
Kiro | |
Cursor |
|
Visual Studio Code | A |
Docker | |
ChatGPT on the web and desktop | An outbound-only Secure MCP Tunnel, no public endpoint and no open port. Guide |
A catalogue that reads the MCP registry | Already listed as |
Any other MCP client |
|
A machine you are developing on | A source checkout. From source |
Claude Desktop takes a packaged bundle; Claude Code and Codex each take a plugin.
Everywhere else setup does the equivalent. All four routes end the same way: the token is
verified against Overleaf, written to one file at mode 600, and no client configuration
holds the secret.
Guides
Project configuration and efficient reads covers independent credentials, sparse checkout, revision reads, and guarded edits.
Related projects describes existing alternatives and this project's focus on collaborator safety and recovery.
Release process and verification describes the tested artifact, provenance, first publication, and subsequent trusted publishing.
Install the Claude Desktop bundle covers the one-click
.mcpbextension: what is inside it, how to build it, and how to remove it.Install in Claude Code, Codex, Gemini CLI, or Kiro covers each client's install command and the shared local project configuration.
Connect local MCP clients to Overleaf covers Codex desktop and CLI, Claude Code, Claude Desktop, Cursor, Visual Studio Code, local stdio, verification, and troubleshooting.
Connect ChatGPT to Overleaf with Secure MCP Tunnel covers the complete private connection from a local stdio server to ChatGPT desktop and web, including workspace association, least-privilege credentials, validation, and troubleshooting.
What you are installing
An MCP server exposing up to 15 tools and 5 prompts over stdio or Streamable HTTP. A
session cookie adds tracked changes, comments and Overleaf's web app
to what the Git bridge offers. One core, two transports; the tool implementations are
identical and only the framing differs. setup connects it
to the AI clients on this computer and is the only command most people need.
Requires Node 22.14+ and git on PATH; Node 24 LTS is recommended. A local
compile_project additionally needs latexmk and a TeX distribution; every other tool works
without them, and with a session cookie compile_project can compile on Overleaf's servers
instead.
The release test matrix covers macOS and Linux. Windows Git and TeX workflows are not yet validated. This server is a command-line application, not an importable JavaScript library.
The Git-bridge tools need Git integration on the project. Overleaf documents it as a premium feature gated on the project owner's subscription, so a free account invited to a project owned by someone with a subscription can still use it, and that subscription can be individual, group, or institutional. Do not tell a user their own plan disqualifies them. Verify it directly in step 3 instead. Without Git integration, a session cookie alone still gives 13 tools; see the free-account question.
Install into Claude Desktop with one click
Download mcp-server-overleaf.mcpb and double-click it. Claude Desktop opens an install panel, asks for the values below, and starts the server itself. No terminal, no Node installation, no build.
Overleaf project address — open the project in Overleaf and copy the whole URL from the address bar.
Overleaf Git token — generate one at https://www.overleaf.com/user/settings under Git integration. Claude Desktop stores it in the operating system keychain.
Overleaf session cookie — optional; on a plan without Git integration, leave the token empty and fill this in instead.
The bundle carries the same server npm publishes, with its locked runtime dependencies and nothing else. It is macOS and Windows only, because that is where Claude Desktop runs. For any other client, use the command below. Details in Install the Claude Desktop bundle.
Install as a Claude Code or Codex plugin
Store the token once:
npx --yes mcp-server-overleaf@0.6.4 setup --clients noneThen, in Claude Code:
claude plugin marketplace add yangzichao/mcp-server-overleaf
claude plugin install overleaf@mcp-server-overleafOr in Codex:
codex plugin marketplace add yangzichao/mcp-server-overleaf
codex plugin add overleaf@mcp-server-overleafRestart the client, then ask it to list the files in your project.
Until this local MCP server is accepted into a public directory, both clients install it
from this repository's marketplace: Claude Code reads .claude-plugin/marketplace.json and
Codex reads .agents/plugins/marketplace.json, and both point at the same
plugins/overleaf directory. That plugin holds no token and sets no environment variable,
because the first command writes the token to ~/.config/overleaf-mcp/projects.json and the
server finds it there. Public directory review is separate from this repository-based
installation. Details in
Install the Claude Code and Codex plugins.
Install with one command
npx --yes mcp-server-overleaf@0.6.4 setupIt checks Node and git, asks for the project and a token, proves the token reaches Overleaf before writing anything, and registers the server with the clients it finds on this computer: Claude Code, Codex, Claude Desktop and Cursor. A failed run leaves no half-configuration behind, because nothing is written until Overleaf accepts the token.
Two things are needed, both from the browser:
The project address. Open the project in Overleaf and copy the whole URL from the address bar. A read-only share link is a different thing, and setup says so rather than failing later.
A git authentication token, generated at https://www.overleaf.com/user/settings under Git integration. It is not echoed as you type.
The token is written to ~/.config/overleaf-mcp/projects.json at mode 600 and nowhere
else. The server finds that file on its own, so no client configuration holds the secret,
a path to it, or any environment variable. Clients are registered with an absolute Node
path and an absolute entry point rather than npx, because a desktop application starts
with a much smaller PATH than a terminal.
Restart Claude Desktop, Cursor, or Codex afterwards; Claude Code picks it up on the next run. Then ask the assistant to list the files in the project.
Setup can also run unattended:
printf '%s' "$OVERLEAF_TOKEN" | npx --yes mcp-server-overleaf@0.6.4 setup \
--project paper=https://www.overleaf.com/project/64a1b2c3d4e5f6a7b8c9d0e1 \
--token-stdin --yes--clients claude-code,codex limits which clients are touched, and --clients none
writes the configuration without registering anything. Run it again to add another
project or to replace an expired token; the previous file is kept alongside it.
Find it in the MCP registry
The server is listed in the official Model Context Protocol registry as
io.github.yangzichao/mcp-server-overleaf. The listing names the npm package and the Claude
Desktop bundle, and clients and catalogues that read the registry pick it up from there. The
release workflow publishes the listing itself, so it can never point at a version npm does
not have.
Claude Code and Codex do not read that registry. They have their own plugin marketplaces, which is the section above, or the server can be added by hand:
claude mcp add --transport stdio --scope user overleaf -- npx --yes mcp-server-overleaf@0.6.4 --stdio
codex mcp add overleaf -- npx --yes mcp-server-overleaf@0.6.4 --stdioBoth forms need OVERLEAF_GIT_TOKEN and OVERLEAF_PROJECT_ID in the environment, which is
why setup writes a projects.json instead and registers an absolute path.
Install from npm by hand
Use this when you want to see every step, or to configure a client setup does not cover.
The commands below select version 0.6.4 explicitly so a client restart does not silently
upgrade the server. If that version has not been published yet, use the source installation
below. npm installs compiled JavaScript and locked runtime dependencies; no local build is needed.
npx --yes mcp-server-overleaf@0.6.4 --versionKeep configuration outside the npm installation and npx cache. Create a private file:
mkdir -p "$HOME/.config/overleaf-mcp"
touch "$HOME/.config/overleaf-mcp/env"
chmod 600 "$HOME/.config/overleaf-mcp/env"Edit that file locally to contain your token and project ID:
OVERLEAF_GIT_TOKEN=olp_your_token_here
OVERLEAF_PROJECTS=paper=64a1b2c3d4e5f6a7b8c9d0e1For clients using the mcpServers JSON format:
{
"mcpServers": {
"overleaf": {
"command": "npx",
"args": ["--yes", "mcp-server-overleaf@0.6.4", "--stdio"],
"env": {
"OVERLEAF_MCP_ENV_FILE": "/absolute/path/to/.config/overleaf-mcp/env"
}
}
}
}Replace the file path with its actual absolute path; JSON does not expand ~ or $HOME.
Clients with another configuration format should launch the same command and arguments with
the same environment variable. If a desktop app cannot find npx, use its absolute path
from command -v npx. See the client guide for source
installation examples and client-specific configuration locations.
Alternatively, set both OVERLEAF_GIT_TOKEN and OVERLEAF_PROJECTS in the client's env.
With OVERLEAF_MCP_ENV_FILE, environment variables override individual file values; an
unreadable or relative explicit file path is an error. Without it, the install's .env is
used only when the client supplies no project or credential settings (including file paths).
A JSON projects file can provide independent credentials; see the configuration guide.
The current working directory is never searched for configuration.
After restarting the client, call list_projects to check configuration and
read_project with view: "files" to verify access to the real project. Tool discovery alone does not prove Overleaf access.
Install from a source checkout
Step 1: build
npm ci && npm run buildConfirm dist/index.js exists before continuing. Record the absolute path of the
repository root; every client configuration below needs it, and relative paths will not
work because clients spawn the server from an arbitrary working directory.
Step 2: collect two values from the user
The git authentication token. Generated at https://www.overleaf.com/user/settings,
under Git integration. One token covers all their projects and expires after a year. It
starts with olp_.
Ask the user to paste it into .env themselves rather than into the chat, using the
command in step 3. A token pasted into a conversation is in the transcript permanently and
has to be rotated. If they paste it anyway, tell them plainly to rotate it, and continue.
One or more project ids. The last path segment of a project URL:
https://www.overleaf.com/project/<projectId>. A project id is exactly 24 hexadecimal
characters. Anything else is not a project id, and you should ask again rather than guess.
Step 3: write .env and verify the token works
cp .env.example .env && chmod 600 .envThen have the user fill in:
OVERLEAF_GIT_TOKEN=olp_...
OVERLEAF_PROJECTS=paper=64a1b2c3d4e5f6a7b8c9d0e1OVERLEAF_PROJECTS is a comma-separated list of name=projectId pairs. The names are
arbitrary labels the user picks. A bare project id with no name is also accepted and
registers under its own id. With exactly one project registered it becomes the default; with
several, set OVERLEAF_DEFAULT_PROJECT, use an alias named default, or name the project in each call.
Verify the credentials reach Overleaf before configuring any client:
git ls-remote https://git@git.overleaf.com/<projectId>Git will prompt for a password. That is the token. Refs printed means it works. 403 or
Repository not found means either the token is wrong or that account's plan does not
include Git integration; resolve this before continuing, because every tool depends on it.
The server reads .env itself, because MCP clients spawn it without a shell. This keeps the
token in one file whose permissions the user controls, instead of copied into every client's
config. Anything the client sets in the environment explicitly still wins.
Step 4: register with the client
Use the absolute path from step 1. Configure only the client the user actually asked for. For client-specific configuration locations, verification, and troubleshooting, see the local MCP client guide.
Claude Code
claude mcp add overleaf -s user -- node /absolute/path/to/mcp-server-overleaf/dist/index.js --stdioThen run claude mcp list and confirm it reports ✔ Connected. Do not report success
until you have seen that.
Claude Desktop or Cursor — add to the client's MCP config file. The file location and restart steps differ by client; the local MCP client guide lists both.
{
"mcpServers": {
"mcp-server-overleaf": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-overleaf/dist/index.js", "--stdio"]
}
}
}Codex desktop, CLI, or IDE extension — the clients on one Codex host share
~/.codex/config.toml:
[mcp_servers.mcp-server-overleaf]
command = "node"
args = ["/absolute/path/to/mcp-server-overleaf/dist/index.js", "--stdio"]Add default_tools_approval_mode = "writes" inside the server table if the user wants
reads to run freely while every write asks first.
ChatGPT desktop local MCP settings can start the same stdio command directly on the computer that holds this repository. This local configuration is shared with Codex clients on the same host; the local MCP client guide includes the UI and CLI paths.
ChatGPT web or a workspace-shared ChatGPT app — use OpenAI Secure MCP Tunnel without
exposing the server to the public internet. ChatGPT connects to an OpenAI-hosted tunnel
endpoint while tunnel-client forwards requests to dist/index.js --stdio. Follow the
step-by-step Secure MCP Tunnel guide; it
includes the required Platform organization and ChatGPT workspace association, runtime key,
developer-mode app setup, and end-to-end verification.
Remote clients over HTTP
node dist/index.js --http --port 3017--http refuses to start without OVERLEAF_MCP_HTTP_AUTH_TOKEN, since anyone who reaches
the port could otherwise read and rewrite the user's papers. --allow-anonymous overrides
this and should only be used when the port is genuinely unreachable from outside the
machine. Do not pass it to work around a missing token.
Over HTTP, the server can ask you to confirm an invitation or more access only on protocol
revision 2026-07-28. On a 2025 revision it answers each request on its own and cannot ask
back, so manage_project refuses to invite or give more access and points to the Share menu.
Step 5: verify end to end
Call read_project with view: "files". A file listing means the whole path works:
configuration, token, clone, and the client connection. If it fails, the error text says
which.
The tools
Every tool takes an optional project: a project's Overleaf address, its raw 24-character
id, or a name from OVERLEAF_PROJECTS. Omit it to use the default. The address is accepted
because it is the form you already have, so a paper that was never configured can be reached
by pasting it. An unregistered project requires a default Git token or a session cookie;
registered ones use their configured project credentials.
Each tool only reads or only writes, never both, so a client can approve every read at once
and still confirm each write. A tool with several jobs takes a view (reads) or an action
(writes), and refuses an argument the chosen one does not use.
Tool | Kind | What it does |
| read | Configured projects, and with a cookie the account's projects with their tags, filtered by owned, shared, archived, trashed or tag |
| read |
|
| read | Text or line ranges, one section by title, a file at an earlier revision, a document with its included files inlined, or a figure the model can see |
| read | Plain-text or regular-expression search across the project's text files |
| read |
|
| read | Undefined, duplicate and unused labels and citations, and missing included files, from the source |
| read |
|
| read | Compile locally with latexmk or on Overleaf, and report errors and warnings, BibTeX and biber ones included, with the paths of the PDF and SyncTeX map, and from Overleaf the log, |
| read |
|
| write |
|
| write |
|
| write | Commit and publish, refusing to overwrite a co-author's change to the same lines |
| write |
|
| write |
|
| write |
|
Which tools appear depends on the credentials:
Configured | Tools offered |
A Git token | 11: all but |
A session cookie only | 13: all but |
Both | All 15 |
With a Git token, edit_file and manage_files change a local clone, and nothing reaches
Overleaf until push_changes. With only a cookie, they change the live Overleaf project at
once, as a co-author typing in the editor would. manage_tracked_changes,
manage_comments, manage_project and manage_files (action create_folder) always act on
Overleaf at once. manage_project invites someone, or gives a member more access, only after
your MCP client asks you through elicitation and you confirm; the model cannot answer for you.
A client without elicitation, or one on HTTP with a 2025 protocol revision, is pointed to
Overleaf's Share menu instead. The cookie and its trade-offs are described in
tracked changes.
Prompts
Five prompts start the common workflows, in clients that show prompts (as slash commands in Claude Code, for example). Each is offered only when the tools it uses are.
Prompt | What it does |
| Reads the paper, checks references and citations, compiles, and reports problems by severity without editing |
| Revises one section toward a goal, shows the change, and waits for approval before anything is published |
| Works through review-panel comments addressed to the agent with |
| After a refused push, shows both versions and a proposed merge, and applies it only once approved |
| Checks and compiles the paper and assembles an arXiv upload outside the clone |
Skills
The Claude Code and Codex plugins also install five skills, for tools an agent runs in a
shell beside the server: chktex, lacheck, latexindent and texcount; latexdiff and latexpand;
arXiv packaging; PDF pages, SyncTeX and figure conversion; and the conflict and #agent
comment workflows. They work in the clone and leave publishing to push_changes.
How to use the tools safely
Edits made with a Git token are local until push_changes. This is the whole design, not an
implementation detail, and it is what lets a bad edit be thrown away instead of published.
Read read_project with view: "changes" before calling push_changes. Push once, with a
real commit message; the user sees it in Overleaf's history next to their co-authors'
entries.
push_changes can return conflict-with-collaborator. This means someone edited the same
lines while you were working. Nothing was published and both versions are intact. Do not
retry, do not force, and do not merge the two on your own. Show the user both versions and a
proposed merge, and apply it only once they approve.
A refused push leaves its commit in the clone, so the clone is then both ahead of and
behind Overleaf and every later sync conflicts on the same lines. manage_files with
action: "discard_local_changes" is the way out: it drops unpushed commits as well as
uncommitted edits and returns the clone to what Overleaf holds. Tell the user what is being
thrown away before calling it, because their edit is what goes.
edit_file with action: "replace_text" refuses a snippet that appears more than once
rather than silently changing the first. Add surrounding context to make it unique, or pass
replaceAll deliberately.
Prefer replace_text and replace_section over write. write replaces an entire file,
so a partial reconstruction of a document silently deletes the rest of it.
Deleting and moving with manage_files are local until push_changes like every other Git
edit, so a removal can be undone with discard_local_changes right up to the push. Neither
rewrites LaTeX references: after a move, search_project for the old path and fix any
\input, \include or \includegraphics that still names it, or the paper stops
compiling. Before deleting, check the file is genuinely unused; a co-author's \input is
enough to break their build.
For a read–edit cycle, request read_file with mode: "full" or "smart" and pass its
revision as expectedRevision to edit_file. The edit then refuses to overwrite a file
changed by a collaborator or another client since that read. See the
revision protocol.
Compilation is optional and is not a gate. push_changes never checks that the document
builds, so a broken document can be published if you do not check first.
Configuration reference
Variable | Meaning |
| Default credential; required unless supplied by a token file or per project. |
| Absolute path to a default token file. |
| Absolute path to a JSON projects file with independent credentials. |
| Single-project alternative to |
| Absolute path to an external config file; recommended for npm/npx. |
|
|
| Which registered name to use when a call omits |
|
|
| Where clones live. Default |
| Default |
| Compile timeout. Must be a positive integer. |
| Bearer token required by |
| Port for |
| Overleaf session cookie. Turns on the review and web tools, and is enough on its own without Git integration. |
| Absolute path to a file holding the same value. Preferred over the variable. |
| Overleaf's web address for those tools. Default |
| Where |
| Where it searches titles. Default |
| Where it reads arXiv ids. Default |
Why it behaves the way it does
Overleaf's git bridge is not a general git remote. Each project has exactly one branch with one linear history, force pushes are refused, and there are no tags, submodules or LFS. Everything here stays inside that envelope.
The real risk is not a failed push, it is silently overwriting a co-author, so writing and publishing are separate:
Every read and every edit synchronizes with Overleaf first. If local work prevents synchronization, the call fails and preserves that work. Review it with
read_project(viewchanges), then publish it or explicitly discard it before continuing; stale reads and edits are refused.Edits land in the local clone only. Nothing reaches Overleaf until
push_changes.push_changesre-checks Overleaf immediately before pushing and rebases onto anything that landed in the meantime. If that cannot be applied cleanly the push is refused and the conflict reported, rather than resolved by guessing.
Git credentials are handed to git through a credential helper, so authentication tokens
are absent from argv and .git/config. Git diagnostics redact the selected credential;
tool errors redact every configured project credential. Keep secrets out of project files,
which are intentionally readable by the connected client.
Compilation writes outside the clone, so .aux, .log and .pdf files are never staged
and pushed back. Clones also carry a local exclude list, so a .DS_Store never reaches a
co-author's project.
Tool calls are serialized per project, first by an in-process queue and then by a lock directory under the workspace, so a second server process, such as the same server registered in two clients, waits instead of racing.
Client-supplied paths are checked twice: once as a path, and once against the filesystem
after symbolic links are resolved, so a link inside a clone cannot reach outside it or into
.git.
Layout
src/
config/ environment parsing, secret redaction
overleaf/ git command runner, repository operations, project registry, path safety
latex/ section parsing, include and reference checks, compile diagnostics
citations/ bibliography parsing, DOI, Crossref and arXiv lookups, BibTeX search
images/ figures prepared as image content for the model
workflow/ sync-before-edit, publish-with-conflict-check, compile, word count
tools/ MCP tool definitions, one folder per feature
prompts/ MCP prompts for the common workflows
transport/ stdio and Streamable HTTP
server/ server factory shared by both transports
setup/ the setup command that connects local clients to Overleaf
tests/
features/ Gherkin specifications, bound to the server over stdio
integration/ spawn the built server and speak MCP to it over stdio or HTTP
support/ helpers the other folders share
every other folder unit tests by feature, run in-processDevelopment
npm run checkRuns the type checker, Biome, knip, the build, and the tests in one pass. docs/testing.md
describes each layer of tests and the static checks.
The type checker includes test code. Every Vitest invocation builds the server first,
including focused runs and coverage, so the subprocess tests cannot use an old dist.
Command | What it does |
| Type-check source, tests and Vitest configuration |
| Biome lint and format check |
| Biome, applying fixes |
| Build, then Vitest, whole suite |
| The Gherkin feature suites alone |
| The fast-check property tests alone, with the fixed seed CI uses |
| The property tests with a new random seed and 2,000 runs each |
| The server against a real Overleaf project you own, see docs/testing.md |
| knip: unused files, exports and dependencies |
| Fail on any regular expression in |
| Build twice, compare tarballs, install as a user would, and test the installed server |
| Source checks, the regular expression check, package checks, and dependency audit |
| Build, then Vitest with v8 coverage |
The suites cover the same tool contract over stdio and HTTP, including schemas, error
flags, reading, editing, reviewing and publishing. Recovery tests exercise dirty-tree
sync, conflict recovery, remote rejection and reconnection, process restarts, a killed
lock holder, and simultaneous clients. New files and unpushed commits must remain
visible in read_project (view changes). Deterministic subprocess fixtures test Git and compiler timeouts
without needing a network connection or TeX installation.
tests/features/ states the publishing contract as a Gherkin feature file: plain sentences
about what a co-author sees, each one bound to a real call against the server over stdio.
A sentence with no binding fails the run, so the document cannot drift away from the
behaviour it describes. Add a scenario by writing it in the .feature file and binding its
new steps in the .test.ts beside it; steps are shared across the scenarios of a feature,
so most new scenarios need no new bindings at all.
TeX-dependent tests share one availability check. Set OVERLEAF_TEST_TEX=skip to run
without TeX, or OVERLEAF_TEST_TEX=required to fail if latexmk or pdflatex is missing.
The default, auto, runs those tests when both executables are available. GitHub Actions
runs core checks on Linux and macOS with Node 22.14, 24, and 26, plus a Linux job that installs
TeX and requires the compilation tests to run.
npm-shrinkwrap.json is the canonical dependency lock. Update it with npm and commit it with
package.json. The copy inside the published package is the runtime half of that file:
prepack removes the development entries and postpack restores the full lock, because npm
builds a dependency's tree from the shipped lock and would otherwise install the compiler,
the linter and the test runner on every user's machine. The package check fails if the
shrinkwrap inside the tarball still describes development dependencies.
Release package tests reuse the integration suites against an installed tarball from an
unrelated working directory, covering stdio, HTTP, edits, conflicts, and recovery.
That install resolves the declared ranges freshly against the registry rather than reading
the archive's own shrinkwrap, so the tree it tests is the newest one those ranges allow, and
it is compared against the lock by shape rather than by version. A package in one tree and
not the other fails the check, and so does a major version apart (a minor, for a 0.x
package) — an unpinned peer dependency can put one there without any direct dependency
changing. A newer patch or minor is only printed, and npm update brings the lock level:
both trees are tested, and requiring the versions to match turned every upstream patch
release red on branches that had not touched a dependency.
Tests never touch the real Overleaf. tests/integration/fakeOverleafRemote.ts stands up a
bare git repository plus a second clone acting as a co-author, which reproduces everything
the safety contract depends on: fetch, rebase, and a rejected push.
Coverage under-reports. The integration tests spawn node dist/index.js as a separate
process, and v8 cannot instrument a child, so src/tools/ and src/server/ report 0% while
being driven end to end over the real MCP wire protocol.
Frequently asked questions
Can Claude Code or Claude Desktop edit an Overleaf project?
Yes. Claude Desktop can install the one-click .mcpb bundle, while Claude Code can install
the repository as a plugin or run the npm package over stdio. Both expose the same safe
read, edit, compile, diff, and push workflow.
Can Codex, ChatGPT, Cursor, or VS Code connect to Overleaf?
Yes. Codex can install the included plugin, Cursor and other local clients can run the npm
package, VS Code can use .vscode/mcp.json, and ChatGPT can connect through an outbound-only
Secure MCP Tunnel. Start with the client table for the shortest route.
Will an AI edit overwrite my co-author's work?
Not silently. The server synchronizes before reads and writes, keeps edits local until an
explicit push_changes, and checks Overleaf again immediately before publishing. If a
co-author changed the same lines, the push is refused and both versions are preserved.
Does this work with a free Overleaf account?
Yes. With only an Overleaf session cookie, the server offers 13 of the 15
tools: reading, searching and checking the paper, editing files and folders,
tracked suggestions, comment threads, compiling on Overleaf, and managing projects. Edits
made this way change the live document at once, with no local clone and no push_changes
step.
What needs Overleaf's Git integration is the local clone: read_history, push_changes
with its collaborator check, the unpushed diff, restoring a file from an earlier revision,
and compiling locally. Overleaf gates Git integration on the project owner's subscription,
so a free account invited to a project whose owner has an individual, group, or
institutional plan can use all of them.
Can it compile LaTeX and show tracked changes?
Yes. compile_project runs locally when latexmk and a TeX distribution are installed,
and with a session cookie it can compile on Overleaf's servers instead (where: "overleaf"). The cookie also turns on the review tools: tracked suggestions, accepting and
rejecting them, and reading, answering and resolving comment threads.
Privacy Policy
The server runs entirely on your computer. It has no analytics, no telemetry, and no
service behind it. It talks to Overleaf's Git bridge, and to Overleaf's web app only when a
session cookie is configured. look_up_citations is the one tool that contacts anyone
else: it sends the titles, identifiers, first authors and years of the entries it checks,
and the DOIs, arXiv ids or titles it is asked to find, to doi.org, Crossref and arXiv. Your token is
stored either in the operating system keychain, when Claude Desktop installs the bundle, or
in a mode 600 file written by setup, and it is redacted from error output.
Whatever a tool returns becomes part of the conversation with the MCP client you connected, and is handled under that client's own policy.
Full text: docs/privacy-policy.md.
For installation and usage support, open a GitHub issue.
License
MIT
Available Tools
15 toolscheck_referencesCheck references, citations and included filesARead-only
Check a LaTeX document's cross-references and citations from its source, without compiling: \ref, \eqref, \cref and similar with no matching \label; \cite keys found in no .bib file or \bibitem; labels and bibliography keys defined twice; and \input, \include, \includegraphics and bibliography files that do not exist. Use it before push_changes or a compile, and after renaming a label, a citation key or a figure. The check starts at mainTexFile, or without it at main.tex, paper.tex or another conventional name at the project root, else the shallowest .tex file. It follows \input, \include, \subfile and \import from there, and warns when a guessed starting file has no \begin{document}. A .tex file it never reaches is named in the reply but not checked, and can be checked on its own as mainTexFile. A mainTexFile that does not exist is refused with a list of the .tex files. Comments and verbatim blocks are ignored, and a path or key built from a macro is counted rather than guessed. Pulls from Overleaf first. Returns a verdict line with the number of problems, each problem with its file and line, then labels never referenced and bibliography entries never cited, which are worth a look but are not errors.
Inputs: project, mainTexFile.
compile_projectCompile the projectARead-only
Compile one project and report the errors and warnings, so a broken paper is caught before collaborators see it; where picks the compiler. Call it after editing and before push_changes. local, the default, runs latexmk -pdf on this computer. It compiles the clone as it stands, local edits included, without pulling, and halts at the first error. Without mainTexFile it tries main.tex, paper.tex, manuscript.tex, root.tex, thesis.tex and article.tex at the root, then the shallowest .tex file, and stops with a message if that file has no \begin{document}. Build artifacts go to a directory outside the clone, so they are never pushed, and the reply gives the path of the PDF there when the compile produced one, with the SyncTeX map beside it (latexmk runs with -synctex=1). Without latexmk and a TeX distribution installed locally it says so instead of compiling; a run past the configured timeout, 180 seconds by default, is reported as an error. It also restores any files sparse checkout was holding back, since figures must be on disk to compile. overleaf compiles on Overleaf's own servers, exactly as the Recompile button does, with the project's compiler and TeX Live version from Overleaf's settings and the account's plan deciding the time limit. It compiles what is in Overleaf now, so local edits count only after push_changes, and without mainTexFile it uses the main document set in Overleaf's menu; draft and stopOnFirstError apply to it only. Its PDF, log, output.bbl, output.blg and SyncTeX map, whichever it produced, are saved to the same build directory, replacing the previous compile's, and the reply gives each path. Returns a verdict line, then errors, then warnings, including BibTeX's and biber's for overleaf, then the output paths.
Inputs: draft, where, project, mainTexFile, +1 more.
edit_fileEdit a file in the local cloneADestructive
Change one file in the project's local clone; action picks how. replace_text replaces an exact snippet, findText, with replaceWith: findText must match exactly, whitespace and newlines included, and occur once unless replaceAll is set, and replaceWith is inserted literally, so $$, $& and $1 stay as written. Prefer it for a targeted change, since nothing outside the snippet is touched. replace_section replaces one whole section of a .tex file, found by sectionTitle as read_file finds it, from its heading to the next heading of the same or a shallower level, never swallowing trailing matter such as \end{document} or the bibliography; content replaces that range line for line, so it must start with the sectioning command itself or the heading is lost, and should end with a newline to keep the blank line before the next heading. write creates the file, with any missing parent directories, or overwrites it entirely with content, exactly as given, as UTF-8, with no trailing newline added; use it for a new file, since for an existing one the other actions cannot drop text you did not mean to rewrite. append adds content at the end of an existing file and leaves every line above it untouched: content starts on a new line and is written exactly as given, so end it with a newline to keep one at the end of the file. A missing file is refused, since write is the action that creates one. expectedRevision makes any action a guarded edit, refused if the file changed since that read or, for write, no longer exists. path must be relative and stay inside the project; absolute paths, .. escapes and the .git directory are refused. Pulls from Overleaf first, then edits only the local clone: review the result with read_project (view changes) and publish it with push_changes. If the snippet or the section is not found, or the snippet occurs several times without replaceAll, nothing changes and the reply gives the count or lists the section titles. Returns what was replaced, written or appended.
Inputs: path (required), action (required), content, project, +5 more.
list_projectsList Overleaf projectsARead-only
List the Overleaf projects this server can reach. The ones configured here come first, with the default marked. With the session cookie, the signed-in account's projects follow, as Overleaf's dashboard lists them, each with its access level, address and tags. They keep the order Overleaf returns them in. Call this when a request is ambiguous about which paper it means, or when another tool reports an unknown project. Any project listed can be passed to other tools as project, by its registered name or its address. It only finds projects. To look inside one, use read_project, read_file or search_project. filter and tag need the session cookie. Setting tag, or a filter other than all, lists only the account's projects, without the configured ones. nameContains narrows every list. A tag the account does not have is reported with the tags it does have. Returns the registered names, then one line per account project, marked with its registered name where it has one. The whole list comes in one reply, with no paging, and is cut off after 60,000 characters.
Inputs: tag, filter, nameContains.
look_up_citationsLook up cited worksARead-only
Look up bibliography entries in public catalogues; action picks what. verify, the default, looks up the entries a document cites, or the keys given, to catch references that point at the wrong work or at nothing, such as a mistyped DOI or a citation made up by a model. An entry with a DOI is resolved through doi.org (Crossref, DataCite and mEDRA DOIs), one with an arXiv id through arXiv's API, and any other through a Crossref title search; the registered title must match the entry's. verify sends each looked-up entry's DOI, arXiv id, or title, first author and year to those services, and nothing else from the project. It returns a verdict line, then entries whose DOI or arXiv id does not resolve or names a different title, then entries no search could confirm, which is weaker evidence because books, theses and web pages are often not in Crossref, then the confirmed ones. check_references finds cited keys with no entry at all; verify checks the entries that exist. find turns each query into a BibTeX entry: a DOI through doi.org, an arXiv id through arXiv, and words through a Crossref search that offers up to 3 matches to choose from. find sends the queries as given and nothing from the project. Its keys avoid every key in the project's .bib files, and a work the bibliography already holds is named with its key. find writes nothing; add the entries chosen with edit_file. arXiv allows one request every three seconds, so arXiv lookups are slow, and a call stops starting lookups after 45 seconds and names what it did not reach. Both actions pull from Overleaf first and read the project's files in the clone.
Inputs: keys, action, project, queries, +2 more.
manage_commentsAdd, answer, edit, resolve or delete commentsADestructive
Change the comment threads in Overleaf's review panel. Every action takes effect in Overleaf at once, with no push step, and messages appear under the signed-in account's name, so confirm with the user first. add starts a thread on a passage, to raise a question without changing the prose. quoteText is compared literally with the document as the editor holds it now, and must occur exactly once in the document at path. When it is missing or repeated, nothing is added. reply adds a message without resolving the thread. resolve and reopen change only the thread's status, keeping the thread and its messages. delete removes a thread, its anchor and every message for everyone, and cannot be undone from here, so prefer resolve unless the thread should not exist at all. edit_message replaces the text of one message. Overleaf's editor offers that only on the account's own messages, and sending the text the message already has changes nothing. delete_message removes one reply. With review access only the account's own replies can go. A thread's first message is refused, because only delete removes it, with the whole thread. edit_message and delete_message read the thread again and fail if the change is not there. An unknown threadId is refused rather than starting a new thread, and an unknown messageId is refused with the ids the thread has. An argument the chosen action does not take is refused before anything is sent. Returns the new thread id for add, otherwise a one-line confirmation.
Inputs: action (required), path, message, project, +3 more.
manage_filesDelete, move, upload or restore files and foldersADestructive
Change which files and directories the project's local clone holds, or throw local work away; action picks what. delete removes a file, or a directory with everything in it. move renames a file or a directory or moves it inside the project, creating missing parent directories and refusing a toPath that already exists or lies inside the directory being moved. A move that would leave a project file ignored by Git is refused. upload adds a file byte for byte, such as a figure, a PDF, a data file or a .bib from elsewhere, copied from sourcePath on this computer or decoded from contentBase64, and replaces a file already at path; edit_file is for text written in the call itself. upload_folder copies every file under the folder sourcePath into the directory path, keeping its subfolders and replacing files already at those paths; hidden files and folders and symbolic links are left out, and it takes at most 180 files, as Overleaf's upload dialog does. restore puts a file back to exactly what it was at revision, binary files included, and brings back a file deleted since; find the revision with read_history. discard_local_changes permanently throws away every local edit, new file and unpushed commit in the project, fetching Overleaf first so the clone ends up matching its current version; call it only once the user has said the work should be abandoned, typically after push_changes refuses a conflicting change. create_folder creates a folder, and any missing parent folders, in Overleaf itself at once, through the session cookie, because Git records files and never folders, so a clone cannot hold an empty one. Co-authors see it immediately and there is no undo here, so confirm with the user first. Nothing else reaches Overleaf until push_changes, and until then discard_local_changes undoes any of these; review them with read_project (view changes). LaTeX references are not rewritten: after a move or delete, search_project for the old path and fix what still names it with edit_file. Uploads over 50 MB and files under a hidden directory such as ~/.ssh are refused. An upload turns off text-only checkout for the project so the new file is committed with the rest, and so does deleting or moving a directory that holds files text-only checkout keeps off disk, so those files go with it. Every action except discard_local_changes and create_folder pulls from Overleaf first, and fails, keeping local work, if that pull conflicts with it. Returns what was changed, or why nothing was.
Inputs: action (required), path, toPath, project, +3 more.
manage_projectManage Overleaf projectsADestructive
Create, copy, rename, file away, tag, configure, download or share Overleaf projects in the signed-in account; action picks what. create makes a new project, blank (a minimal main.tex) or from Overleaf's example paper; create_from_zip makes one from a ZIP file on this computer, named after the file unless name is given; copy makes a copy of project, owned by this account, called name. Each of these replies with the new project's address, which other tools take as project. rename gives project a new name, which Overleaf allows only its owner; the address stays the same. archive and trash move project to this account's Archived or Trashed list, and unarchive and untrash bring it back; Overleaf keeps these lists per account, so co-authors see no change, and nothing is deleted. tag adds project to one of this account's tags, the folders of Overleaf's project list, creating the tag when the account has none by that name; untag takes it out again. update_settings changes what the editor's settings menu holds: compiler, rootDocument (the main document), spellCheckLanguage, texLiveImage, and trackChanges, which turns track changes on or off for everyone in the project. It needs edit access, refuses a TeX Live image or language this Overleaf does not offer and lists the ones it does, and afterwards opens a fresh connection to the project to check every change, failing with what took and what did not when one is missing. download_zip saves the whole project as Overleaf holds it now, binary files included, as the editor's Download Source menu does, for archiving or for a submission system such as arXiv; local edits are in it only after push_changes. invite has Overleaf email an invitation to email with accessLevel edit, review or view, and refuses someone who is already a member or already invited; set_access changes a member's access level, remove_member takes a member's access away, and revoke_invite withdraws a pending invitation. These four need this account to own project. Editors and reviewers take a seat on the owner's plan, so a full plan is reported, while a viewer always fits. invite, and set_access when it gives more access, first have the MCP client ask the user to confirm through elicitation; the model cannot answer for them, and nothing is changed without their yes. A client without elicitation is refused, and the user shares from Overleaf's Share menu instead. Taking access away asks nothing. Sharing links, transferring ownership and resending an invitation stay in Overleaf's Share menu, and so does an invitation overleaf.com's bot protection holds back for a captcha. Every action except download_zip changes Overleaf at once; the only undo is the opposite action. Projects are never deleted for good here. sourcePath must be an absolute path, outside hidden directories, to a ZIP archive of at most 50 MB; saveTo must be absolute, end in .zip and lie in a directory that exists, and never replaces a file that is not a ZIP. Both are checked before anything is sent or written. Returns plain text naming the project and saying what changed, or that nothing did because the project was already that way.
Inputs: action (required), tag, name, email, +10 more.
manage_tracked_changesSuggest, accept or reject tracked changesADestructive
Change the suggestions in Overleaf's review panel; action picks what. suggest proposes a change that arrives as tracked changes a co-author can accept or reject, rather than as finished text, in one of two forms. findText with replaceWith replaces one exact snippet: findText must match exactly and occur once in the document, and an empty replaceWith suggests deleting it. content rewrites more at once: with sectionTitle it is the section's full replacement, from its heading to the next heading of the same or a shallower level, and alone it is the whole document's new text; only the passages that differ become suggestions, so unchanged text keeps its comments. Use suggest when proposing a change to someone else's paper; use edit_file when the edit should simply be made. accept makes suggestions part of the paper, so suggested insertions become ordinary text and suggested deletions are removed for good. reject undoes them: a suggested insertion is removed and a suggested deletion puts the original text back. Name the suggestions to decide by changeIds from read_review (view tracked_changes), or pass all: true for every suggestion in the document. Every action reaches Overleaf immediately, for every collaborator, through the editor rather than the Git bridge, so there is no push step and no undo from here; confirm accept and reject with the user first. suggest needs review access to the project and accept and reject need edit access; the call is refused before anything is sent when the account lacks it. Overleaf's editor cannot store emoji or other characters outside the Basic Multilingual Plane, so replaceWith or content containing one is refused; write a LaTeX command instead. Returns the suggestion made, with the number of suggested deletions and insertions a content rewrite became, or the suggestions decided after checking they are gone from the review panel.
Inputs: path (required), action (required), all, content, +5 more.
push_changesPush changes to OverleafADestructive
Publish every pending local edit to Overleaf as one commit. This is the only tool that changes the project collaborators see, and the change is immediate and public. Call read_project (view changes) first, and compile_project when the edit could break the build. Before pushing, the server re-checks Overleaf and rebases onto whatever collaborators pushed in the meantime. If two edits touch the same lines the push is refused, both versions are reported, and no local work is lost: nothing is overwritten and no winner is chosen. commitMessage labels the one commit made from the pending edits; commits already waiting from an earlier refused push keep their own messages and go out with it. Only the chosen project is pushed. Returns the new commit hash and the diff that was published, or reports that there was nothing to push.
Inputs: commitMessage (required), project.
read_fileRead a project fileARead-only
Read one file from the project after pulling the latest commits from Overleaf. Plain calls return the text, line-numbered when startLine or endLine is given; startLine alone reads to the end, and endLine is clamped to the file. sectionTitle returns one section of a .tex file instead, so the rest of a long paper stays out of context: from its heading to the next heading at the same or a shallower level, stopping before trailing matter such as \appendix, the bibliography or \end{document}. It is compared case-insensitively with the title in braces, not an optional [short] title: an exact match wins, otherwise the first heading in document order that contains it, and if nothing matches the reply lists the titles that exist. mode=full returns JSON with the content and a revision hash for a guarded edit; mode=smart with previousRevision returns kind unchanged, a delta, or full content when this server process does not know that revision or a delta would be no smaller. Use a line range to sample a large file, mode=full before an edit that passes expectedRevision, and mode=smart to re-read a file already read. Apply a delta only to its exact baseline: split on newline, replace deleteLineCount lines at the 1-based startLine with change.lines, and join on newline. Plain text is cut off after 60,000 characters; in a revision mode, a file too large to return whole comes back truncated with no revision. With revision, reads the file as it was at that commit from read_history instead, as plain text; line ranges and sectionTitle work, mode does not. followIncludes returns a .tex file with the files it includes inlined, to read a paper split across files in one call. A PNG, JPEG, GIF or WebP file comes back as an image the model can see, after a line giving its format, size in pixels and bytes; it may have at most 3,750,000 bytes and 8000 pixels a side, and takes no other read argument. A figure a text-only checkout keeps off disk is read from Git without changing the checkout. Fails without reading for a missing file, any other binary file (a PDF or EPS figure is refused with the command that renders it to PNG), a path outside the project, a line range or sectionTitle combined with mode, sectionTitle combined with a line range, followIncludes combined with any other read argument or on a file that is not .tex, startLine after endLine, or startLine past the last line.
Inputs: path (required), mode, endLine, project, +5 more.
read_historyRead the project's historyARead-only
Read the history Overleaf's Git bridge has recorded for a project, plus anything pushed from here. commits, the default view, lists commits newest first, with date, author, message and the files each one changed. Use it to find who changed a file and when, or a revision for read_file, manage_files (action restore) or the diff view, which take the short hash it prints. It returns at most limit commits, so narrow with path, since and until rather than raising limit far. diff shows what changed from fromRevision to toRevision, or to Overleaf's latest fetched version without toRevision. For local edits not yet pushed, use read_project (view changes) instead. blame prints each line of the file at path, or of startLine to endLine, after the short hash, date and author of the commit that last changed it, then lists those commits with their messages. A line edited here and not committed yet is marked "not committed yet". Blame follows the file through renames, and refuses a binary file or one with no commit yet. commits and blame first pull from Overleaf over the network, so the newest commits are included. That pull can fail when Overleaf has new commits and local work is not pushed yet. The call is then refused, the local work kept, and the reply says how to review, push or discard it. diff does not pull, and compares against Overleaf as last fetched. A diff without fromRevision, a blame without path, or a revision that is not a commit hash is refused before Git runs. A diff or blame is cut off after 60,000 characters, so blame a long file in line ranges.
Inputs: path, view, limit, since, +6 more.
read_projectRead a project as a wholeARead-only
Read one project as a whole; view picks what. overview, the default, orients at the start of a task: the absolute path of the local Git clone this server edits, the likely main document and its section count, file counts by kind, and local work not yet pushed. files lists every path grouped by kind (LaTeX sources, bibliographies, figures, other), including files sparse checkout keeps off disk. outline lists the sectioning commands of path, or of the likely main document, with nesting and line ranges, following \input and \include into the files it includes; commented-out headings are skipped. status reports the clone against Overleaf: branch and head, commits just pulled, local commits not yet pushed, files edited but not committed, and the last ten commits. changes shows the unified diff push_changes would publish: uncommitted edits, new and deleted files, and commits left behind by a refused push. members lists who the project is shared with: the owner, each invited collaborator with their access level, and pending invitations, which Overleaf shows only to the owner; manage_project changes who it is shared with. word_count gives Overleaf's own word count, from texcount on Overleaf's servers, for path or for the main document set in Overleaf's menu, with the files it includes: words in text, in headings and outside text such as captions, and how many headings, floats and math expressions there are. Use read_file for one file's text, search_project to find which file mentions something, and read_history for older versions. The likely main document is a guess (main.tex, paper.tex, manuscript.tex, root.tex, thesis.tex or article.tex at the root, otherwise the shallowest .tex file), and the reply says when it has no \begin{document}. overview, files, outline and status pull from Overleaf first; if that pull conflicts with unpushed local work, the call fails and keeps the work, except in status, which reports the conflict as a WARNING. changes does not pull, so it compares against Overleaf as last fetched. members and word_count read Overleaf itself through the session cookie and leave the clone alone; word_count counts what has been pushed, and a path there that is not an editable document fails and names the ones that exist. project can name any project the default token reaches, registered or not; the first call on a project clones it, so it is slower than later calls. Returns plain text, cut off after 60,000 characters; "No local changes pending." means there is nothing to push.
Inputs: path, view, project, extension, +2 more.
read_reviewRead tracked changes and commentsARead-only
Read what is waiting in Overleaf's review panel. It reads the live editor rather than the Git bridge, so it sees suggestions nobody has accepted yet, which no other tool here can. Call it before suggesting, deciding, replying or resolving, to see what is already there. Do not use it to read a document's text, which read_file returns. tracked_changes lists one document's suggestions, each with its line, its text and the id manage_tracked_changes takes, plus the text each comment thread in that document is anchored to. comments lists threads under their documents, in the order their anchors appear, each with its line, the anchored text, whether it is open or resolved, and every message with its author, time and the ids manage_comments takes. path must name one of the project's editable documents, as read_project (view files) lists them. Any other path is refused, and the reply names the documents that exist. Leaving out path in the comments view also counts threads whose anchored text was deleted, which reading one document cannot find. When includeResolved is false, a note counts the resolved threads left out. An argument the chosen view does not take, such as includeResolved with tracked_changes, is refused. Returns plain text grouped by document, cut off after 60,000 characters.
Inputs: view (required), path, project, includeResolved.
search_projectSearch the projectARead-only
Search the project's text sources for a literal string or a regular expression, returning matching lines as path:line: text. Use it to find where a term, citation key, label or command appears when you do not know which file holds it; once you do, use read_file, with sectionTitle for one section, and use read_project (view files) to find a file by name. Only .tex, .ltx, .bib, .cls, .sty, .bst, .txt and .md files are searched, and a file created locally is not searched until push_changes commits it. Both modes are case-insensitive and match one line at a time, so a pattern cannot span lines. A regular expression uses JavaScript syntax, sees the first 4,000 characters of each line, and is abandoned with an error after 10 seconds; an invalid one fails with its syntax error. maximumMatches counts matching lines, taken in path order. Pulls from Overleaf first.
Inputs: query (required), project, maximumMatches, isRegularExpression.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct surface: local-clone editing (edit_file/manage_files), publishing (push_changes), live editor review (read_review/manage_comments/manage_tracked_changes), and reading (read_project/read_file/read_history/search_project). The descriptions explicitly cross-reference and contrast near-neighbors, e.g. read_history tells you to use read_project(view changes) for unpushed edits, and manage_tracked_changes distinguishes suggest from edit_file. Encoding of the Git-bridge vs live-editor split makes misselection unlikely.
All 15 tools use a consistent snake_case verb_noun pattern (read_*, manage_*, list_projects, push_changes, edit_file, compile_project, check_references, look_up_citations). The verbs map meaningfully to intent (read vs manage vs push vs compile), and no camelCase or mixed conventions appear.
15 tools sits at the top of the well-scoped range and each maps to a real capability cluster (project mgmt, reading, editing, review, build/checks, citations). No redundant tools pad the set, and the multi-action tools (manage_project, manage_files) consolidate rather than proliferate.
Coverage is strong: project lifecycle, file editing, git publishing, review/tracked-change/comment workflows, compile and reference checks, and citation lookup are all represented. Minor gaps exist where functionality is explicitly deferred to Overleaf's UI (permanent project deletion, share links, ownership transfer, resending invites), which agents can work around.
Maintenance
Related MCP Connectors
Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
Git collaboration for AI agents and people: tasks, hand-offs, reviews, teams, shared memory.
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Persistent AI LaTeX workspace: edit and compile multi-file projects, export publication-ready PDFs.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides access to Overleaf projects via Git integration, allowing Claude and other MCP clients to read LaTeX files, analyze document structure, and extract content.6151 npm368MIT
- AlicenseAqualityBmaintenanceLive search, read, edit and compile access to all your Overleaf projects, signed in with your Overleaf web session, so no Git integration or paid plan is needed. Edits merge with collaborators' typing (optionally as tracked changes), compile errors come back as file:line, and projects can sync to local folders; works with self-hosted Overleaf too.2111MIT
- FlicenseAqualityDmaintenanceEnables Claude to read and edit Overleaf projects via the git bridge, with compile-gated writes to ensure safety.10-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to read, edit, upload, compile, and manage projects in a self-hosted Overleaf Community Edition via MCP, while also providing a git remote for cloning and pushing changes.1MIT