Overleaf MCP logo

Overleaf MCP

by @mjyoo2

Reads, analyzes, and updates Overleaf LaTeX projects through Git-backed MCP tools.

Install Overleaf MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mjyoo2-overleaf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mjyoo2/overleaf-mcp"
      ],
      "env": {
        "OVERLEAF_PROJECT_ID": "YOUR_VALUE_HERE",
        "OVERLEAF_GIT_TOKEN": "YOUR_VALUE_HERE",
        "OVERLEAF_GIT_TOKEN_FILE": "YOUR_VALUE_HERE",
        "OVERLEAF_PROJECT_NAME": "YOUR_VALUE_HERE",
        "OVERLEAF_PROJECTS_CONFIG": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 8 tools correctly (17d ago).

Overview

@mjyoo2/overleaf-mcp MCP server connects MCP clients to Overleaf projects through Overleaf's Git integration. It lists and reads project files, parses LaTeX sections, extracts section content, reports project status, and writes complete files or individual sections back with commit messages. Configure one project with environment variables or multiple projects with a projects.json file. Reach for it when an AI assistant needs to inspect or edit LaTeX source stored in Overleaf.

Use cases

  • Read LaTeX files from an Overleaf project
  • Extract a named section for review
  • Summarize project files and document structure
  • Update a full file with a committed change
  • Replace one LaTeX section through Git

Key features

  • Overleaf Git project access
  • LaTeX section and subsection parsing
  • Section content extraction
  • Full-file and section-level writes
  • Single- and multi-project configuration
  • Project status summaries

Tools8

What Overleaf MCP lets your agent do. Expand a tool for its parameters.

Verified live~630 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

10/10 checks healthy over the last 20d

What it can do

From the 8 tools this server returned when we ran it.

Writes files · 2Read-only tools · 6
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age173 days
Maintainers1

Observed 2026-10-24 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @mjyoo2/overleaf-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars348Stargazers on the source repository.
npm downloads619Package downloads in the last 30 days.
Last commit6mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed8Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Overleaf MCP works

What @mjyoo2/overleaf-mcp does

The @mjyoo2/overleaf-mcp MCP server gives an MCP client access to Overleaf project files through Git. It is designed for LaTeX-oriented workflows where an assistant needs to inspect source, understand document organization, or apply edits without manually copying files between systems.

Supported operations include listing configured projects, listing files, reading a file, retrieving a LaTeX file's sections, and extracting the content of a named section. A status summary provides an overview of a project's status and structure. Write operations can replace an entire file or update a specific section, and both require a commit message.

How it works

The server runs as a stdio MCP process. It uses an Overleaf project ID and Git token to access the project through Overleaf's Git integration. MCP clients send tool calls over the process connection, while the server performs the corresponding project read or write operation.

A single-project setup uses environment variables. For multiple projects, a projects.json file maps identifiers such as default, thesis, or paper2 to display names, project IDs, and Git tokens. Tool calls can include projectName to select a configured project; when that argument is omitted, the default project is used.

The available tools are:

  • list_projects to show configured projects.
  • list_files to list files, with an optional extension filter.
  • read_file to retrieve a file.
  • get_sections to parse sections from a LaTeX file.
  • get_section_content to extract a section by title.
  • status_summary to inspect project status and structure.
  • write_file to replace a file's full contents.
  • write_section to replace a named section, including its heading.

Setup and configuration

The recommended package-based setup runs the server with npx -y @mjyoo2/overleaf-mcp. Claude Desktop configuration uses the mcpServers object and passes credentials in its env block. On Windows, the documented command wraps npx with cmd /c; macOS and Linux invoke npx directly.

For one project, set OVERLEAF_PROJECT_ID and OVERLEAF_GIT_TOKEN. OVERLEAF_PROJECT_NAME can provide a display name. Instead of placing the Git token directly in the client configuration, set OVERLEAF_GIT_TOKEN_FILE to a token file; the token is read once at startup and trailing whitespace is removed.

For several projects, create projects.json in the documented user configuration directory, or set OVERLEAF_PROJECTS_CONFIG to an absolute path. Each entry contains name, projectId, and gitToken. Configuration sources are checked in priority order, with environment variables taking precedence over files.

Overleaf's project ID comes from the project URL. A Git token is created under Overleaf Account Settings, in Git Integration. The repository also documents running a cloned script directly, testing a packed npm artifact, and smoke-testing the stdio protocol from a shell.

Limitations and notes

The @mjyoo2/overleaf-mcp MCP server operates on project files through Git, so valid Overleaf Git credentials are required. The environment-variable quick start handles one project; multi-project use requires the projects.json format. list_files defaults to .tex files unless an extension filter is supplied.

write_file replaces the full file, while write_section replaces the selected section and expects replacement content that includes the section heading. Both write tools require an explicit commit message. The provided setup instructions describe Claude Desktop configuration and do not specify behavior for other MCP clients.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Overleaf MCP

@mjyoo2/overleaf-mcp is an MCP server that connects AI assistants to Overleaf projects through Git integration. Its main tools list and read files, parse LaTeX sections, extract section content, summarize project status, and write complete files or individual sections with commit messages.

Run it through `npx -y @mjyoo2/overleaf-mcp` in the MCP client configuration. Add the command under the client's `mcpServers` settings and provide the Overleaf project ID and Git token as environment variables. The documented quick-start configuration targets Claude Desktop.

Create a projects.json file containing named project entries with `name`, `projectId`, and `gitToken` fields. Place it in the documented user configuration directory or set `OVERLEAF_PROJECTS_CONFIG` to its absolute path, then pass `projectName` in tool calls to select a project.

Yes, use `write_section` with the file path, section title, replacement content, and commit message. The replacement content must include the section heading. Use `write_file` instead when the intended change replaces the complete file.

The server communicates over stdio, so a client would need to support configuring a stdio MCP process and supplying its required credentials.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOverleaf MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mjyoo2-overleaf-mcp?style=directory)](https://allmcps.com/mcp/mjyoo2-overleaf-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/mjyoo2-overleaf-mcp"><img src="https://allmcps.com/api/badge/mjyoo2-overleaf-mcp?style=directory" alt="Overleaf MCP on AllMCPs" /></a>