Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

mcp-server-overleaf

Latest version: v0.6.2

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: yzch1128
1 Stars
0 Forks
19 Versions
1.5K Downloads
TypeScript Repo language

Scan summary

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.

  • Releases: 19 versions; the latest 5 were published within 3 days (23–25 Nov 2026).
  • Findings: No rules fired in version 0.6.2.
  • Downloads: 1,474 downloads.

Versions

19 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.6.2

Findings

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.

README

The publisher’s own README, as collected from the registry.

Overleaf MCP Server — Safe AI Editing for LaTeX Papers

npm version Build MCP Registry License: MIT

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.

Why choose this Overleaf MCP server?

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.

  • A conflict ends the push, not your co-author's paragraph. Every read and every push first checks what changed on Overleaf. When two edits touch the same lines, push_changes refuses and shows you both versions.
  • 15 tools, each one a read or a write, and nothing reaches Overleaf until you say so. Read, search, and edit by section or by exact text; add, move, remove and upload files and folders; browse, blame and restore earlier revisions; compile; inspect the diff; then publish deliberately.
  • It checks the paper, not only the text. 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.
  • An edit can arrive as a suggestion, not as finished text. With a session cookie the same tools also reach Overleaf's editor and web app: a change lands in the review panel for a co-author to accept or reject, comment threads can be read and answered, a project compiles on Overleaf without a local TeX installation, and projects can be copied, renamed, archived, tagged, configured and shared. An invitation goes out only after you confirm it in your MCP client. Tracked changes
  • Skills and prompts for the work around the tools. The Claude Code and Codex plugins add skills for chktex, latexindent, texcount, latexdiff, latexpand, arXiv packaging and SyncTeX, and the server offers prompts for reviewing a paper, revising a section, answering #agent comments, resolving a refused push and preparing an arXiv upload.
  • No terminal, if you do not want one. Claude Desktop installs it from a downloaded bundle; Claude Code and Codex install it as a plugin.
  • The token is written once, to one file, at mode 600. No client configuration holds it, and the published plugin declares no environment variables at all.

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.

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
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.

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 .mcpb extension: what is inside it, how to build it, and how to remove it.
  • Install the Claude Code and Codex plugins covers the two marketplace entries: what the plugin contains, how it gets a token without holding one, and how to update, remove, or build it.
  • 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.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.

Install with one command

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 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.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.

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.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.

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.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.

Install from a source checkout

Step 1: build

npm ci && npm run build

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm mcp-server-overleaf

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229