Back to Apps

Overleaf CLI
by aloth
Sync, manage, and compile Overleaf LaTeX projects from your terminal or AI agent.
0 stars
Works in:CursorWindsurf
Exposes:ToolsResources
What it does
Connects AI assistants and terminal users to Overleaf, allowing for bidirectional synchronization of LaTeX projects. It enables local editing in preferred text editors (like Vim or VS Code) while leveraging Overleaf's cloud compilation and collaboration features.
Tools
list_projects: List all available Overleaf projects.get_project_info: Retrieve the file tree and metadata for a specific project.pull_project: Download and extract project files to a local directory.push_file: Upload a local file back to an Overleaf project.compile: Trigger a remote compilation and get the PDF URL.download_pdf: Compile the project and save the resulting PDF locally.list_comments: Retrieve review comments with filtering options.add_comment: Insert a review comment into a document.resolve_comment: Mark a comment thread as resolved.delete_entity: Remove a file or folder by its path.rename_entity: Rename a file or folder in the project.compile_with_outputs: Compile and download all artifacts (PDF, BBL, logs).
Installation
To use with Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"overleaf": {
"command": "npx",
"args": ["-y", "@aloth/olcli-mcp"],
"env": {
"OVERLEAF_SESSION": "<your-overleaf-session-cookie>"
}
}
}
}
Supported hosts
Claude Desktop, Cursor, Windsurf
Quick install
npm install -g @aloth/olcliInformation
- Pricing
- free
- Published
- 6/27/2026
- stars
- 0
Categories
Choose your AI client and follow the steps below.
Cursor
Add to mcp.json: { "mcpServers": { "overleaf": { "command": "npx", "args": ["-y", "@aloth/olcli-mcp"], "env": { "OVERLEAF_SESSION": "<cookie>" } } } }Windsurf
Add to mcp_config.json: { "mcpServers": { "overleaf": { "command": "npx", "args": ["-y", "@aloth/olcli-mcp"], "env": { "OVERLEAF_SESSION": "<cookie>" } } } }Claude Desktop
Add to config: { "mcpServers": { "overleaf": { "command": "npx", "args": ["-y", "@aloth/olcli-mcp"], "env": { "OVERLEAF_SESSION": "<cookie>" } } } }





