overleaf-mcp
Overleaf MCP
从 Claude 读取和编辑 Overleaf 项目,使用 Overleaf git bridge。
警告:当你向 MCP 提供项目 ID 时,这会让 Claude 访问整个项目目录。
要求
Overleaf 高级版(请检查你所在机构的访问权限!)
uv、git、TeX 发行版,以及pdftocairo(在 Mac 上可以brew install poppler)
Related MCP server: overleaf-mcp
设置
克隆仓库。
创建
~/.overleaf-mcp/projects.json。示例见projects.json.example。项目 ID 是 Overleaf URL 中/project/后面的字符串。{ "default": "paper", "projects": { "paper": "<project-id>" } }将服务器添加到你的 Claude 配置中。你可以在 Overleaf 账户设置中生成 git token。
{ "mcpServers": { "overleaf": { "command": "/absolute/path/to/uv", "args": ["run", "--directory", "/absolute/path/to/overleaf-mcp", "overleaf-mcp"], "env": { "OVERLEAF_TOKEN": "your_git_token" } } } }重启 Claude。
工作原理
一个项目在 open_project 成功之前是 unverified 状态,open_project 会检查每个 \usepackage 是否能在你的本地 TeX 环境中解析,并对每个根文件进行基线编译。
在 open_project 通过之前,所有写入都会被拒绝
包含 \documentclass 的 .tex 文件是 根文件,而 子文件 通过 \input/\include/\subfile 被包含。编辑子文件会重新编译包含它的根文件。例如,这涵盖了标准的 main.tex + sections/ 项目、单文件论文,甚至是一组独立的单页文档文件夹,规则相同。
此外,任何错误都会阻止推送,而警告仅被报告。
工具
工具 | 描述 | |
| 拉取、验证环境,并进行基线编译 | |
| 列出 | |
| 带行号的结构 | |
| 带行号,可选范围( | |
| 正则搜索, | |
| 替换一个精确的唯一片段,编译门控 | |
| 创建或覆盖文件,编译门控 | |
| 复制图像或二进制文件 | |
| 编译所属根文件,返回摘要 | |
| 将一页渲染为图像 - 对布局/图像非常有用 | # Overleaf MCP |
从 Claude 读取和编辑 Overleaf 项目,使用 Overleaf git bridge。
警告:当你向 MCP 提供项目 ID 时,这会让 Claude 访问整个项目目录。
要求
Overleaf premium(请检查你所在机构的访问权限!)
uv、git、TeX 发行版,以及pdftocairo(在 Mac 上可以brew install poppler)
设置
克隆仓库。
创建
~/.overleaf-mcp/projects.json。示例见projects.json.example。项目 ID 是 Overleaf URL 中/project/后面的字符串。{ "default": "paper", "projects": { "paper": "<project-id>" } }将服务器添加到你的 Claude 配置中。你可以在 Overleaf 账户设置中生成 git token。
{ "mcpServers": { "overleaf": { "command": "/absolute/path/to/uv", "args": ["run", "--directory", "/absolute/path/to/overleaf-mcp", "overleaf-mcp"], "env": { "OVERLEAF_TOKEN": "your_git_token" } } } }重启 Claude。
工作原理
一个项目在 open_project 成功之前是 unverified 状态,open_project 会检查每个 \usepackage 是否能在你的本地 TeX 环境中解析,并对每个根文件进行基线编译。
在 open_project 通过之前,所有写入都会被拒绝
包含 \documentclass 的 .tex 文件是 根文件,而 子文件 通过 \input/\include/\subfile 被包含。编辑子文件会重新编译包含它的根文件。例如,这适用于标准的 main.tex + sections/ 项目、单文件论文,甚至是一组遵循相同规则的独立单页文档文件夹。此外,任何错误都会阻止推送,而警告仅被报告。
工具
工具 | 描述 |
| 拉取、验证环境,并基线编译 |
| 列出 |
| 结构,带行号 |
| 带行号,可选范围( |
| 正则搜索, |
| 替换一个精确的唯一片段,编译门控 |
| 创建或覆盖文件,编译门控 |
| 复制图像或二进制文件 |
| 编译所属根文件,返回摘要 |
| 将一页渲染为图像 - 对布局/图像非常有用 |
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceProvides access to Overleaf projects via Git integration, allowing Claude and other MCP clients to read LaTeX files, analyze document structure, and extract content.695236MIT
- AlicenseNot gradedqualityBmaintenanceEnables editing Overleaf projects from Claude, with tools to list, read, edit, and sync files via Git.MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude and AI agents to read and edit Overleaf documents in real time, with support for project listing, document manipulation, LaTeX compilation, and live collaboration.1038MIT
- AlicenseNot gradedqualityBmaintenanceConnects Claude/ChatGPT to Overleaf projects via the Git integration, enabling read, edit, write, and file management through natural language commands.2AGPL 3.0
Related MCP Connectors
Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
Read, edit, publish, and preview your pepita websites from Claude.
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/meaninglessC0de/Overleaf-Claude-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server