# OverleafMCP (MCP server)

> OverleafMCP is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Model Context Protocol (MCP) server that lets AI assistants read Overleaf projects, parse LaTeX document structure, and push section-level edits… It has 293 GitHub stars, is released under the MIT license and runs locally with npx -y @mjyoo2/overleaf-mcp.

An MCP (Model Context Protocol) server that provides access to Overleaf projects via Git integration. This allows Claude and other MCP clients to read LaTeX files, analyze document structure, extract content, and write files from and to Overleaf projects.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/mjyoo2/OverleafMCP |
| GitHub stars | 293 |
| License | MIT |
| Language | JavaScript |
| Transport | stdio |
| Packages | npm: @mjyoo2/overleaf-mcp |
| Remote URL | none |
| Needs API key | yes |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Developer tools |
| Latest release | 1.0.0 (May 3, 2026) |
| Last commit | May 3, 2026 |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "overleafmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mjyoo2/overleaf-mcp"
      ],
      "env": {
        "OVERLEAF_GIT_TOKEN": "your-value"
      }
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env OVERLEAF_GIT_TOKEN=your-value --transport stdio overleafmcp -- npx -y @mjyoo2/overleaf-mcp
```

### Cursor (.cursor/mcp.json)

```json
{
  "mcpServers": {
    "overleafmcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mjyoo2/overleaf-mcp"
      ],
      "env": {
        "OVERLEAF_GIT_TOKEN": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "overleaf_git_token",
      "description": "OVERLEAF_GIT_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "overleafmcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mjyoo2/overleaf-mcp"
      ],
      "env": {
        "OVERLEAF_GIT_TOKEN": "${input:overleaf_git_token}"
      }
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `OVERLEAF_PROJECT_ID`: Shown in the README's example configuration.
- `OVERLEAF_GIT_TOKEN` (secret): Shown in the README's example configuration.

## Tools

- `list_projects`: List all configured projects.
- `list_files`: List files in a project (default: .tex files).
- `extension`: File extension filter (optional)
- `read_file`: Read a specific file from the project.
- `get_sections`: Get all sections from a LaTeX file.
- `get_section_content`: Get content of a specific section.
- `status_summary`: Get a comprehensive project status summary.
- `write_file`: Write the full content of a file to the project.
- `content`: Content to write to the file (required)
- `write_section`: Write the content of a specific section to the project.

## Similar MCP servers

- [Gemini CLI](https://appsgit.com/mcp-servers/gemini-cli): An open-source AI agent that brings the power of Gemini directly into your terminal. (107,240 stars, Apache-2.0)
- [Front-End Checklist](https://appsgit.com/mcp-servers/front-end-checklist): Review frontend code and live pages against 386 quality-gated web development rules. (74,390 stars, MIT)
- [Claude Flow](https://appsgit.com/mcp-servers/claude-flow): AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev. (74,016 stars, MIT, needs API key)
- [Codebase Memory](https://appsgit.com/mcp-servers/codebase-memory): Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens. (45,917 stars, MIT)
- [Bytedance Filesystem](https://appsgit.com/mcp-servers/bytedance-filesystem): MCP server for filesystem access. (39,206 stars, Apache-2.0)
- [GitHub](https://appsgit.com/mcp-servers/github): Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language. (33,414 stars, MIT, official, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/overleafmcp
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
