1. Conduid
  2. Documentation
  3. Olcli
MCP server · Documentation

Olcli

Overleaf CLI - pull, push, sync, compile LaTeX projects from your terminal. Git remote helper, MCP server for AI agents, and TypeScript library.

85Strong

Scored 19 hours ago · breakdown

About Olcli

Olcli is an MCP server published by aloth in the Documentation category: overleaf CLI - pull, push, sync, compile LaTeX projects from your terminal. Git remote helper, MCP server for AI agents, and TypeScript library. Conduid read 22 tools from its source: accept_tracked_changes, add_comment, compile, compile_with_outputs, create_project, delete_entity and 16 more. It is published to npm as @aloth/olcli and starts with npx.

The repository has 285 stars and 33 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v0.18.1 (18 Nov 2026): olcli 0.18.1 Fixed brew install aloth/tap/olcli installs the commands again (#69) - the formula built from the GitHub source tarball, which has no dist/, and Homebrew re… It follows v0.18.0 (16 Nov 2026), and the 5 most recent releases go back to v0.16.1 (7 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include academic-writing, agentskills, arxiv, cli, devtools and latex.

Install

Claude Code
claude mcp add olcli -- npx -y @aloth/olcli
npx
npx -y @aloth/olcli
From source
git clone https://github.com/aloth/olcli

Tools (22)

accept_tracked_changesAccept tracked changes (suggested edits) by id: the suggested text stays and the suggestion markers are removed. Nothing is sent if any id is unknown. Track changes is an Overleaf premium feature: only projects whose owner has a premium plan have them.${askNote}${CONTENT_NOTE}
ParameterTypeDescription
change_ids *arrayTracked change ids (from list_comments with include_changes)
project_id *stringThe Overleaf project ID
add_commentAdd a review comment to a specific location in an Overleaf project document.${askNote}${CONTENT_NOTE}
ParameterTypeDescription
columnnumberColumn number in the document (0-based, alternative to position)
content *stringThe comment text
doc_path *stringPath of the document within the project (e.g. main.tex)
lengthnumberLength of the highlighted text span (0 for a point comment)
linenumberLine number in the document (1-based, alternative to position)
positionnumberCharacter offset in the document where the comment is anchored
project_id *stringThe Overleaf project ID
selected_textstringThe text being commented on (optional, used for context)
compileCompile an Overleaf project using the remote LaTeX compiler. Returns the PDF URL and any log messages.
ParameterTypeDescription
project_id *stringThe Overleaf project ID
resource_pathstringPath of a .tex file in the project to compile as the root document. E.g. "paper.tex", "folder/test.tex"
compile_with_outputsCompile an Overleaf project and return all output file metadata (PDF, BBL, logs, etc.). Useful for arXiv submission workflows.
ParameterTypeDescription
project_id *stringThe Overleaf project ID
resource_pathstringPath of a .tex file in the project to compile as the root document. E.g. "paper.tex", "folder/test.tex"
create_projectCreate a new Overleaf project and return its id, name and URL. Unlike plan_project_renames, this one does apply: creating is additive, nothing existing is overwritten, and an unwanted project can be deleted afterwards.${askNote}
ParameterTypeDescription
name *stringProject name
templatestringProject template: an empty project, or Overleaf's example document
delete_entityDelete a file or document from an Overleaf project by its remote path.${askNote}
ParameterTypeDescription
project_id *stringThe Overleaf project ID
remote_path *stringPath of the file/document to delete within the project
diff_projectCompare local files against the current remote state of an Overleaf project and return the content-level differences. Read-only: nothing is uploaded or written. This is the MCP counterpart of `olcli diff`.${CONTENT_NOTE}
ParameterTypeDescription
contextnumberLines of context around each hunk (default: 3)
filestringRestrict the comparison to a single path, as it appears in the project
local_dir *stringLocal directory to compare against the remote project
name_onlybooleanOmit the patch text and return only paths and statuses (default: false)
no_default_ignorebooleanDisable the built-in LaTeX artifact ignore list; only .olignore applies
no_ignorebooleanDisable all ignore filtering on both sides
project_id *stringThe Overleaf project ID
download_fileDownload a single file from an Overleaf project by its path within the project.${CONTENT_NOTE}
ParameterTypeDescription
output_pathstringLocal path to save the file (default: basename of remote_path in cwd)
project_id *stringThe Overleaf project ID
remote_path *stringPath of the file within the project (e.g. main.tex or figures/fig1.pdf)
download_pdfCompile an Overleaf project and download the resulting PDF to a local file.
ParameterTypeDescription
output_path *stringLocal file path where the PDF should be saved (e.g. output.pdf)
project_id *stringThe Overleaf project ID
resource_pathstringPath of a .tex file in the project to compile as the root document. E.g. "paper.tex", "folder/test.tex"
get_entitiesGet a flat list of all files and documents in an Overleaf project with their paths and types.${CONTENT_NOTE}
ParameterTypeDescription
project_id *stringThe Overleaf project ID
get_project_infoGet detailed information about an Overleaf project including its file tree (folders, docs, and files).${CONTENT_NOTE}
ParameterTypeDescription
project_id *stringThe Overleaf project ID (24-char hex string)
list_commentsList review comments on an Overleaf project. Supports filtering by status (all, open, resolved).${CONTENT_NOTE}
ParameterTypeDescription
include_changesbooleanAlso return tracked changes (suggested insertions and deletions). The result then becomes { comments, changes }. Track changes is an Overleaf premium feature: only projects whose owner has a premium plan have them. An empty list in other projects is expected
include_contextbooleanInclude surrounding text context for each comment
project_id *stringThe Overleaf project ID
statusstringFilter by comment status
list_projectsList all Overleaf projects in the account. Returns project IDs, names, and metadata.${CONTENT_NOTE}
plan_project_renamesPreview a bulk project rename across the account. Returns the planned renames, skipped projects and any name collisions. This tool NEVER renames anything - applying the plan requires the human to run `olcli project rename-bulk --yes` in a terminal.
ParameterTypeDescription
matchstringRegex; only projects whose name matches are considered
prefixstringText to prepend to the name
replacestringReplacement text; supports $1/$2 backrefs when used with match
searchstringLiteral substring to replace (not a regex)
suffixstringText to append to the name
pull_projectDownload and extract an Overleaf project as a zip to a local directory. Creates the directory if it does not exist.${CONTENT_NOTE}
ParameterTypeDescription
output_dir *stringLocal directory path to extract files into
overwritebooleanOverwrite existing files (default: false)
project_id *stringThe Overleaf project ID
push_fileUpload a local file to an Overleaf project. The remote path is inferred from the file_path argument. A file at the same path is replaced.${askNote}${CONTENT_NOTE}
ParameterTypeDescription
local_path *stringAbsolute or relative path of the local file to upload
project_id *stringThe Overleaf project ID
remote_pathstringTarget path within the project. Defaults to the basename for absolute local paths, or the relative path as given (e.g. "figures/diagram.png")
reject_tracked_changesReject tracked changes by id: suggested insertions are removed, suggested deletions are restored. Returns a unified diff preview and writes nothing unless apply is true. Nothing is written if any id is unknown or a doc changed since the preview. Track changes is an Overleaf premium feature: only projects whose owner has a premium plan have them.${confirmWrites ? ' With apply true, asks the user to confirm in the MCP client before writing.' : ''}${CONTENT_NOTE}
ParameterTypeDescription
applybooleanApply the rejection. Default false returns the preview only
change_ids *arrayTracked change ids (from list_comments with include_changes)
project_id *stringThe Overleaf project ID
rename_entityRename a file, document, or folder within an Overleaf project, or move it into another folder. new_name without a slash renames in place. A path such as "chapters/intro.tex" moves the entity into that folder under that name, creating missing folders. A path ending in a slash, such as "chapters/", moves it and keeps the name; "/" is the project root. Nothing is written when the destination already exists, the source is not found, or a folder would move into itself.${askNote}
ParameterTypeDescription
new_name *stringNew name (renames in place), or a destination path: "folder/name.tex" moves and renames, "folder/" moves and keeps the name, "/" is the project root
project_id *stringThe Overleaf project ID
remote_path *stringCurrent path of the file/document/folder within the project
rename_projectRename an Overleaf project itself (not a file inside it). Use rename_entity for files and folders.${askNote}
ParameterTypeDescription
new_name *stringNew project name
project_id *stringThe Overleaf project ID
reply_to_commentAdd a reply to an existing comment thread on an Overleaf project.${askNote}${CONTENT_NOTE}
ParameterTypeDescription
content *stringThe reply message text
project_id *stringThe Overleaf project ID
thread_id *stringThe comment thread ID (from list_comments)
resolve_commentMark a review comment thread as resolved.${askNote}${CONTENT_NOTE}
ParameterTypeDescription
project_id *stringThe Overleaf project ID
thread_id *stringThe comment thread ID (from list_comments)
suggest_changesExperimental. Turn edits that are already on Overleaf as plain text (pushed through git, push_file or a sync) into tracked changes (suggestions) that collaborators can accept or reject, for projects with track changes. Each edit gives the old text (deleted), the new text (inserted) and some unchanged text right before and after it, so the new text can be found; hint is the approximate character offset of the edit and picks the nearest match. Olcli undoes each edit without tracking and redoes it with tracking, so the text ends up the same; collaborators with the document open see the old text for about 0.2 seconds. Only documents in the sharejs-text-ot format; history-ot documents are refused. Needs edit access to the project. Returns one result per edit: done, already-tracked, not-pushed, not-found, unchanged, invalid, or not-tracked (sent, but no tracked change showed up).${askNote}${CONTENT_NOTE}
ParameterTypeDescription
editsarrayUnchanged text right before the edit
path *stringPath of the document within the project (e.g. main.tex)
project_id *stringThe Overleaf project ID

Security checks

  • ✓README presentThe repository's README runs to about 2.0K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionScanned 25 source files and found 2 calls to eval or shell execution, in src/remote-helper.ts among others. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

Releases

v0.18.1olcli 0.18.1 · 18 Nov 2026olcli 0.18.1 Fixed `brew install aloth/tap/olcli` installs the commands again (#69) - the formula built from the GitHub source tarball, which has no `dist/`, and Homebrew removes the `prepare` script that builds it before packing, so the…
v0.18.0olcli 0.18.0 · 16 Nov 2026Added Turn pushed edits into suggestions (experimental) (#66, #70) - `suggestChanges(projectId, path, edits)` makes edits that reached Overleaf as plain text, through git, `olcli push` or a sync, show up as tracked changes that…
v0.17.0olcli 0.17.0 · 15 Nov 2026Added Context around tracked changes (#64) - `listTrackedChanges` and `listReview` accept `surroundingChars`. With it, each change carries `before` and `after`: up to that many characters of the visible text right before and right after…
v0.16.2olcli 0.16.2 · 11 Nov 2026olcli 0.16.2 Fixed Renaming a project you do not own says so instead of "Session expired" (#62) - Overleaf lets only the project owner rename a project and answers 403 to every collaborator, also with edit access, while the session stays…
v0.16.1olcli 0.16.1 · 7 Nov 2026olcli 0.16.1 Fixes a data-loss bug in the git remote helper. If you use `git clone overleaf::...`, please update. Fixed `git pull` now brings in edits made on Overleaf, and `git push` no longer overwrites them. After the clone, `git fetch`…

README

The repository's README runs to about 2.0K words, fetched 12 days ago. The original in the repository is authoritative.

Read full README
Questions

About Olcli

How do I install Olcli?

In Claude Code, run claude mcp add olcli -- npx -y @aloth/olcli. Other MCP clients take the command after "--" in their server configuration.

Is Olcli safe to use with an AI agent?

Its trust score is 85 out of 100 (strong). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Olcli still maintained?

Yes — the latest release is v0.18.1 (18 Nov 2026), and the last commit was yesterday. The repository has 285 stars and 1 open issues.

What tools does Olcli provide?

Conduid read 22 tools from the source: accept_tracked_changes, add_comment, compile, compile_with_outputs, create_project, delete_entity, diff_project, download_file and 14 more. 21 of them publish their parameters, listed under Tools above.

What license is Olcli released under?

The repository declares the MIT license. That applies to the latest release, v0.18.1, as well.