SkillAgentSearch skills...

overleaf-web-mcp

Read, edit, compile, and review your Overleaf projects through your own signed-in session: from Claude, Codex, Cursor, or any MCP client, from the command line, or from TypeScript. No Git integration or premium plan needed.

Install / Use

claude mcp add mhmdaskari -- npx -y github:mhmdaskari/overleaf-web-mcp

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

84/100

Supported Platforms

Claude Code
Claude Desktop
Cursor
OpenAI Codex

Our assessment of overleaf-web-mcp

overleaf-web-mcp scores 84/100 on our quality scale, 2775th of 4,715 Development & Engineering skills we index.

Its MCP Server is 23 KB long, well organised into 15 sections with 6 code examples: a thorough specification that gives an agent plenty to work with.

It has 10 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
30/30
Structure
20/20
Description
15/15
Adoption
4/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated today, so overleaf-web-mcp is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.

Automated pattern scan on 2026-11-25. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

overleaf-web-mcp compared with similar skills

All 4 of these similar skills score higher than overleaf-web-mcp; compare them before choosing.

SkillScoreStarsUpdatedFormat
overleaf-web-mcp (this skill)by mhmdaskari8410todayMCP Server
taste-skillby Leonxlnx100121.5ktodayCLAUDE.md
Agent-Reachby Panniantong100114.7k1d agoCLAUDE.md
hyperframesby heygen-com10090.0ktodayCLAUDE.md
rufloby ruvnet10082.4ktodayCLAUDE.md

Frequently asked questions

How do I install overleaf-web-mcp?
Run claude mcp add mhmdaskari -- npx -y github:mhmdaskari/overleaf-web-mcp. The install tabs above show the steps for each supported agent.
Which AI agents does overleaf-web-mcp work with?
It is written for Claude Code, Claude Desktop, Cursor and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
Is overleaf-web-mcp safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is overleaf-web-mcp still maintained?
The repository was last updated today, so overleaf-web-mcp is actively maintained.
<h1 align="center">Overleaf Web MCP</h1> <p align="center"><strong>Read, edit, compile, and review your Overleaf projects, signed in as you,<br>from Claude, Codex, Cursor, or any MCP client, or from a shell or a TypeScript program.</strong></p> <p align="center"> <a href="https://mhmdaskari.github.io/overleaf-web-mcp/"><strong>Docs</strong></a> &nbsp;·&nbsp; <a href="#get-started"><strong>Get started</strong></a> &nbsp;·&nbsp; <a href="#without-an-mcp-client"><strong>Command line</strong></a> &nbsp;·&nbsp; <a href="#tools"><strong>Tools</strong></a> &nbsp;·&nbsp; <a href="#how-it-keeps-your-project-safe"><strong>Safety</strong></a> &nbsp;·&nbsp; <a href="#how-it-compares"><strong>Compare</strong></a> &nbsp;·&nbsp; <a href="https://mhmdaskari.github.io/overleaf-web-mcp/changelog/"><strong>Changelog</strong></a> </p> <p align="center"> <a href="https://www.npmjs.com/package/overleaf-web-mcp"><img alt="npm version" src="https://img.shields.io/npm/v/overleaf-web-mcp?style=flat-square&amp;logo=npm&amp;label=npm&amp;color=1F6FEB"></a> <a href="https://www.npmjs.com/package/overleaf-web-mcp"><img alt="Total npm installs" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fmhmdaskari%2Foverleaf-web-mcp%2Fbadges%2Fnpm-downloads.json&amp;style=flat-square&amp;label=installs"></a> <a href="https://github.com/mhmdaskari/overleaf-web-mcp/actions/workflows/ci.yml"><img alt="CI status" src="https://img.shields.io/github/actions/workflow/status/mhmdaskari/overleaf-web-mcp/ci.yml?branch=main&amp;style=flat-square&amp;logo=githubactions&amp;logoColor=white&amp;label=CI"></a> <img alt="Node.js 20 or newer" src="https://img.shields.io/badge/Node.js-20%2B-339933?style=flat-square&amp;logo=nodedotjs&amp;logoColor=white"> <a href="#tools"><img alt="41 MCP tools" src="https://img.shields.io/badge/MCP-41_tools-1F6FEB?style=flat-square"></a> <a href="LICENSE"><img alt="MIT license" src="https://img.shields.io/badge/license-MIT-0F766E?style=flat-square"></a> <br> <a href="https://mhmdaskari.github.io/overleaf-web-mcp/install/"><img alt="Works with Claude Code, Codex, Cursor, and VS Code" src="https://img.shields.io/badge/works_with-Claude_Code_%7C_Codex_%7C_Cursor_%7C_VS_Code-7C3AED?style=flat-square"></a> </p> <p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mhmdaskari/overleaf-web-mcp/main/docs/assets/overleaf-web-mcp-workflow-dark.webp"> <img src="docs/assets/overleaf-web-mcp-workflow.webp" alt="An MCP client connected through an authenticated web session to an Overleaf workspace for project files, LaTeX editing, compilation, and review replies" width="100%"> </picture> </p>

