overleaf-paper-mcp
overleaf-paper-mcp
用于在 Overleaf 中管理学术 LaTeX 项目的 MCP 服务器:创建项目、传输文件、编译文档、查看编译器输出以及下载 PDF。
安装
要求:Node.js 20+ 和 Playwright Chromium。
npm install
npx playwright install chromium
npm run build使用以下命令运行已发布的包:
OVERLEAF_EMAIL="your@email.com" \
OVERLEAF_PASSWORD="yourpassword" \
npx -y @youzhijc/overleaf-paper-mcpRelated MCP server: overleaf-mcp
配置
将凭据作为运行时环境变量提供;不要提交 .env 文件。
变量 | 用途 |
| Overleaf 登录邮箱。 |
| Overleaf 登录密码。 |
| 建议作为所有 MCP 管理的本地资源的绝对根目录。下载内容保存在 |
| 仅用于工作区的旧版替代方案。新配置请使用 |
尽可能为 local_path 和 zip_path 使用绝对路径。相对路径仅在 OVERLEAF_DATA_DIR/workspace(或旧版 OVERLEAF_WORKSPACE_DIR)内被接受。使用 OVERLEAF_DATA_DIR 时,所有本地状态都保存在一个目录之下:
OVERLEAF_DATA_DIR/
├── workspace/ # downloaded project files and PDFs
└── browser-data/ # Overleaf login session and browser cache不要上传或分享 browser-data/:它可能包含你的 Overleaf 登录会话。删除 workspace/ 以清除下载内容,删除 browser-data/ 以退出登录,或删除整个数据目录以重置 MCP。
工作流
overleaf_list_files (optional)
→ overleaf_download_file
→ edit the local file
→ overleaf_upload_file (overwrite: true when replacing a file)
→ overleaf_compile
→ overleaf_download_pdf在出现可见的编译失败时,overleaf_compile 会清除缓存文件,重试一次;如果重试也失败,则返回解析后的诊断信息和编译器日志。
overleaf_upload_file 目前写入项目根目录。要导入完整的项目压缩包,请使用 overleaf_create_project_from_zip。
工具
工具 | 用途 |
| 检查服务器可用性。 |
| 启动或关闭浏览器会话。 |
| 查找或打开项目。 |
| 创建空项目。 |
| 从本地 ZIP 压缩包创建项目。 |
| 列出项目文件和路径。 |
| 传输单个项目文件。 |
| 创建根级别的空项。 |
| 重命名或删除文件。 |
| 编译,并在重试失败后返回 LaTeX 诊断信息和 output.log。 |
| 下载编译后的 PDF。 |
Codex 配置
[mcp_servers.overleaf-paper-mcp]
command = "npx"
args = ["-y", "@youzhijc/overleaf-paper-mcp"]
env = {
OVERLEAF_EMAIL = "your@email.com",
OVERLEAF_PASSWORD = "yourpassword",
OVERLEAF_DATA_DIR = "/absolute/path/to/your/overleaf-paper-mcp-data"
}
startup_timeout_sec = 120
tool_timeout_sec = 120许可证
MIT
This server cannot be installed
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
- AlicenseAqualityDmaintenanceIntegrates with Overleaf's Git feature to manage LaTeX projects directly from MCP-enabled environments, enabling cloning, syncing, and pushing changes between local machine and Overleaf.517MIT
- AlicenseAqualityDmaintenanceAn MCP server for Overleaf that allows Claude or other agents to navigate projects, read and edit .tex files, compile, and interact with review-panel comments via Overleaf's real-time Socket.IO API, with seamless support for tracked changes as pending suggestions.17312AGPL 3.0
- Alicense-qualityCmaintenanceA 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.212AGPL 3.0
- Alicense-qualityBmaintenanceMCP server for agentic-first PDF review of LaTeX papers, enabling commenting, compiling, and visual inspection via Claude Code.4MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Academic research MCP server for paper search, citation checks, graphs, and deep research.
An MCP server for deep research or task groups
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/jcswhldbb/overleaf-paper-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server