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 mcp add olcli -- npx -y @aloth/olclinpx -y @aloth/olcligit clone https://github.com/aloth/olcliTools (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}| Parameter | Type | Description |
|---|---|---|
| change_ids * | array | Tracked change ids (from list_comments with include_changes) |
| project_id * | string | The Overleaf project ID |
add_commentAdd a review comment to a specific location in an Overleaf project document.${askNote}${CONTENT_NOTE}| Parameter | Type | Description |
|---|---|---|
| column | number | Column number in the document (0-based, alternative to position) |
| content * | string | The comment text |
| doc_path * | string | Path of the document within the project (e.g. main.tex) |
| length | number | Length of the highlighted text span (0 for a point comment) |
| line | number | Line number in the document (1-based, alternative to position) |
| position | number | Character offset in the document where the comment is anchored |
| project_id * | string | The Overleaf project ID |
| selected_text | string | The 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.| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The Overleaf project ID |
| resource_path | string | Path 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.| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The Overleaf project ID |
| resource_path | string | Path 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}| Parameter | Type | Description |
|---|---|---|
| name * | string | Project name |
| template | string | Project template: an empty project, or Overleaf's example document |
delete_entityDelete a file or document from an Overleaf project by its remote path.${askNote}| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The Overleaf project ID |
| remote_path * | string | Path 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}| Parameter | Type | Description |
|---|---|---|
| context | number | Lines of context around each hunk (default: 3) |
| file | string | Restrict the comparison to a single path, as it appears in the project |
| local_dir * | string | Local directory to compare against the remote project |
| name_only | boolean | Omit the patch text and return only paths and statuses (default: false) |
| no_default_ignore | boolean | Disable the built-in LaTeX artifact ignore list; only .olignore applies |
| no_ignore | boolean | Disable all ignore filtering on both sides |
| project_id * | string | The Overleaf project ID |
download_fileDownload a single file from an Overleaf project by its path within the project.${CONTENT_NOTE}| Parameter | Type | Description |
|---|---|---|
| output_path | string | Local path to save the file (default: basename of remote_path in cwd) |
| project_id * | string | The Overleaf project ID |
| remote_path * | string | Path 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.| Parameter | Type | Description |
|---|---|---|
| output_path * | string | Local file path where the PDF should be saved (e.g. output.pdf) |
| project_id * | string | The Overleaf project ID |
| resource_path | string | Path 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}| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The Overleaf project ID |
get_project_infoGet detailed information about an Overleaf project including its file tree (folders, docs, and files).${CONTENT_NOTE}| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The Overleaf project ID (24-char hex string) |
list_commentsList review comments on an Overleaf project. Supports filtering by status (all, open, resolved).${CONTENT_NOTE}| Parameter | Type | Description |
|---|---|---|
| include_changes | boolean | Also 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_context | boolean | Include surrounding text context for each comment |
| project_id * | string | The Overleaf project ID |
| status | string | Filter 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.| Parameter | Type | Description |
|---|---|---|
| match | string | Regex; only projects whose name matches are considered |
| prefix | string | Text to prepend to the name |
| replace | string | Replacement text; supports $1/$2 backrefs when used with match |
| search | string | Literal substring to replace (not a regex) |
| suffix | string | Text 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}| Parameter | Type | Description |
|---|---|---|
| output_dir * | string | Local directory path to extract files into |
| overwrite | boolean | Overwrite existing files (default: false) |
| project_id * | string | The 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}| Parameter | Type | Description |
|---|---|---|
| local_path * | string | Absolute or relative path of the local file to upload |
| project_id * | string | The Overleaf project ID |
| remote_path | string | Target 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}| Parameter | Type | Description |
|---|---|---|
| apply | boolean | Apply the rejection. Default false returns the preview only |
| change_ids * | array | Tracked change ids (from list_comments with include_changes) |
| project_id * | string | The 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}| Parameter | Type | Description |
|---|---|---|
| new_name * | string | New 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 * | string | The Overleaf project ID |
| remote_path * | string | Current 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}| Parameter | Type | Description |
|---|---|---|
| new_name * | string | New project name |
| project_id * | string | The Overleaf project ID |
reply_to_commentAdd a reply to an existing comment thread on an Overleaf project.${askNote}${CONTENT_NOTE}| Parameter | Type | Description |
|---|---|---|
| content * | string | The reply message text |
| project_id * | string | The Overleaf project ID |
| thread_id * | string | The comment thread ID (from list_comments) |
resolve_commentMark a review comment thread as resolved.${askNote}${CONTENT_NOTE}| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The Overleaf project ID |
| thread_id * | string | The 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}| Parameter | Type | Description |
|---|---|---|
| edits | array | Unchanged text right before the edit |
| path * | string | Path of the document within the project (e.g. main.tex) |
| project_id * | string | The 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
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