Olcli logo

Olcli

by @aloth

Connects AI agents to Overleaf for project files, LaTeX compilation, reviews, and guarded writes.

Install Olcli

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "aloth-olcli": {
      "command": "npx",
      "args": [
        "-y",
        "--package",
        "@aloth/olcli",
        "olcli-mcp"
      ],
      "env": {
        "OVERLEAF_SESSION": "YOUR_VALUE_HERE",
        "OVERLEAF_BASE_URL": "YOUR_VALUE_HERE",
        "OVERLEAF_COOKIE_NAME": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env OVERLEAF_SESSION=YOUR_VALUE_HERE --env OVERLEAF_BASE_URL=YOUR_VALUE_HERE --env OVERLEAF_COOKIE_NAME=YOUR_VALUE_HERE --transport stdio aloth-olcli -- npx -y --package @aloth/olcli olcli-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 22 tools correctly ().

Overview

@aloth/olcli exposes Overleaf projects to AI agents through the `olcli-mcp` command, using the session managed by the olcli CLI. Agents can inspect and modify project files, compile documents, download outputs, manage comments, and work with tracked changes where Overleaf supports them. Write operations require confirmation in the client before they are applied. Reach for it when an agent needs to work with Overleaf projects while collaborators continue editing in the web interface.

Use cases

  • Review Overleaf project files with an AI agent
  • Compile LaTeX documents and retrieve PDFs
  • Draft and manage Overleaf review comments
  • Compare edits before pushing them to Overleaf
  • Accept or reject tracked changes in supported projects

Key features

  • Overleaf project and file access
  • Remote LaTeX compilation and output downloads
  • Review comment and tracked-change workflows
  • Confirmation before project writes
  • Support for self-hosted Overleaf instances
  • MCP configuration through npx

Tools22

What Olcli lets your agent do. Expand a tool for its parameters.

Verified live~4.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

What it can do

From the 22 tools this server returned when we ran it; 22 declare their own safety hints.

Runs commands · 1Can delete or modify data · 9Makes changes · 14Makes network requests · 22Read-only tools · 7
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceSigned build
Package age302 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · @aloth/olcli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars281Stargazers on the source repository.
npm downloads9.3kPackage downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed22Callable tools this server registers over MCP.

How Olcli works

What @aloth/olcli does

@aloth/olcli connects MCP-compatible AI clients to Overleaf projects through the olcli-mcp entry point. It gives agents access to project contents and common document workflows without requiring Overleaf's paid Git integration. The same package also includes a command-line client, but the MCP server is intended for agent-driven access to Overleaf.

Agents can inspect projects, read and manipulate files, compile LaTeX remotely, retrieve PDFs and other build outputs, and work with review discussions. Project operations include creating and renaming projects. Review workflows cover listing, adding, replying to, resolving, reopening, and deleting comment threads. Tracked-change operations are available for projects where the Overleaf account and project support that feature.

How it works

Install the npm package or invoke it directly with npx, then configure the MCP client to run olcli-mcp. The server uses credentials saved by olcli auth, or an OVERLEAF_SESSION environment variable. It can target overleaf.com or a self-hosted Overleaf instance through environment configuration.

The server is designed to keep agents from changing a project silently. Operations such as pushing files, deleting or renaming content, changing comments, accepting or rejecting tracked changes, and creating projects present the proposed action for confirmation before writing. Project content is treated as data rather than instructions when it is exposed to an agent.

Setup and configuration

Install the package with npm, or use the package through npx in an MCP configuration. For Claude Code and Cursor, configure the server as a command with npx -y --package @aloth/olcli olcli-mcp. Codex uses the equivalent command and arguments in its TOML MCP configuration.

Authenticate first with olcli auth --browser or olcli auth --cookie. Browser authentication uses a temporary browser profile and retains the Overleaf session cookie; cookie authentication is suitable for machines without a display. On self-hosted instances, set the base URL and cookie name as needed. The browser authentication flow requires Node.js 22 or newer, while the package installation instructions specify Node.js 20.18.1 or newer for npm use.

Tools and capabilities

The MCP server supports workflows including:

  • Listing projects and inspecting project files.
  • Reading, uploading, downloading, deleting, renaming, and moving files.
  • Comparing local or requested content with the live project and producing marked-up LaTeX revisions.
  • Compiling a project on Overleaf and retrieving PDFs or other compilation outputs.
  • Creating and renaming projects, including bulk rename operations.
  • Listing and managing review comments and tracked-change suggestions.

Compilation happens on Overleaf, so local TeX installation is not required for ordinary remote builds. Marked-up revisions additionally rely on latexdiff being available on the local path.

Limitations and notes

Tracked changes depend on Overleaf premium project support; invited collaborators can use the feature when the project owner has the required plan. Password-based authentication is not available for overleaf.com because its captcha cannot be completed by olcli; use browser or session-cookie authentication there. Self-hosted instances without reCAPTCHA can use email and password authentication.

The server relies on an authenticated Overleaf session and the target instance's available features. Confirmation behavior depends on the MCP client; clients without confirmation support are covered by the project's MCP guidance and should be evaluated carefully before enabling write operations.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Olcli

@aloth/olcli is an MCP server that connects AI agents to Overleaf projects through the olcli-mcp command. Its main tools handle project and file access, LaTeX compilation, PDF and output downloads, review comments, tracked changes, and project management, with confirmation required before supported write operations.

Install it with npm or run it through npx in your MCP client configuration. Use `npx -y --package @aloth/olcli olcli-mcp` as the server command and arguments, then authenticate with `olcli auth --browser` or `olcli auth --cookie`.

Yes, @aloth/olcli works with Cursor through its MCP configuration. Add an `overleaf` server entry that runs `npx` with `-y`, `--package`, `@aloth/olcli`, and `olcli-mcp`, then authenticate the olcli session.

It authenticates with an Overleaf session saved by `olcli auth` or supplied through `OVERLEAF_SESSION`. Browser login supports SSO, Google, ORCID, and two-factor authentication; cookie login is available for headless systems. Self-hosted instances can also use email and password without reCAPTCHA.

Yes, it can compile a project on Overleaf and download the resulting PDF or other compilation outputs. It can also compile a selected root document, and its marked-up revision workflow uses `latexdiff` locally before compiling the result on Overleaf.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOlcli AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/aloth-olcli?style=directory)](https://allmcps.com/mcp/aloth-olcli)
HTML Embed
<a href="https://allmcps.com/mcp/aloth-olcli"><img src="https://allmcps.com/api/badge/aloth-olcli?style=directory" alt="Olcli on AllMCPs" /></a>