OverleafMCP MCP Server

MCP server that lets AI assistants read Overleaf projects, parse LaTeX document structure, and push section-level edits back via Git.

Local serverstdio

What is the OverleafMCP MCP Server?

MCP server that lets AI assistants read Overleaf projects, parse LaTeX document structure, and push section-level edits back via Git.

The short version

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.

  • 📄 File Management: List, read, and write files from and to Overleaf projects
  • 📋 Document Structure: Parse LaTeX sections and subsections
  • 🔍 Content Extraction: Extract specific sections by title
  • 📊 Project Summary: Get overview of project status and structure
  • 🏗️ Multi-Project Support: Manage multiple Overleaf projects

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_projects
list_files
read_file
get_sections
get_section_content
status_summary
write_file
write_section

How to install the OverleafMCP MCP Server

{
  "mcpServers": {
    "overleaf": {
      "command": "npx",
      "args": [
        "-y",
        "@mjyoo2/overleaf-mcp"
      ],
      "env": {
        "OVERLEAF_PROJECT_ID": "YOUR_OVERLEAF_PROJECT_ID",
        "OVERLEAF_GIT_TOKEN": "YOUR_OVERLEAF_GIT_TOKEN"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
OVERLEAF_PROJECT_IDDeclared in the maintainer’s client configuration.Optional
OVERLEAF_GIT_TOKENDeclared in the maintainer’s client configuration.Optional

Example prompts to try

  • “Use OverleafMCP to list projects.”
  • “Use OverleafMCP to list files.”
  • “Use OverleafMCP to read file.”

Frequently asked questions

MCP server that lets AI assistants read Overleaf projects, parse LaTeX document structure, and push section-level edits back via Git. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.