overleaf-mcp

overleaf-mcp

Enables Claude to read and edit Overleaf projects via the git bridge, with compile-gated writes to ensure safety.

Category
Visit Server

README

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)

Setup

  1. Clone this repo.

  2. Create ~/.overleaf-mcp/projects.json. An example is in projects.json.example.

    { "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 your Claude Desktop.

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 whole file
write_section create or overwrite one section, using the exact title
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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured