Overleaf MCP 智能连接器 是 AI Skill Hub 本期精选MCP工具之一。综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
这是一个基于MCP协议的开源服务器,旨在为Claude Code等AI Agent提供与Overleaf双向同步的能力。它允许AI直接读取和编辑LaTeX文档,极大提升了学术论文写作、公式推导及排版效率,适合科研人员和学生。
Overleaf MCP 智能连接器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
这是一个基于MCP协议的开源服务器,旨在为Claude Code等AI Agent提供与Overleaf双向同步的能力。它允许AI直接读取和编辑LaTeX文档,极大提升了学术论文写作、公式推导及排版效率,适合科研人员和学生。
Overleaf MCP 智能连接器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/ghostiee-11/overleaf-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"overleaf-mcp------": {
"command": "npx",
"args": ["-y", "overleaf-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Overleaf MCP 智能连接器 执行以下任务... Claude: [自动调用 Overleaf MCP 智能连接器 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"overleaf_mcp______": {
"command": "npx",
"args": ["-y", "overleaf-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="https://raw.githubusercontent.com/ghostiee-11/overleaf-mcp/main/docs/hero.png" alt="overleaf-mcp. AI agents for your LaTeX on Overleaf" width="100%"> </p>
<p align="center"> <a href="#install"><img alt="Python 3.11+" src="https://img.shields.io/badge/python-3.11%2B-3776ab?logo=python&logoColor=white&labelColor=2d3748"></a> <a href="#tools"><img alt="MCP tools" src="https://img.shields.io/badge/MCP%20tools-24-7b8cff?labelColor=2d3748"></a> <a href="#development"><img alt="Tests: 81 passing" src="https://img.shields.io/badge/tests-81%20passing-4dd0ff?labelColor=2d3748"></a> <a href="#license"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green?labelColor=2d3748"></a> <img alt="Platforms" src="https://img.shields.io/badge/platform-macOS%20%C2%B7%20Linux%20%C2%B7%20Windows-777?labelColor=2d3748"> </p>
<p align="center"> <b>Give any MCP-capable AI agent the power to read, understand, draft, lint, format, fix, compile, and sync your LaTeX work on Overleaf. Free tier included.</b> </p>
---
uv tool install overleaf-latex-mcp # or: pipx install overleaf-latex-mcp
uv tool install overleaf-sync # or: pipx install overleaf-sync
| Tool | Requires | Purpose |
|---|---|---|
format_file | latexindent | Apply project's .latexindent.yaml (or defaults) to a file. |
format_snippet | latexindent | Format a string without touching disk. |
check_formatting | latexindent | Dry-run; returns a unified diff. |
lint_file | chktex | Structured warnings with line, col, code, message. |
compile | latexmk | Build the PDF; returns path on success or parsed errors on failure. |
explain_log | none | Pure parser: LaTeX log text into structured errors with suggestions. |
When latexmk is installed, the agent closes a tight loop on its own:
write_tex_file -> compile -> if error, explain_log -> read_tex_file -> fix -> compile -> done
No back-and-forth with you required.
60-second setup for Claude Code, free-tier Overleaf account:
```bash
See docs/demo.md for a full 7-step transcript: list projects, plant 7 deliberate bugs, agent finds 10 findings across 5 checker tools, agent autonomously fixes every one, push back to Overleaf, independently verify on the server. Every query is a real claude -p invocation; every output is unedited.
<p align="center"> <img src="https://raw.githubusercontent.com/ghostiee-11/overleaf-mcp/main/docs/screenshot.png" alt="overleaf-mcp running through a full pull check fix push flow" width="92%"> </p>
---
Each unlocks a set of MCP tools. Missing ones are reported via detect_capabilities and return install hints when called; the server never refuses to start.
| Tool | Unlocks | macOS | Debian / Ubuntu | Windows |
|---|---|---|---|---|
latexindent | format_file, format_snippet, check_formatting | brew install latexindent | apt install texlive-extra-utils | bundled with MikTeX / TeX Live |
chktex | lint_file | brew install chktex | apt install chktex | bundled |
latexmk | compile | brew install --cask mactex | apt install latexmk | bundled |
overleaf-sync | olsync_* (needed **only** for the one-time browser login) | uv tool install overleaf-sync | uv tool install overleaf-sync | pipx install overleaf-sync |
The static checks (check_math, check_figures, check_packages, etc.) are pure Python and work with no external deps.
---
| Variable | Required | Purpose |
|---|---|---|
OVERLEAF_PROJECT_ROOT | **yes** | Absolute path to the local LaTeX working copy. |
OVERLEAF_PROJECT_NAME | no | Default project name for olsync_pull and olsync_push. Overridable per call. |
OVERLEAF_OLS_COOKIE | no | Custom path to the .olauth cookie file. Default: $OVERLEAF_PROJECT_ROOT/.olauth. |
OVERLEAF_GIT_URL | no | Overleaf Premium git URL (e.g. https://git.overleaf.com/<id>). Enables the pull_from_overleaf and push_to_overleaf tools. |
OVERLEAF_GIT_TOKEN | no | Overleaf Premium git token; paired with OVERLEAF_GIT_URL. |
aiskill88点评:精准切入学术写作痛点,将AI能力与专业排版工具打通,是科研工作流自动化的优质插件。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,Overleaf MCP 智能连接器 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | overleaf-mcp |
| Topics | LaTeX学术写作Claude Code |
| GitHub | https://github.com/ghostiee-11/overleaf-mcp |
| License | MIT |
| 语言 | Python |
收录时间:2026-07-06 · 更新时间:2026-07-06 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端