Overleaf MCP Server
Provides tools for interacting with Overleaf projects, including project and file listing, bounded text reads, LaTeX section discovery, and revision-guarded writes with read-back verification.
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 MCP ServerList my projects and show the sections in main.tex"
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.
olgitbridge + Overleaf MCP
This repository preserves the original Overleaf Git HTTP bridge and adds the MCP service used by the current deployment. The bridge talks to an Overleaf Community Edition or Pro instance through its web API, so it can run on a separate host.
The deployed code baseline is tagged deployed-20260801T090535Z. Site
configuration, credentials, bearer tokens, project IDs, synchronized papers,
runtime Git repositories, and auth-proxy state stay outside Git.
Capabilities
Existing Git clone, pull, and push bridge on the configured Git HTTP port.
Streamable HTTP MCP endpoint on loopback, with bearer authentication and Host/Origin checks.
Server-side project allowlist addressed by stable
projectNamealiases.Project and file listing, bounded text reads, LaTeX section discovery, and status summaries.
Revision-guarded file and section writes with Overleaf read-back verification.
Per-project serialization, timeout propagation, atomic tree replacement, interrupted-sync recovery, path confinement, and credential permission checks.
The MCP backend deliberately accepts only allowlisted project aliases. Raw Overleaf project IDs and Overleaf account credentials never come from MCP callers.
Related MCP server: Overleaf MCP
Repository layout
src/core/ Safe project, sync, credential, and Git services
src/transports/mcp-http.js Streamable HTTP MCP transport and tool schemas
src/olops/ Overleaf web operations
config/ Checked-in, non-secret configuration examples
test/ Unit and integration tests
docs/olgitbridge-mcp/ Design, implementation, and deployment notes
deploy/ Sanitized templates matching the deployed layoutDevelopment
Production is currently exercised with Node.js 22 and npm 10.
npm ci
npm test
npm run checkThe traditional Git bridge still reads config.js. Keep the tracked file
generic and apply the Overleaf URL and absolute persistent data directory only
in a release copy or deployment overlay.
To enable MCP, copy config/mcp-projects.example.json outside the repository,
create the referenced credential and token files with restrictive permissions,
and start the service with:
OLGITBRIDGE_MCP_CONFIG=/absolute/path/mcp-projects.json \
OLGITBRIDGE_CREDENTIAL_DIR=/absolute/path/credentials \
npm startThe MCP listener must remain on a loopback address. See
docs/olgitbridge-mcp/DEPLOYMENT.md and
deploy/README.md before exposing it through a separate
authentication proxy.
Selecting a project
Call list_projects first, then pass the returned key as projectName to
all project-specific tools:
{
"projectName": "example-paper",
"filePath": "main.tex"
}Write tools also require the latest revision as expectedRevision. A stale
revision fails closed with REVISION_CONFLICT.
Git bridge compatibility
The Git HTTP endpoint remains compatible with the original form:
http://bridge.example.invalid/<overleaf-project-id>The bridge performs whole-file synchronization through Overleaf's web API. Online editors may therefore report that a file changed externally after a Git or MCP write.
Upstream and license
This project derives from
axkibe/olgitbridge and retains its
AGPL-3.0-only license. The configured Git remote points at the maintainer's
fork; publishing remains an explicit operation.
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
- Alicense-qualityBmaintenanceAn 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.152AGPL 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.102AGPL 3.0
- Alicense-qualityBmaintenanceAn MCP server that lets Claude read, write, and push Overleaf LaTeX projects from the chat, with token-efficient features like sparse checkout and smart diffs.11MIT
- Alicense-qualityDmaintenanceAn MCP server that provides access to Overleaf projects via Git integration, enabling Claude and other MCP clients to read LaTeX files, analyze document structure, and extract content.91MIT
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
A MCP server built for developers enabling Git based project management with project and personal…
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
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/Zack-Will/overleaf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server