Scan your whole stack
From OX Research Newsroom
Are you using mcp-server-overleaf?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.6.2
mcp-server-overleaf was last scanned on 25 Nov 2026 at version 0.6.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.6.2 LATEST | 25 Nov 2026 | No rules fired |
| 0.6.1 | 24 Nov 2026 | No rules fired |
| 0.6.0 | 24 Nov 2026 | No rules fired |
| 0.5.2 | 24 Nov 2026 | Not shown |
| 0.5.1 | 23 Nov 2026 | Not shown |
Findings for v0.6.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.6.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Connect Claude Code, Claude Desktop, Codex, ChatGPT, Cursor, VS Code, or any MCP client to Overleaf. Read, search, edit, compile, and review real LaTeX projects without copy-pasting your paper into a chat window.
npx --yes mcp-server-overleaf@0.6.2 setup
Edits stay in a local clone until you explicitly publish them. Before every read and every push, this Overleaf MCP server checks what your collaborators changed. If both of you touch the same lines, it stops the push and shows both versions instead of choosing a winner.
With an optional Overleaf session cookie, edits can also arrive as tracked-change suggestions for co-authors to accept or reject, review-panel comments can be read, answered and resolved, a project can be compiled on Overleaf itself, and projects, folders and settings can be managed. A plain Git push cannot do any of that. The cookie alone also works on a free plan without Git integration.
Download the one-click Claude Desktop bundle or use the setup command above for Claude Code, Codex, Cursor, and other local AI clients.
Independent community project; not affiliated with or endorsed by Overleaf.
Several Overleaf MCP servers exist. Of the ones built on Overleaf's official Git bridge, this is the most complete, and it is the only one that stops instead of overwriting when a co-author has already changed the lines you are editing.
push_changes
refuses and shows you both versions.check_references finds undefined and unused
labels and citations, and \input files that do not exist, without compiling.
look_up_citations looks bibliography entries up at doi.org, Crossref and arXiv, flags a
DOI that belongs to a different paper or an entry no search can find, and finds BibTeX for
a DOI, an arXiv id or a title.#agent comments, resolving a refused push and preparing an arXiv upload.Related projects compares the alternatives tool by tool, and is equally direct about the things 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.
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 |
| Cursor | npx --yes mcp-server-overleaf setup. One command |
| Visual Studio Code | A .vscode/mcp.json entry. Guide |
| 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 io.github.yangzichao/mcp-server-overleaf. Details |
| Any other MCP client | npx --yes mcp-server-overleaf --stdio, or Streamable HTTP. By hand |
| 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.
.mcpb extension: what is inside it, how to build it, and how to remove it.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.
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.
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.
Store the token once:
npx --yes mcp-server-overleaf@0.6.2 setup --clients none
Then, in Claude Code:
claude plugin marketplace add yangzichao/mcp-server-overleaf
claude plugin install overleaf@mcp-server-overleaf
Or in Codex:
codex plugin marketplace add yangzichao/mcp-server-overleaf
codex plugin add overleaf@mcp-server-overleaf
Restart 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.
npx --yes mcp-server-overleaf@0.6.2 setup
It 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 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.2 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.
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.2 --stdio
codex mcp add overleaf -- npx --yes mcp-server-overleaf@0.6.2 --stdio
Both 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.
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.2 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.2 --version
Keep 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=64a1b2c3d4e5f6a7b8c9d0e1
For clients using the mcpServers JSON format:
{
"mcpServers": {
"overleaf": {
"command": "npx",
"args": ["--yes", "mcp-server-overleaf@0.6.2", "--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.
npm ci && npm run build Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.