Skip to main content
Glama

Overleaf MCP Server

by M-H-Amini

Overleaf MCP Server

MCP server that lets compatible clients (e.g., Claude Desktop, Cursor, VS Code) interact with Overleaf projects via tools and resources.

Features

  • List projects and files.

  • Read files.

  • Safe, read-only mode.

Adjust to match your implementation.

Requirements

  • Python 3.10+

  • An Overleaf account (or session cookie)

Configure a client

Claude Desktop

Edit claude_desktop_config.json:

{ "mcpServers": { "overleaf": { "command": "uv", "args": [ "run", "mcp", "run", "/Volumes/Life/Python/Overleaf/overleaf_mcp/__main__.py" ], "env": { "PROJECT_ID": "<YOUR_PROJECT_ID>", "OVERLEAF_TOKEN": "<YOUR_OVERLEAF_TOKEN>" }, "timeout": 120000 } } }

If you have a console script, set "command": "overleaf-mcp" and remove "args".

Cursor (settings.json)

{ "mcpServers": { "overleaf": { "command": "uv", "args": [ "run", "mcp", "run", "/Volumes/Life/Python/Overleaf/overleaf_mcp/__main__.py" ], "env": { "PROJECT_ID": "<YOUR_PROJECT_ID>", "OVERLEAF_TOKEN": "<YOUR_OVERLEAF_TOKEN>" } } } }

VS Code MCP (.vscode/mcp.json)

{ "servers": { "my-mcp-server-overleaf": { "type": "stdio", "command": "uv", "args": [ "run", "mcp", "run", "/Volumes/Life/Python/Overleaf/overleaf_mcp/__main__.py" ], "env": { "PROJECT_ID": "<YOUR_PROJECT_ID>", "OVERLEAF_TOKEN": "<YOUR_OVERLEAF_TOKEN>" } } }, "inputs": [] }

Tools

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables read-only interaction with Overleaf LaTeX projects through compatible clients like Claude Desktop, Cursor, and VS Code. Allows users to list and read project files safely without modification capabilities.

  1. Features
    1. Requirements
      1. Configure a client
        1. Claude Desktop
        2. Cursor (settings.json)
        3. VS Code MCP (.vscode/mcp.json)
      2. Tools

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/M-H-Amini/Overleaf-MCP-Server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server