/overleaf-mcp-rt:overleaf-setupfrom Overleaf (real-time)
Installs, logs in, and troubleshoots the overleaf-mcp-rt MCP server for Overleaf. Use when Overleaf tools fail with auth/config errors or when connecting a new Overleaf instance.
Ships in Overleaf (real-time). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The server needs one thing per Overleaf instance ("host"): a logged-in session cookie. Only the user can log in — you prepare the command, they run it.
Ask the user to run this. It opens a browser window with a throwaway profile; they sign in as usual (CAPTCHA, SSO and 2FA all work) and the session is captured automatically:
npx -y overleaf-mcp-rt login --url https://overleaf.example.com --browser
npx -y overleaf-mcp-rt login --url https://www.overleaf.com --name overleaf.com --browser # hosted Overleaf
--url and --browser are both given, so it also runs from a non-interactive shell (for instance a harness's "run this command for me" prefix).--default to change it.login --url … --cookie '<value>' with the overleaf_session2 (overleaf.com), overleaf.sid or sharelatex.sid cookie copied from browser devtools. Self-hosted instances without CAPTCHA also accept --email.~/.config/overleaf-mcp-rt/credentials.json yourself.A running MCP server picks up a new or refreshed login on the next tool call — no restart needed.
npx -y overleaf-mcp-rt hosts # configured hosts (names and URLs only)
npx -y overleaf-mcp-rt diagnose [--host NAME] # config → REST → projects → load balancer → OT handshake
diagnose names the failing layer. Then call overleaf_list_hosts and overleaf_list_projects.
If this skill came from the overleaf-mcp-rt plugin, the server is already registered. Otherwise add a stdio server to the client's MCP config:
{ "mcpServers": { "overleaf": { "command": "npx", "args": ["-y", "overleaf-mcp-rt"] } } }
Most harnesses also have a one-liner, e.g. claude mcp add overleaf -- npx -y overleaf-mcp-rt or codex mcp add overleaf -- npx -y overleaf-mcp-rt. Behind an auth proxy (Cloudflare Access, basic auth), set OVERLEAF_EXTRA_HEADERS to a JSON object of headers, or pass --header KEY=VALUE to login.
| Code | Meaning | Fix |
|---|---|---|
OVERLEAF_AUTH_FAILED | Session expired or invalid | User re-runs login … --browser |
INVALID_CONFIG | No such host / nothing configured | hosts, then login |
PROXY_AUTH_FAILED | A reverse proxy blocked the request | OVERLEAF_EXTRA_HEADERS |
PROJECT_ACCESS_DENIED | This account isn't a collaborator | User shares the project with it |
COMMENTS_UNSUPPORTED | Stock Community Edition has no review panel | Not fixable on that host |
| joinDoc refused: "history-ot" | Version of this tool older than 2.2.0, on a project using Overleaf's newer document format | Update overleaf-mcp-rt |
HISTORY_OT_WRITES_DISABLED | Project on Overleaf's newer document format: readable, but editing is opt-in | Tell the user; they enable it by starting the server with OVERLEAF_HISTORY_OT_WRITES=1 (scratch file first). Until then give them the change as text |
HISTORY_OT_MISMATCH | Overleaf stored something other than predicted after a write | Stop editing that project, re-read, tell the user to report it |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub danielhou315/overleaf-mcp-rt --plugin overleaf-mcp-rt4 skills in this plugin
/overleaf-commentsReading, writing, answering and resolving Overleaf review-panel comments via overleaf_list_comments, overleaf_add_comment, overleaf_reply_comment and overleaf_resolve_comment, including the mandatory "Co-authored by" signature. Use when the user asks you to review a document, leave feedback or questions, respond to comments a collaborator left, or when you would otherwise change a passage whose meaning is the author's call./overleaf-editingHow to read and edit Overleaf documents through the overleaf_* MCP tools without disrupting people who have the project open, including suggesting edits as tracked changes for a person to accept or reject. Use whenever you are about to read, edit, create, move or delete files in an Overleaf project, when the user wants to approve your edits first, or when a tool result contains an <external-changes> block, EDIT_NO_MATCH, EDIT_AMBIGUOUS, DOC_CHANGED_EXTERNALLY, DOC_NOT_READ, TRACK_CHANGES_UNSUPPORTED or TRACK_CHANGES_LIMIT./overleaf-latex-workflowWorking practices for LaTeX projects on Overleaf - finding the main document, compiling it or another file, reading the errors, fixing them, and keeping a shared paper buildable. Use when asked to write or revise a paper, fix a compile error, add figures, tables, sections or citations, or check that an Overleaf project still builds.Other plugins' skills for the same job