原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

olcli

作者:aloth版本 0.15.3i★ –i在你的电脑上运行
注册名称io.github.aloth/olcli

安装

概览

作者提供的说明(英文原文)

Overleaf projects from an MCP client: files, compile and PDF, diff, comments and tracked changes

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公
  • 你需要填写:OVERLEAF_SESSION

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: OVERLEAF_SESSION, OVERLEAF_BASE_URL, OVERLEAF_COOKIE_NAME

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "olcli": {
      "command": "npx",
      "args": [
        "-y",
        "@aloth/olcli",
        "olcli-mcp"
      ],
      "env": {
        "OVERLEAF_SESSION": "your-value",
        "OVERLEAF_BASE_URL": "your-value",
        "OVERLEAF_COOKIE_NAME": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add olcli --env OVERLEAF_SESSION=your-value --env OVERLEAF_BASE_URL=your-value --env OVERLEAF_COOKIE_NAME=your-value -- npx -y @aloth/olcli olcli-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "olcli": {
      "command": "npx",
      "args": [
        "-y",
        "@aloth/olcli",
        "olcli-mcp"
      ],
      "env": {
        "OVERLEAF_SESSION": "your-value",
        "OVERLEAF_BASE_URL": "your-value",
        "OVERLEAF_COOKIE_NAME": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "olcli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@aloth/olcli",
        "olcli-mcp"
      ],
      "env": {
        "OVERLEAF_SESSION": "your-value",
        "OVERLEAF_BASE_URL": "your-value",
        "OVERLEAF_COOKIE_NAME": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • OVERLEAF_SESSION 机密 必填 env
    Overleaf session cookie value (overleaf_session2 on overleaf.com)
  • OVERLEAF_BASE_URL env
    Base URL of a self-hosted Overleaf instance
  • OVERLEAF_COOKIE_NAME env
    Session cookie name, for self-hosted instances that use overleaf.sid

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 aloth 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 2169 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2169 个服务器的 87% 更新
  • 基础检查结果等于或优于此分类中其他 2169 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

olcli 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:OVERLEAF_SESSION

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.15.3)于3天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT5天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT3天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

olcli — Overleaf CLI

Command-line interface for Overleaf — Sync, manage, and compile LaTeX projects from your terminal.

Work with Overleaf projects directly from your command line. Edit locally with your favorite editor, version control with Git, and sync seamlessly with Overleaf's cloud compilation.

Features

  • 📋 List all your Overleaf projects
  • ✨ Create blank or example projects
  • ⬇️ Pull project files to local directory for offline editing
  • ⬆️ Push local changes back to Overleaf
  • 🔄 Sync bidirectionally with smart conflict detection
  • 🔍 Diff local files against the live remote before pushing
  • 📝 Marked-up revisions — diff --latexdiff produces the struck-through/underlined PDF advisors and journals ask for
  • 🔀 Git remote — use Overleaf as a native git remote (docs)
  • ✌️ Two-way deletions — files removed locally are deleted on Overleaf on next sync
  • 🗑️ Delete and ✏️ rename remote files by path
  • 🚫 Smart ignore — LaTeX build artifacts and OS noise filtered automatically; extend with .olignore
  • 📄 Compile PDFs using Overleaf's remote compiler
  • 📦 Download individual files or full project archives
  • 📤 Upload files to projects
  • 💬 Review comments — list, add, resolve, reopen, delete, and reply to threads
  • 🗂️ Preserve folder structure when pushing nested files
  • ⏱️ Configurable timeout for slow connections
  • 🔑 Password login for self-hosted instances (no browser required)
  • ⚙️ Self-hosted Overleaf/ShareLaTeX support
  • 📊 Output compile artifacts (.bbl, .log, .aux for arXiv submissions)
  • 🤖 MCP server for AI assistants (docs)

Perfect for:

  • Editing LaTeX in your preferred text editor (Vim, VS Code, Emacs, etc.)
  • Version control with Git while using Overleaf's compiler
  • Automating workflows and CI/CD pipelines
  • Offline work with periodic sync

Installation

Homebrew (macOS/Linux)
brew tap aloth/tap

brew install olcli

npm (all platforms)
npm install -g @aloth/olcli

Or use with npx without installation:

npx @aloth/olcli list
For AI agents (via AgentSkills)
npx skills add aloth/olcli

Quick Start

1. Authenticate

Session cookie (overleaf.com and self-hosted):

olcli auth --cookie "your_session_cookie_value"

Email/password (self-hosted without reCAPTCHA):

olcli auth --email "you@example.com"

prompts for the password, so it stays out of your shell history

The password is not stored unless you pass --save-password. A session cookie is saved either way and is what later commands use; the password only buys an automatic re-login once that cookie expires. For scripts, set OVERLEAF_EMAIL and OVERLEAF_PASSWORD — every command reads them, so a scripted run never needs olcli auth at all.

2. List Projects
olcli list
3. Pull, Edit, Push
olcli pull "My Thesis"

cd My_Thesis/ vim main.tex olcli push

4. Compile PDF
olcli pdf

Compile a specific .tex file (for multi-doc projects):

olcli pdf -r appendix.tex

5. Or use native git commands
git clone overleaf::https://www.overleaf.com/project/<id>

cd

edit, commit, push — standard git workflow

git push

See Git Remote Helper docs for details.

Commands

All commands auto-detect the project when run from a synced directory (contains .olcli.json).

CommandDescription
olcli authSet session cookie or login with email/password
olcli whoamiCheck authentication status
olcli logoutClear the global config and the local .olauth, reporting each
olcli listList all projects
olcli info [project]Show project details and file list
olcli pull [project] [dir]Download project files to local directory
olcli push [dir]Upload local changes to Overleaf (--delete also removes files deleted locally)
olcli sync [dir]Bidirectional sync (pull + push)
olcli diff [project] [dir]Show content-level changes between local files and the remote
olcli upload [project]Upload a single file (--to sets the remote destination)
olcli download [project]Download a single file
olcli delete [project]Delete a remote file or folder (alias: rm)
olcli rename [project]Rename or move a remote file or folder (alias: mv); with a folder part moves, a trailing / moves and keeps the name
olcli project create Create a blank or example project (`--template blank\example`)
olcli project rename [project]Rename the project itself (--dry-run)
olcli project rename-bulkRename many projects by pattern (dry-run unless --apply)
olcli compile [project]Trigger PDF compilation
olcli pdf [project]Compile and download PDF
olcli output [type]Download compile output files
olcli zip [project]Download project as zip archive
olcli comments list [project]List comments (--status, --context, --concurrency); --changes also lists tracked changes (with --json the output becomes { comments, changes })
olcli changes accept Accept tracked changes by id (--project, --json)
olcli changes reject Reject tracked changes by id; preview only unless --yes (--project, --json)
olcli comments add Add a comment to selected text
olcli comments reply Reply to a comment thread
olcli comments resolve Resolve a comment thread
olcli comments reopen Reopen a resolved thread
olcli comments delete Delete a comment thread
olcli ignored [dir]List ignore patterns in effect
olcli config set-url Set self-hosted base URL
olcli config get-urlShow the configured base URL
olcli config set-cookie-name Set session cookie name
olcli config get-cookie-nameShow the configured session cookie name
olcli config set-timeout Set default HTTP timeout
olcli config get-timeoutShow the configured HTTP timeout
olcli checkShow config paths and credential sources

Tracked changes are an Overleaf premium feature. They are only available in projects whose owner has a premium plan; invited collaborators can then use them regardless of their own plan. In other projects there are no tracked changes, so --changes returns an empty list and changes accept/changes reject report the ids as not found. See the Overleaf documentation for details.

Compile Options

The compile-related commands (compile, pdf, output) accept:

FlagDescription
-r, --resource Compile a specific .tex file as the root document (e.g. appendix.tex, folder/test.tex)

Useful in multi-doc projects: each -r run compiles the file as if it were the main document.

Global Options
FlagDescription
--verbosePrint HTTP requests and responses to stderr
--base-url Override Overleaf instance URL
--cookie-name Override session cookie name
--timeout Override HTTP timeout (default: 10000)

Sync Behavior

Pull
  • Downloads all files from Overleaf
  • Skips local files modified after last pull (won't overwrite your changes)
  • Use --force to overwrite local changes
Push
  • Uploads files modified after last pull
  • Preserves nested folder structure
  • Filters out LaTeX build artifacts and OS noise
  • Use --all to upload all files, --dry-run to preview
Sync
  • Pulls remote changes, then pushes local changes
  • Local modifications win if newer
  • Propagates local deletions — use --no-delete to opt out
  • Use --dry-run to preview without applying
Diff

olcli diff compares the bytes of your local files against the project's current contents and prints a unified diff.

olcli diff                 # every changed file, as patches

olcli diff --name-only # just the changed paths olcli diff --file main.tex # one file olcli diff -U 8 # wider context olcli diff --exit-code # exit 1 if anything differs, for CI

The remote side is fetched fresh on every run. The diff describes the project as it is at that moment — which is what a subsequent push would overwrite — not a comparison against your last pull. .olcli.json records remote *paths*, never remote *contents*, so there is no stored snapshot to compare against; and the whole project arrives in a single request, the same one pull makes, so fetching fresh costs one round trip rather than one per file. A collaborator editing between diff and push can still change the outcome, which is why the fetch time is printed.

In the output, a/ is the remote and b/ is local: a + line is content push would upload, a - line is content it would overwrite. Files that differ only in bytes that are not text (PDFs, images) are reported as Binary files ... differ. Both sides pass through the same ignore layers, so build artifacts sitting on Overleaf are not reported as locally deleted.

diff --name-only and push --dry-run answer different questions and will disagree. push --dry-run lists files whose modification time is newer than the last pull, because that is what push uploads; diff lists files whose contents actually differ. A file you touched without editing appears in the first and not the second.

Marked-up revisions with latexdiff

A unified diff is the right artifact for a developer and the wrong one for a thesis advisor. --latexdiff marks the same revision up inside the document instead — deletions struck through, additions underlined — which is what advisors and journals ask for.

olcli diff --latexdiff          # write .olcli-diff/main-diff.tex

olcli diff --latexdiff --pdf # ...and compile it, download .olcli-diff/main-diff.pdf

Requires latexdiff on your PATH. It ships with TeX Live and MacTeX; nothing else in olcli diff needs an external tool.

`--pdf` compiles on Overleaf, so you do not need a local TeX installation. The compile endpoint can only build a file that is in the project, so the marked-up document is uploaded as olcli-latexdiff.tex next to your root document, compiled, downloaded, and then removed. The command says so before it does it, refuses to overwrite a file of that name if one already exists, and prints the exact olcli rm command if the cleanup itself fails.

\input and \include are inlined before comparing (--no-flatten to opt out). Without that, a remote compile would resolve those against the files sitting in the project — the old content — and quietly produce a PDF showing every input file as unchanged.

Output goes to .olcli-diff/, which is dotted so that push and sync never pick it up; -o puts it elsewhere. The root document is the .tex file d

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx