Skip to main content
Glama

Overleaf MCP

Read and edit Overleaf projects from Claude, using the Overleaf git bridge.

WARNING: When your provide the MCP with a project ID, This gives Claude access to the ENTIRE project directory.

Requirements

  • Overleaf premium (check your institution's access!)

  • uv, git, TeX distribution, and pdftocairo (you could brew install poppler on Macs)

Related MCP server: overleaf-mcp

Setup

  1. Clone the repo.

  2. Create ~/.overleaf-mcp/projects.json. An example is in projects.json.example. The project id is the string after /project/ in the Overleaf URL.

    { "default": "paper", "projects": { "paper": "<project-id>" } }
  3. Add the server to your Claude config. You can generate the git token in Overleaf Account Settings.

    {
      "mcpServers": {
        "overleaf": {
          "command": "/absolute/path/to/uv",
          "args": ["run", "--directory", "/absolute/path/to/overleaf-mcp", "overleaf-mcp"],
          "env": { "OVERLEAF_TOKEN": "your_git_token" }
        }
      }
    }
  4. Restart Claude.

How it works

A project is unverified until open_project succeeds, which checks that every \usepackage resolves against your local TeX environment, and baseline-compiles each root.

All writes are refused until open_project passes

A .tex containing \documentclass is a root, while children are included with by \input/\include/\subfile. Editing a child re-compiles the roots that include it. For instance, this covers a standard main.tex + sections/ project, a single-file paper, or even a folder of standalone one-page documents with the same rule. Further, any errors block a push while warnings are only reported.

Tools

tool

description

open_project

pull, verify environment, and baseline-compile

files

list .tex, marking roots

outline

structure with line numbers

read

line-numbered, optionally a range (lines="150-190")

grep

regex search, file:line: match

edit

replace an exact unique snippet, compile-gated

write

create or overwrite a file, compile-gated

add_asset

copy an image or binary

compile

compile the owning root, return a digest

render

one page as an image - very useful for layout/images

Install Server
F
license - not found
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

Related MCP Connectors

  • Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.

  • Read, edit, publish, and preview your pepita websites from Claude.

  • Persistent context for Claude. Your AI always knows your projects and next actions across sessions.

View all MCP Connectors

Latest Blog Posts

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/meaninglessC0de/Overleaf-Claude-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server