Overleaf Web MCP is a Model Context Protocol server, the overleaf-web-mcp command line, and a TypeScript library, createOverleafClient from overleaf-web-mcp/core, all over one engine with the same safety checks. It signs in to Overleaf once through a browser window you control, then lets an AI assistant, a script, or your own program work on your projects the way you would in the web editor: browse files, make revision-checked edits, optionally as tracked changes, compile, and handle review comments and tracked changes. It uses the same browser-facing endpoints the Overleaf editor uses, so it works with the Overleaf account and plan you already have. Features your plan does not include, such as track changes, stay unavailable.

What you can say

Once connected, talk to your assistant in plain language. It picks the tools.

  • "Create a new project called Grant renewal from the folder I zipped, and make proposal.tex the root."
  • "List my Overleaf projects and open the one called Thesis."
  • "Rewrite the introduction of main.tex for a general audience, as a tracked change."
  • "Compile the paper and tell me whether it built cleanly, and where any errors are."
  • "Which figures in ./figures differ from what's in the project? Upload only those."
  • "Make the project match ~/papers/thesis, and show me what would be deleted first."
  • "Summarize the open review comments and reply to the one about Table 2."
  • "Go through the tracked changes in main.tex with me, and accept the ones I approve."

Get started

You need Node.js 20 or newer, a Chrome-family browser (Chrome, Chromium, Brave, or Edge), and an Overleaf account.

[!NOTE] The server uses Overleaf's private web APIs, which can change without notice, and automating www.overleaf.com may carry Terms-of-Service and account risk. Try it on a disposable project first and keep request volume low.

1. Sign in once. A dedicated browser window opens. Complete the normal Overleaf login, including SSO or two-factor. Only cookies for the Overleaf origin are saved, to a file only your user can read. The session lasts five days from its last use, so sign in again after five idle days, or schedule npx overleaf-web-mcp keepalive daily to keep it alive (see configuration).

npx overleaf-web-mcp login

2. Connect your MCP client. For Claude Code:

claude mcp add overleaf --scope user -- npx -y overleaf-web-mcp serve

For Codex:

codex mcp add overleaf -- npx -y overleaf-web-mcp serve
<details> <summary>Claude Desktop, Cursor, Antigravity, VS Code, and other clients</summary>

Add this to the client's MCP configuration:

{
  "mcpServers": {
    "overleaf": {
      "command": "npx",
      "args": ["-y", "overleaf-web-mcp", "serve"]
    }
  }
}

Claude Desktop can instead install the extension file attached to each release, which runs on its own Node.js; see Claude Desktop in the guide. VS Code uses a servers key and "type": "stdio" instead; the installation guide has the exact block for each client.

</details>

3. Restart the client and ask it to check your Overleaf connection.

Client-by-client steps, self-hosted Overleaf, and troubleshooting, including the "failed to connect" you get when node is older than 20, are in the installation guide.

Without an MCP client

Every tool is also a command, for scripts, CI jobs, and agents that work in a shell. After npx overleaf-web-mcp login:

