Read-only
Four read tools and nothing else. The connector can’t write, delete, send, or act.
Docs · MCP
The MCP connector gives the assistant you already pay for read-only access to everything Margarita keeps current — cited, and only from sources you approve.
Connection URLhttps://app.ran-stack.com/api/mcp
Access
Three things stay true for every app you connect.
Read-only
Four read tools and nothing else. The connector can’t write, delete, send, or act.
Your choice
Pick sources at connect; flip per-source toggles in Settings → MCP any time after. A source turned off disappears from every connected app immediately.
Your plan
The model answering you spends your assistant’s subscription. Margarita’s retrieval per query is metered to your ran account, as usual.
Setup
Copy one URL, approve on connect — no keys to paste.
01
In ran, open Settings → Connect your AI (MCP) and copy https://app.ran-stack.com/api/mcp.
One URL, the same for every app.
02
Add a custom connector / MCP server with that URL. Transport: Streamable HTTP.
Claude, ChatGPT, Codex, Cursor.
03
Your app opens a ran page — sign in, approve read-only access, and pick the sources it may see. OAuth 2.1 (PKCE, dynamic client registration) runs automatically.
No keys to paste.
Tools
They read what Margarita has already organized — snippets and pointers, so your assistant’s subscription isn’t spent on dumps.
| Tool | What it does |
|---|---|
search | Ranked snippet search (semantic + keyword) over the sources you approved, with document pointers and source metadata. |
read | Section-level reads of one document by id — outline first, then a named section. Never whole-document dumps. |
map | The typed connection graph around a named entity — one-hop neighbours with link types. |
catalog_route | Where an answer lives (which source), without executing anything. |
searchreadmapcatalog_routeRead-onlyIdempotentNever a live system
searchquery (≤2000 chars); optional topK (1–20, default 8); optional sourceIds (restrict to sources already seen in results).readdocId; optional headingPath.headingPath: the document’s section outline (heading paths + sizes) — pointers only. With it: that section’s text.truncated flag. Whole-document dumps are not available.mapname (a document title or stem).catalog_routequery.Trust
The consent you grant on connect is pinned server-side and enforced on every call.
https://app.ran-stack.com/.well-known/oauth-protected-resource.Support
Write to hello@thepromptdepartment.org and name the app you’re connecting from.