Skip to content
appsgit

OverleafMCP

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.

github.com/mjyoo2/OverleafMCP (opens in a new tab)

Install OverleafMCP

Generated from the server's published package. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.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

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

Cursor

.cursor/mcp.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
{
  "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 Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
OVERLEAF_PROJECT_IDNoShown in the README's example configuration.
OVERLEAF_GIT_TOKENsecretNoShown in the README's example configuration.

Tools (10)

Parsed from the Tools section of the README; check the repository for the current list.

  • 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.

About OverleafMCP

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.

  • ai-tools
  • chatgpt
  • claude
  • latex
  • mcp
  • mcp-server
  • overleaf

FAQ

OverleafMCP FAQ

Still curious? Email info@appsgit.com.

What is OverleafMCP?

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. The source code is at github.com/mjyoo2/OverleafMCP.

How do I install the OverleafMCP MCP server?

Add the command npx -y @mjyoo2/overleaf-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is OverleafMCP free?

The server is open source under the MIT license, so running it is free. It needs credentials (OVERLEAF_GIT_TOKEN) for the service it connects to, which may require a paid account.

Is OverleafMCP actively maintained?

The most recent commit was on May 3, 2026. The latest release is 1.0.0, published May 3, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.