devops-infra MCP Server
MCP server for self-hosted Overleaf Community Edition — real-time edits via Overleaf's native OT pipeline. Alternative to git-bridge for AI coding agents (Claude Code, Cursor, …).
Discovered via github-topic:model-context-protocol and last synced 3mo ago.
1. Install the package
npx -y overleaf-mcp-rt@latest
2. Add to claude_desktop_config.json
{
"mcpServers": {
"overleaf-mcp-rt": {
"command": "npx",
"args": [
"overleaf-mcp-rt"
]
}
}
}Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)
Use case
Validation or other non-typed errors (ambiguous anchor, out-of-bounds line range, mixed-mode `edit_doc`, etc.).
Missing or malformed `OVERLEAF_URL` / cookie / extra headers.
Apply a `diff -u`-style patch (the format LLMs emit fluently). Cannot be combined with anchor-based edits in the same call.
No such doc/file/folder at the given path.
Replace a 1-indexed inclusive line range with new text.
List accessible projects.
Session cookie invalid/expired. Re-run `overleaf-mcp-rt login`.
rm
Meaning
The session can't reach the requested project.
Anchor-based find-and-replace. Default `occurrence: 'unique'` errors if the find-string appears 0 or >1 times; pass `'all'`, `'first'`, or an integer N to disambiguate.
A reverse proxy blocked the request — set `OVERLEAF_EXTRA_HEADERS`.
A `d`-string in `overleaf_edit_doc`'s `raw_ops` mode didn't match the doc at `p`. Pre-validated client-side, so you find out before the round-trip.
Purpose
The doc moved under us during a write retry (`retryable: true`).
Caller-supplied OT ops `[{p, i?, d?}]`. Each op pre-validated against the local baseline; mismatched `d`-strings throw [`OT_DELETE_MISMATCH`](#error-envelope) before any server call. Cannot be combined with anchor-based edits.
Transport-level failure (`retryable: true`).