overleaf-connect
Provides tools for managing Overleaf projects and files, including creating and duplicating projects, listing/reading/writing/editing .tex files, compiling projects, downloading the resulting PDF, and trashing projects.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@overleaf-connectCompile my latest Overleaf project and download the PDF."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
overleaf-connect
An MCP server to have agents use Overleaf for free.
Once it's connected, an agent can:
create or duplicate projects
list, read, write, and edit
.texfilescompile a project and pull the PDF back locally
Installation
If you dont have uv installed, install it.
It needs your Overleaf session cookie to do anything, so grab that first:
Sign in at overleaf.com.
Open DevTools -> Network, reload the project list, click any
overleaf.comrequest, and copy the fullCookierequest header.
Copy over this for the OVERLEAF_SESSION environment variable in the MCP server.
Claude Code
claude mcp add overleaf -e OVERLEAF_SESSION="overleaf_session2=s%3A...; GCLB=..." -- uvx overleaf-connectClaude Desktop
Open Settings -> Developer -> Edit Config and add an overleaf entry under mcpServers (keep any servers you already have):
{
"mcpServers": {
"overleaf": {
"command": "uvx",
"args": ["overleaf-connect"],
"env": {
"OVERLEAF_SESSION": "overleaf_session2=s%3A...; GCLB=..."
}
}
}
}Afterwards, restart Claude Desktop to reload the MCP servers and get Overleaf connected.
Related MCP server: Unofficial Overleaf MCP Server
Authentication
Overleaf issues a fresh cookie on every request. After the first success the server saves the rotating value to:
Windows:
%LOCALAPPDATA%\overleaf-connect\session.jsonmacOS / Linux:
~/.overleaf-connect/session.json
The OVERLEAF_SESSION environment variable is treated as a seed - the server will automatically refresh the session whenever requests are done to Overleaf, and store it. You only need to change it in the future if the cookie has expired from not using it.
Optional environment variables
OVERLEAF_HOME_DIR=... # directory that holds session.json
OVERLEAF_SESSION_FILE=... # exact session.json path
OVERLEAF_CACHE_DIR=... # compiled-PDF cache
OVERLEAF_OUTPUT_DIR=... # allowed download_pdf destination root
# (default: ~/Downloads/overleaf-connect, or
# ~/Documents/overleaf-connect, else ~/overleaf-connect)Tools
Tool | What it does |
| check if session cookie works |
| id, name, last updated |
| blank project |
| clone an existing project |
| paths in a project |
| text contents of a file ( |
| whole-file create/replace |
| exact old/new string replace in a file |
| Overleaf compile -> cached |
| compile and copy the PDF under |
| move a project to Overleaf trash |
Writes replace the whole file, so write_file refuses to write back a file that
was only read in part - read it again with full=true, or use edit_file.
Don't edit a file while someone is typing in it in the browser.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 Connectors
Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
Overleaf alternative online LaTeX editor. AI agents edit, comment, and chat. Keep or revert edits.
Persistent AI LaTeX workspace: edit and compile multi-file projects, export publication-ready PDFs.
- PriorifyOAuthapp.priorify
Agent-complete, permission-scoped product operations for Priorify workspaces.
Related MCP Servers
- 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.9814MIT
- FlicenseBqualityCmaintenanceEnables AI agents to interact with Overleaf projects directly, including creating projects, managing files, and editing documents in real-time using Overleaf's native Operational Transformation protocol.10-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read, edit, and compile LaTeX documents in Overleaf projects with tracked changes via the Model Context Protocol.1MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to read, edit, and compile LaTeX projects on Overleaf using session cookie authentication, bypassing the need for a paid plan.8MIT
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/flafkus/overleaf-connect'
If you have feedback or need assistance with the MCP directory API, please join our Discord server