Skip to content
appsgit

olcli

olcli is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Overleaf projects from an MCP client: files, compile and PDF, diff, comments and tracked changes. It has 258 GitHub stars, is released under the MIT license and runs locally with npx -y @aloth/olcli.

github.com/aloth/olcli (opens in a new tab)

Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error

Install olcli

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "olcli": {
      "command": "npx",
      "args": [
        "-y",
        "@aloth/olcli"
      ],
      "env": {
        "OVERLEAF_SESSION": "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_SESSION=your-value --transport stdio olcli -- npx -y @aloth/olcli

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "olcli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@aloth/olcli"
      ],
      "env": {
        "OVERLEAF_SESSION": "your-value"
      }
    }
  }
}

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

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "overleaf_session",
      "description": "OVERLEAF_SESSION",
      "password": true
    }
  ],
  "servers": {
    "olcli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@aloth/olcli"
      ],
      "env": {
        "OVERLEAF_SESSION": "${input:overleaf_session}"
      }
    }
  }
}

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_SESSIONsecretYesOverleaf session cookie value (overleaf_session2 on overleaf.com)
OVERLEAF_BASE_URLNoBase URL of a self-hosted Overleaf instance
OVERLEAF_COOKIE_NAMENoSession cookie name, for self-hosted instances that use overleaf.sid

About olcli

Work on Overleaf projects from your terminal while your coauthors keep using the Overleaf web editor. Pull, push, sync, diff and compile LaTeX projects; read and answer review comments; use Overleaf as a git remote; give AI agents an MCP server that asks you before it writes.

  • academic-writing
  • cli
  • latex
  • nodejs
  • overleaf
  • research-tools
  • typescript
  • developer-tools
  • agentskills
  • arxiv

FAQ

olcli FAQ

Still curious? Email info@appsgit.com.

How do I install the olcli MCP server?

Add the command npx -y @aloth/olcli 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 olcli free?

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

Is olcli actively maintained?

The most recent commit was on Nov 15, 2026. The latest release is v0.17.0, published Nov 15, 2026. appsgit only lists MCP servers with a commit in the last six months.