Overleaf MCP server
MCP server for managing Overleaf projects through Git synchronization.
63 stars126 downloads/wk
Reviews
Write oneNobody has reviewed Overleaf yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Overleaf tools (5, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
edit_fileReplace exactly one matching text range in a UTF-8 file and push the result.
list_filesSynchronize and list visible files in an Overleaf project.
read_fileRead a UTF-8 text file, optionally selecting a bounded range of lines.
sync_projectRefresh the local project cache from Overleaf without changing the remote.
write_filewrite actionOverwrite the complete UTF-8 text file, commit the change, and push it to Overleaf.
Public scan report
scanner v0.1.10 · 2026-10-13 · same rubric, same numbers if you re-run it
- Code scan10 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 2 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Install Overleaf in Claude Code, Cursor or VS Code
claude mcp add overleaf-mcp-server -- uvx overleaf-mcp-integration
What the publisher says
From the Overleaf repository's README, as published. We do not edit it. Read it on GitHub
Overleaf MCP Server
<!-- mcp-name: io.github.YounesBensafia/overleaf-mcp-server -->
An MCP server for managing Overleaf projects through Git synchronization.
PyPI Package · MCP Registry
What This Server Does
- Connects MCP-compatible clients to your Overleaf project through Git sync.
- Exposes file-level tools to list, read, write, and sync project content.
- Keeps workflow simple: pull latest files, edit, then push back to Overleaf.
Architecture
flowchart LR
C[MCP Client\nClaude Desktop / other MCP host] -->|Tool Call| S[Overleaf MCP Server]
S -->|Git Sync| O[Overleaf Git Remote]
S -->|Read / Write| L[Local Repo Mirror]
L -->|Commit + Push| O
O -->|Pull / Fetch| L
S -->|Tool Result| CTool Workflow
sequenceDiagram
participant Client as MCP Client
participant Server as Overleaf MCP Server
participant Local as Local Mirror
participant Overleaf as Overleaf Git
Client->>Server: list_files / read_file
Server->>Local: Ensure local clone
Server->>Overleaf: git pull
Overleaf-->>Server: latest content
Server-->>Client: file list / file content
Client->>Server: write_file(path, content)
Server->>Local: update file
Server->>Local: git commit
Server->>Overleaf: git push
Server-->>Client: success + metadataRequirements
- Python 3.13+
- uv package manager
- An Overleaf plan with Git integration (individual, group, or institution license). Check if your institution provides free access at Overleaf for Institutions - use your institutional email. If your institution is not listed, upgrade your plan.
Git Setup
- Enable Git - open your project on Overleaf → Menu → enable Git under Integrations.
- Copy project ID - from the browser URL (e.g. https://www.overleaf.com/project/69a4f7cc4eaf13bd56de5b04 → 69a4f7cc4eaf13bd56de5b04).
- Generate a Git token - Account Settings → Git integration authentication tokens → Generate new token.
- Configure .env - copy .env.example to .env and fill in:
OVERLEAF_TOKEN=your_git_token
PROJECT_ID=your_project_idprojectid can also be passed per tool call, but PROJECTID is still required
by the server configuration.
The Overleaf Git token is account-wide credential material. Store it only in the MCP client's environment or a protected .env file, and rotate it if it is exposed.
Safety Notes
Files in an Overleaf project are untrusted input. A .tex file or project configuration can contain instructions aimed at the model; treat file contents as data, not as commands. Keep OVERLEAFALLOWEDPROJECTS restricted to the projects the server should be able to access:
OVERLEAF_ALLOWED_PROJECTS=project_id_a,project_id_bThe default allowlist contains only PROJECT_ID.
Quick Start
git clone https://github.com/younesbensafia/overleaf-mcp-server.git
cd overleaf-mcp-server
uv sync
cp .env.example .env # then edit with your token/project id
uv run overleaf-mcpWithout a checkout, run the Git version directly with:
uvx --from git+https://github.com/younesbensafia/overleaf-mcp-server overleaf-mcpPlain uvx overleaf-mcp is appropriate only after the project is published to PyPI.
The server listens on stdio - connect your MCP client (Claude Desktop, etc.) to it.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Overleaf: common questions
- Is Overleaf MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Overleaf safety report
- How do I install Overleaf?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Overleaf need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Overleaf maintained?
- The last commit was 2 days ago (2026-10-11). The latest release is v0.1.0.
- What can I use instead of Overleaf?
- Servers from other publishers that do the same job: Kindex MCP server, Kindex MCP server and Palinode MCP server. Compare all Overleaf alternatives.
Alternatives to Overleaf
Same job from other publishers: the closest match first, then the best rated.
- KindexPersistent knowledge graph and MCP server for AI workflows with git-tracked project context.not reviewedEstablishedA
- KindexPersistent knowledge graph and MCP server for AI workflows with git-tracked project context.not reviewedEstablishedB
- PalinodeInspectable, correctable project memory in git-versioned Markdown for AI agents.not reviewedEstablishedC
- Agent MemoryGit-native project memory for AI coding agents: Markdown source of truth, reviewable, secret-safe.not reviewedGrowingA
- GitlabGitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more.not reviewedWidely usedB