npx overleaf-web-mcp projects list --query thesis
npx overleaf-web-mcp files read <projectId> main.tex
npx overleaf-web-mcp call get_sections --request request.json

Each command prints one JSON value on stdout, or one JSON error line on stderr, and its exit code says what is safe to do next: 0 complete, 1 failed, 2 fix the call, 3 not allowed, 4 read or plan again, 5 outcome unknown (never re-run it blindly), 6 partial, 7 retry later. Document text goes through a file or stdin, never the command line. The command line guide has every command and exit code. Three Agent Skills in skills/ use it to revise a manuscript, handle reviewer comments, and sync figures and sources.

From TypeScript, overleaf-web-mcp/core has one typed method per tool (TypeScript SDK):

import { createOverleafClient } from 'overleaf-web-mcp/core'

const client = await createOverleafClient()
try {
  const file = await client.readFile({ projectId, filePath: 'main.tex' })
} finally {
  await client.close()
}

What it can do

  • Start and manage projects. Create a blank or example project, clone one, or import a zip; rename, trash, restore, or archive projects with the name confirmed first; set the root document, TeX engine, and TeX Live image so the web editor's Recompile follows; and organize projects with your dashboard tags.
  • Browse and organize. List and search projects, find text across a project's documents, read the file tree with the configured root document and compiler, create folders and files, rename, move, upload one file or a list of them, download a file or the whole project as a zip, and delete with confirmation.
  • Sync a folder. Compare a local folder with the project without changing anything, then upload only what changed, and optionally delete what you removed locally, in one confirmed call. Changed text files go through the same revision-checked edits as a single write, so a collaborator's concurrent edit is never overwritten.
  • Write safely. Replace a whole document or a single section, or change only the passages you name. Every edit is checked against the revision you read first, so a collaborator's concurrent change is reported instead of overwritten. Edits can be recorded as Overleaf tracked changes.
  • Work by section. Parse \section headings in a file, read one section, replace one section. For a manuscript split across files, read it as one flattened document with a map back to each file, and list, read, and replace sections across \input, \include, \subfile, and \import, each write going to the one file that holds the section.
  • Compile. Build the project's configured root document, or any document you name, and get the errors and warnings from its log by file and line, with a clear yes or no on whether it built cleanly. Read the full log, save the PDF or any other output locally, or stop a running compile.
  • Review. List comment threads with their locations, reply, add a comment anchored to exact text, and resolve or reopen threads. List tracked changes with their authors and locations, and accept or reject them once you have confirmed which. Accepting or rejecting them needs a project whose owner's Overleaf plan includes track changes, and on self-hosted Overleaf an edition that includes it; otherwise the decision is refused with nothing changed.
  • Follow history. Poll recent project history with a version cursor to see who changed what.

Tools

41 tools in eight groups: account, project lifecycle, files, folder sync, sections, compilation, review, and history. Read-only tools change nothing on Overleaf and write nothing on your computer. Destructive tools can replace or remove existing content, and all but stop_compile need a value repeated back first: the path, name, or count of what they delete, the revision of the document they replace, the planToken of a folder sync, or overwrite for a file that exists.

<details> <summary><strong>All 41 tools</strong>, with their annotations and local effects</summary>

An upload that would replace a file, and a folder sync without a planToken, are refused unless that replacement or unplanned sync is asked for by name. The last column shows which tools read or write files on the computer the server runs on. Every parameter and result is in the tool reference; each tool but sign_in is also overleaf-web-mcp call <name> and a method of createOverleafClient.

| Group | Tool | What it does | Annotation | Local effect | | --- | --- | --- | --- | --- | | Account | auth_status | Verify the saved session and report when it expires | read-only | | | Account | sign_in | Open a browser window for the user to sign in, and save the session; MCP only, login on the command line | | writes the session | | Account | list_projects | List and search projects, newest first, with their tags on request | read-only | | | Project lifecycle | create_project | Create a blank or example project | | | | Project lifecycle | clone_project | Copy a project, files and settings included | | | | Project lifecycle | import_project_zip | Create a project from a

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated5h ago
Forks4

Languages

TypeScript

Trust signals

97/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 info