← Back to directory
O

olcli

Community
Manage Overleaf projects from an MCP client.
Category
Dev Tools #61 of 751
Stars
★ 289 Very popular
Transport
stdio (local process)
Runtime
Node.js 22+
Credentials
API key / credential required
License
MIT
Last commit
61FMRS · C

Suitable for LaTeX users working with Overleaf projects through an AI client. The source lists file operations, compilation, PDFs, diffs, comments, and tracked changes; writes require confirmation. A valid Overleaf session cookie is required.

Strongest · Documentation 14/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
14/20
Maintenance
10/20
Documentation
14/20
Setup experience
13/20
Why each score
Reliability 10/20
The README and manifest describe stdio startup, the required session credential, and the MCP feature scope; the basic path appears plausible, and writes are said to require confirmation. The static material provides no verifiable MCP handshake, tool-list, error-handling, or key server-path test evidence, so the static-calibration cap is 12 and agreement between declared and actual behavior remains unverified.
Security and permissions 14/20
The material explains the purpose and requirement of the Overleaf session cookie, says project writes require user confirmation, and says project content is treated as data rather than instructions. The cookie grants access to Overleaf projects, the server handles file, comment, and revision operations, and it connects to an external Overleaf instance; the material does not show the implementation of authorization scope, data flows, or a security response process. No provided evidence supports a red-line finding.
Maintenance 10/20
The repository has an MIT license, clear project attribution, and GitHub and npm release paths, which provide some basis for ownership and updates. The supplied material gives no recent commit or release history, dependency-update evidence, security-response channel, or issue-response record; stars and open issue count do not affect the score.
Documentation 14/20
The README provides installation and client configuration examples, authentication guidance, feature examples, and some stated limitations, with links to MCP, configuration, and architecture documentation. The linked documents' contents are not included here, and the material does not show per-tool parameters, comprehensive troubleshooting, data-flow details, or cost information, so completeness cannot be verified.
Setup experience 13/20
The material gives an npx configuration example and lists setup options for Claude Code, Cursor, and Codex; the manifest declares stdio transport and identifies the required session variable. Setup depends on a Node.js runtime and a valid Overleaf session, and there is no verifiable client-connection execution evidence in the supplied material; the score stays within the static-calibration cap of 15.

Static review · not runReviewed 2026-12-01

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkChanges third-party account data

Best for

  • People writing LaTeX papers or research documents in Overleaf
  • People who want an AI client to inspect or help work with Overleaf projects

Not for

  • People who do not use Overleaf or LaTeX projects
  • People who need project access without Overleaf session credentials

Required permissions

  • Requires an Overleaf session cookie; self-hosted instances can configure the base URL and cookie name.
  • Write operations preview the proposed change and require user confirmation in the client.

Risks and side effects

  • The session cookie is an access credential and should be protected.
  • File, comment, or tracked-change operations can affect a shared project; write confirmation depends on client support.

Setup

Before you start

Runtime:Node.js 22+

OVERLEAF_SESSION requiredsecret Required Overleaf session cookie; after signing in, copy the overleaf_session2 value from your browser's developer tools (self-hosted instances often use overleaf.sid).
Other optional settings (2)
OVERLEAF_BASE_URL optional Base URL for a self-hosted Overleaf instance; get it from the instance administrator. Defaults to https://www.overleaf.com.
OVERLEAF_COOKIE_NAME optional Session cookie name for a self-hosted instance; confirm it with the instance administrator. Defaults to overleaf_session2.

Add the supplied npx configuration to your client's MCP settings and set the required OVERLEAF_SESSION (Overleaf session cookie). For self-hosted instances, OVERLEAF_BASE_URL and OVERLEAF_COOKIE_NAME are optional settings.

.mcp.json
{"mcpServers":{"overleaf":{"command":"npx","args":["-y","--package","@aloth/olcli","olcli-mcp"]}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "overleaf": {
      "command": "npx",
      "args": [
        "-y",
        "--package",
        "@aloth/olcli",
        "olcli-mcp"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.overleaf]
command = "npx"
args = ["-y", "--package", "@aloth/olcli", "olcli-mcp"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add overleaf -- npx -y --package @aloth/olcli olcli-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm that olcli tools appear in your client's MCP tool list. Then ask it to list your Overleaf projects; a successful project list confirms the connection and authentication.

Troubleshooting

  1. Check that OVERLEAF_SESSION is valid; refresh the session cookie if it has expired.
  2. For self-hosted instances, check OVERLEAF_BASE_URL and OVERLEAF_COOKIE_NAME.
  3. Check the client's MCP configuration for the npx command and arguments.
  4. If a write did not run, confirm that the client supports and completed the confirmation step.

Things to try

Once connected, you can ask your AI assistant things like:

  • List my Overleaf projects.
  • Compile my Overleaf project and download the PDF.
  • Show the comments in my project and reply to one.

Use cases

Browse and manage Overleaf project files
Compile a project and retrieve its PDF
Review project diffs, comments, and tracked changes
Write project changes after confirmation

Supported clients

Claude Code
Cursor
Codex

Listed from the project's documentation, not tested by this site.

Overview

olcli gives AI clients access to Overleaf projects for files, compilation and PDFs, diffs, comments, and tracked changes. The server uses stdio transport.

Similar servers

Source revision 5f7065357052 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/olcli.svg)](https://followmcp.com/en/servers/olcli)