SuperAPIAI Directory

mcp-server-overleaf

github.com · AI developer platforms

mcp-server-overleaf is an Overleaf MCP server for MCP clients such as Claude, Codex, ChatGPT, and Cursor, letting AI read and edit real LaTeX paper projects directly. It supports access to Overleaf via Git bridge or session cookie, can read the full text, fix references, suggest edits in track-changes mode, compile, and publish. When a collaborator has modified the same lines, it stops the push instead of overwriting. The project is an independent community project and is not affiliated with Overleaf officially.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

mcp-server-overleaf is an MCP (Model Context Protocol) server designed to let AI clients work directly with LaTeX paper projects on Overleaf. It supports MCP clients such as Claude, Codex, ChatGPT, Cursor, and VS Code, providing up to 15 tools and 5 prompts, over stdio or Streamable HTTP transport.

Main capabilities:

  • Work on real projects: AI can read the outline across \input files, search all files, and edit by section or exact text without copying content into the chat window.
  • Suggest rather than rewrite: edits can appear as tracked changes in Overleaf's review panel for collaborators to accept or reject; review comments can also be read, replied to, and resolved.
  • Prevent overwriting collaborators: with a Git token, edits stay in the local clone until pushed; Overleaf is checked before every read and push, and if a collaborator has modified the same lines, the push stops and shows both versions.
  • Check references: check_references finds undefined and unused labels and citations without compiling; look_up_citations checks entries against doi.org, Crossref, and arXiv, flags DOIs that belong to a different paper, and looks up BibTeX.
  • Compile: compile locally with latexmk, or compile on Overleaf's servers (no TeX installation needed), and report all errors and warnings.
  • Works on the free plan: with only a session cookie, 13 of the 15 tools are available without Git integration; a Git token adds history, provenance, and protected push features.
  • Bundled workflows: prompts can review a paper, revise sections, answer #agent comments, resolve rejected pushes, and prepare an arXiv upload; the Claude Code and Codex plugins also add skills such as chktex, latexdiff, texcount, SyncTeX, and arXiv packaging.

Usage:

  • Installation requirements: Node 22.14+ and git on PATH, with Node 24 LTS recommended; local compilation also requires latexmk and a TeX distribution.
  • Claude Desktop: Download the .mcpb bundle and double-click to install, then fill in the project URL and Git token (session cookie optional).
  • Claude Code / Codex plugin: Store the token first, then install the plugin from the repository marketplace.
  • One-command setup: Run the setup command, which checks Node and git, verifies the token, and then registers with the local client.
  • Manual npm install: Specify version 0.6.4, create a private configuration file to store the token and project ID, and configure the client's mcpServers JSON.
  • Source install: Confirm that dist/index.js exists, collect the Git token and project ID, write them to .env, and verify.

Use cases: collaborative editing of academic papers, LaTeX project search and citation checking, pre-compilation review, submitting edits as revision suggestions, arXiv upload preparation.

Limitations:

  • Independent community project, not affiliated with or endorsed by Overleaf.
  • The Git bridge tool requires Git integration to be enabled for the project; Overleaf lists this as an advanced feature that depends on the project owner's subscription (individual, group, or institutional); free accounts invited to a project with a subscription can still use it.
  • Without Git integration, only the session cookie provides 13 tools.
  • The release test matrix covers macOS and Linux; Windows Git and TeX workflows have not been verified.
  • This server is a command-line application, not an importable JavaScript library.
  • The token is written to ~/.config/overleaf-mcp/projects.json with permission mode 600 and is not stored in the client configuration.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools