Overleaf MCP Server
Provides tools for interacting with Overleaf projects, including browsing and reading files, editing with Track Changes support, searching project contents, uploading/downloading files, compiling to PDF, and managing comments and review threads.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Overleaf MCP Kit
增强版 Overleaf MCP Server 与公网/本机双模网关套件(基于 @netique/overleaf-mcp 扩展)。
通过模拟 Overleaf 官方网页编辑器的 Socket.IO OT + HTTP API,让 网页端 AI(ChatGPT Connectors / Claude 等) 与 本地 AI Agent(Antigravity / Cursor / Claude Code / VS Code / Claude Desktop) 都能实时读写 Overleaf 项目、保留 Track Changes 修订记录、上传下载文件、发起云端编译并返回 PDF 图像/网页预览。
✨ 核心特性(共 31 个 MCP 工具)
分类 | 工具列表 | 说明 |
🔐 认证 |
| 实时检测 Cookie 与登录账号状态,不触发浏览器弹窗 |
📂 浏览 |
| 项目树浏览与源码读取(支持 |
🔍 检索 |
| 跨文档关键词 / 正则全文检索,返回路径、行列号与上下文 |
✏️ 编辑 |
| 单次/批量原子 OT 编辑,完整兼容 Overleaf 右侧 Review 面板 Track Changes |
📦 文件 |
| 新建、Base64 multipart 上传图片/附件、安全删除、重命名与移动 |
🧪 编译 |
| 云端编译并返回错误摘要;支持 |
⬇️ 下载 |
| 下载单文件、整项目 |
💬 批注 |
| 根据原文 |
工程化与易用性增强
无需域名也能公网用:内置免费 Cloudflare Quick Tunnel(启动即得
https://*.trycloudflare.com/mcp与自动生成的API Key),同时也支持 固定域名 / 固定 IP(终端直接展示回源地址http://127.0.0.1:<端口>供 Cloudflare Zero Trust 配置)与 仅本机模式。开机自动登录检测:启动时自动校验 Overleaf 登录状态;无 Cookie 或会话失效时自动弹出独立隔离 Chrome 完成登录(支持验证码 / SSO / 2FA)。
Cookie 延长保留与保活:支持
COOKIE_TTL_DAYS(默认 30 天,0不限制本地时长)、响应Set-Cookie滚动刷新自动落盘及后台定时保活COOKIE_KEEPALIVE_MIN(默认 180 分钟)。分类 Emoji 常驻终端日志:按
🔐认证 / 📂浏览 / 🔍检索 / ✏️编辑 / 📦文件 / 🧪编译 / ⬇️下载 / 💬批注彩色分区展示每次 HTTP 请求、工具入参、耗时与输出摘要。网页端 AI + 本地 Agent 全兼容:运行中的终端同时提供 Streamable HTTP (
/mcp) 与 SSE (/sse),并兼容Authorization: Bearer与x-api-key;可执行文件还支持--stdio参数供本地 Agent 直接拉起。Windows 单文件免环境 EXE:提供开箱即用的
Overleaf-MCP-SingleFile.exe与Overleaf-MCP-Portable.zip。
Related MCP server: Unofficial Overleaf MCP Server
🚀 快速使用(Windows 可执行版)
前往 Releases 下载:
Overleaf-MCP-SingleFile.exe:单文件版,双击即可运行,首次会自动解压运行环境。Overleaf-MCP-Portable.zip:便携文件夹版,解压后双击Overleaf-MCP.exe(启动更快)。
1. 启动选择连接模式
运行后控制台会提示选择连接方式:
[1] 临时公网地址:自动生成https://xxxx.trycloudflare.com/mcp和随机API Key,无需域名。[2] 固定域名 / IP:终端展示本机监听地址(如http://127.0.0.1:8080及局域网 IP),随后到 Cloudflare Zero Trust → Tunnels → Public Hostname 将 Service 指向该地址即可。[3] 仅本机使用:只监听127.0.0.1。
2. 接入本地 Agent(Cursor / Claude Code / Antigravity / VS Code / Claude Desktop)
方式 A(推荐,与网页 AI 共用常驻终端看实时日志):先运行 EXE,在本地 Agent 配置中填入 HTTP URL:
{ "mcpServers": { "overleaf": { "url": "http://127.0.0.1:8080/mcp", "headers": { "Authorization": "Bearer <终端显示的 API Key,未开启鉴权可省略>" } } } }方式 B(
--stdio本地 Agent 自动拉起):{ "mcpServers": { "overleaf": { "command": "D:\\path\\to\\Overleaf-MCP-SingleFile.exe", "args": ["--stdio"] } } }
⚙️ 配置文件 config.json
复制 config.example.json 为 config.json 即可自定义参数(单文件版可将 config.json 放在 EXE 同级目录,或位于 %LOCALAPPDATA%\Overleaf-MCP\config.json):
字段 | 默认值 | 说明 |
|
|
|
|
| 你的固定域名(如 |
|
|
|
|
|
|
|
| 自定义访问密钥(支持 |
|
| 启动时是否在终端交互选择连接方式 |
|
| 启动时是否自动校验 Overleaf 登录态并在未登录时弹出 Chrome |
|
| 本地 Cookie 最大保留天数( |
|
| 后台保活与 |
|
| 可选,自建 Overleaf Community Edition 地址 |
🛠️ 从源码开发与打包
需要 Node.js >= 20:
npm install
npm test
npm start若要使用 packaging/build-release.mjs 编译 Windows EXE,请先在项目根目录下放置便携版 Node 到 node/node.exe(以及可选的 bin/cloudflared.exe),系统需安装 .NET Framework 4.0(csc.exe):
npm run build:exe📄 开源协议
基于上游项目 @netique/overleaf-mcp 扩展,遵循 GNU AGPL-3.0-or-later 协议。详情见 LICENSE。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Overleaf MCP server for ChatGPT, Claude and any AI agent: list projects, read file, edit file, compile project, add comment, reply to comment, accept tracked change and invite collaborator in your own Overleaf account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Overleaf yourself; Cotlet does not store your password and you need no Overleaf API key. About the official Overleaf API: Overleaf has no public API to read or change existing projects (checked 5 Nov 2026). Its only API, Open in Overleaf, sends LaTeX in one direction to create a new project. Setup and FAQ: https://cotlet.dev/integrations/overleaf-api-mcp-server
Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
Overleaf alternative online LaTeX editor. AI agents edit, comment, and chat. Keep or revert edits.
A hosted LaTeX editor your assistant can actually use. Search 1,019 free templates, create and edit projects, and compile them to PDF on a real TeX Live farm, getting back the PDF or the compile log when a build fails. Thirteen tools behind OAuth 2.1, with nothing to install and nothing to run locally.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA real-time MCP server that enables AI coding agents to read, write, and compile LaTeX projects in self-hosted Overleaf instances via native OT protocol.111 npm15AGPL 3.0
- FlicenseBqualityDmaintenanceEnables AI agents to interact with Overleaf projects directly, including creating projects, managing files, and editing documents in real-time using Overleaf's native Operational Transformation protocol.101-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read, edit, upload, compile, and manage projects in a self-hosted Overleaf Community Edition via MCP, while also providing a git remote for cloning and pushing changes.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants such as Gemini, Claude, and ChatGPT to read, search, edit, compile, and review LaTeX files in your actual Overleaf projects, with versioned and atomic multi-file changes. Edits are published straight to Overleaf, so changes appear in the browser within seconds.MIT