
MCP服务器为AI代理(Claude Code、Copilot、Antigravity)提供双向同步,支持Overleaf——包含免费套餐。24个工具:LaTeX检查、格式化、修复、编译、推送。
概览
赋予任何具备MCP功能的AI代理读取、理解、草稿、去除润色、格式化、修复、编译和同步你在Overleaf上的LaTeX作品的能力。包含免费套餐。 一个你插入 Claude Code、GitHub Copilot、Google Antigravity 或任何支持 MCP 标准协议的客户端的 MCP 服务器。一旦连接,代理可以: - 具备路径边界安全。- 在每个.tex:数学括号、对齐列漂移、图形完整性、表格列匹配、包冲突、标题与大小写一致性、悬挂的参考文献/未使用标签/未引用的bib条目。- ,用chktex编译,用latexmk编译。如果未安装二进制,所有内容都会优雅地退化。- 使用与人类贡献者相同的读写工具。- 有三种方式:原生免费层拉取推送(无高级)、官方git集成(高级版),或手动ZIP往返。- 结构化错误,仅用一行建议。
概述(AI 翻译)
赋予任何具备MCP功能的AI代理读取、理解、草稿、去除润色、格式化、修复、编译和同步你在Overleaf上的LaTeX作品的能力。包含免费套餐。
它的作用
一个你插入 Claude Code、GitHub Copilot、Google Antigravity 或任何支持 MCP 标准协议的客户端的 MCP 服务器。一旦连接,代理可以:
- **读取并写入你的LaTeX项目文件,带路径边界安全。
- 对每个
.tex运行7次静态检查:数学括号、对齐列漂移、图形完整性、表格列匹配、包冲突、标题与案例一致性、悬挂的参考文献/未使用标签/未引用的标注条目。 - 格式化为
latexindent,lint格式为chktex,编译为latexmk。如果未安装二进制文件,所有内容都会优雅地降级。 - 使用与人类贡献者相同的读写工具,草拟、重写、重构和应用模板。
- 通过三种方式与 Overleaf 同步:原生免费拉取推送(不含高级版)、官方 git 集成(高级版),或手动 ZIP 往返。
- **将晦涩的LaTeX日志输出翻译成带有单行建议的结构化错误。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
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.
What it does
An MCP server you plug into Claude Code, GitHub Copilot, Google Antigravity, or any client that speaks the MCP stdio protocol. Once connected, the agent can:
- Read and write your LaTeX project files with path-boundary safety.
- Run 7 static checks on every
.tex: math brackets, align-column drift, figure completeness, table column match, package conflicts, heading-case consistency, dangling refs / unused labels / uncited bib entries. - Format with
latexindent, lint withchktex, compile withlatexmk. Everything gracefully degrades if the binary is not installed. - Draft, rewrite, refactor, and apply templates using the same read + write tools a human contributor would.
- Sync with Overleaf in three ways: native free-tier pull and push (no Premium), the official git integration (Premium), or a manual ZIP round-trip.
- Translate cryptic LaTeX log output into structured errors with one-line suggestions.
It is the first MCP server that lets a free-tier Overleaf user do pull -> edit -> push from an AI agent in a single turn.
Demo
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.
Table of contents
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"overleaf": {
"command": "overleaf-latex-mcp",
"env": {
"OVERLEAF_PROJECT_ROOT": "/absolute/path/to/project",
"OVERLEAF_PROJECT_NAME": "My Thesis"
}
}
}
}