Overleaf for AI agents (olmcp) MCP Server
Overleaf for AI agents: review comments, tracked-change edits, new files and PDFs; no Git needed
Overleaf for AI agents (olmcp) scores 64 (Good), licensed Apache-2.0 and written in JavaScript. It installs as a local process. It does not declare tools yet. Filed under Version control. GitHub shows 1 stars. Package registries report about 55 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
64 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 64 comes from
22 + 20 + 1 + 10 + 4 + 7 = 64. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "nipdep-agent-overleaf-connector": { "command": "npx", "args": [ "-y", "olmcp@1.0.0-alpha.3" ], "env": { "OVERLEAF_SESSION": "YOUR_OVERLEAF_SESSION", "OVERLEAF_BASE_URL": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
OVERLEAF_SESSIONSecret | Optional | Your Overleaf session cookie (overleaf_session2). Optional: `olmcp auth` stores it in ~/.config/olmcp instead. |
OVERLEAF_BASE_URL | Optional | Only for a self-hosted Overleaf, e.g. https://overleaf.example.edu. Defaults to https://www.overleaf.com. |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Agent–Overleaf Connector (olmcp)
olmcp lets an AI agent respond to review comments in an Overleaf project.
You comment in Overleaf. The agent reads the comment and the selected text, proposes an edit as an Overleaf tracked change, and replies in the same thread. You remain the reviewer: you accept or reject the edit and close the thread.
olmcp has no hosted backend: the connector runs on your computer and uses your Overleaf session. Your chosen AI client may still send MCP results to its model provider under that client's own privacy terms.
The workflow
1. You select text and leave a comment in Overleaf.
2. The agent reads the comment and the live project.
3. The agent proposes a tracked change and replies in the thread.
4. You accept, reject, request another version, or resolve the thread.
By default, an edit is a proposal, not a silent replacement. Overleaf shows the original text as a tracked deletion and the proposed text as a tracked insertion.
Project status:
1.0.0-alpha.3. The core review flow has been used on real Overleaf projects; newer features such as pending-suggestion revision and file creation still need real-service testing. Start with a disposable project.
What the MCP can and cannot do
| It can | It deliberately cannot |
|---|---|
| Read comments, threads, selected text, and text files in the project | Accept or reject a tracked change for you |
Propose tracked edits in review mode | Resolve, reopen, close, or delete a comment thread |
Apply a plain edit when you explicitly use #direct | Overwrite or delete an existing file |
| Reply in a comment thread | Edit documents that use Overleaf's unsupported newer history format |
| Revise its own pending suggestion when you ask for another version | Create images, PDFs, or other binary project files |
| Create a new text file and missing folders | Work continuously in the background or watch for new comments |
| Compile the project on Overleaf and save the PDF locally | Give the agent a separate Overleaf identity; changes use your account |
The tool surface enforces these limits. However, an agent with unrestricted shell access could read the stored session cookie and contact Overleaf outside the MCP. See Security and trust.
Quick start
You need Node.js 20 or newer, an Overleaf account, and an MCP-capable agent such as Claude Code or Codex. You do not need Python, TeX, or Overleaf's paid Git integration. The current GitHub-based installation may also need the git command; normal use does not.
1. Install olmcp
npm install -g github:nipdep/agent-overleaf-connector
olmcp --version
2. Sign in to Overleaf
Copy the overleaf_session2 cookie from your browser's developer tools, then run:
olmcp auth --cookie "<cookie value>"
Treat this cookie like a password. Never paste it into an agent chat, issue, or commit. The setup guide shows where to find it and what to do when it expires.
3. Register the MCP server
Choose your agent, then restart it:
# Claude Code
claude mcp add --scope user olmcp -- "$(which olmcp)" mcp
# Codex
codex mcp add olmcp -- "$(which olmcp)" mcp
Windows PowerShell commands and other MCP clients are covered in Connect an AI agent.
4. Give the agent your project URL
No project folder or clone is required. After connecting the MCP, paste the Overleaf project URL into the request:
Address the comments in https://www.overleaf.com/project/<project-id>.
If you prefer not to paste the URL each time, you can save the project ID in a working folder with olmcp init. See Choosing a project.
5. Address a comment
In Overleaf, select a sentence and comment “make this clearer.” Then tell your agent:
Address the comments in https://www.overleaf.com/project/<project-id>.
Back in Overleaf, review the tracked edit. Accept or reject it, reply with another request, or resolve the thread yourself.
Everyday controls
| When you want to… | Do this in Overleaf |
|---|---|
| Propose a normal reviewable edit | Leave an ordinary comment; review is the default |
| Apply an edit without tracked changes | Add #direct to the comment |
| Keep the agent away from a thread | Add #no-agent |
| Focus the agent on particular threads | Add #agent to those comments |
| Ask for another version of a pending suggestion | Reply in the same thread, for example “shorter please,” then run the agent again |
| Add a new section or bibliography file | Ask in a comment; the new file appears immediately, while the \input or bibliography edit is proposed separately |
| Finish a discussion | Resolve the thread yourself |
Read Using olmcp for examples, modes, tags, file creation, and the complete MCP tool list.
Important safety details
- Tracked changes are attributed to your Overleaf account because the connector uses your session.
- A newly created file cannot be a tracked change. It appears immediately; the connector never overwrites or deletes files.
#directchanges are immediate. Use Overleaf History if you need to undo one.- The interface is unofficial and may break when Overleaf changes it.
- The session cookie usually expires after a few days. Run
olmcp authagain whenolmcp doctorreports an expired session.
Documentation
- Start here: documentation map
- Install and set up
- Use comments, proposals, tags, and files
- Connect and constrain an AI agent
- Run the alpha test checklist
- Check verified behavior and current limits
- Understand the technical design
- Contribute
Release changes are in the changelog. The retired Python workflow—Git sync, source markers, redline.tex, and GitHub Actions—remains on the python-legacy branch.
License and credit
Apache 2.0. See LICENSE. The Overleaf protocol handling follows the approach used by olcli by Alexander Loth (MIT); see THIRD_PARTY_NOTICES.md.
Frequently asked questions
What is Overleaf for AI agents (olmcp) MCP Server?
Overleaf for AI agents: review comments, tracked-change edits, new files and PDFs; no Git needed
How do I install Overleaf for AI agents (olmcp) MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Overleaf for AI agents (olmcp) MCP Server runs locally from the npm package olmcp with the command npx -y olmcp@1.0.0-alpha.3.
Is Overleaf for AI agents (olmcp) MCP Server free and open source?
Yes. Overleaf for AI agents (olmcp) MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Overleaf for AI agents (olmcp) MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Overleaf for AI agents (olmcp) MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Overleaf for AI agents (olmcp) MCP Server's trust score calculated?
Overleaf for AI agents (olmcp) MCP Server scores 64 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.