MCP overview
How the Stratta MCP server authenticates, resolves your key, and exposes its 59 tools.
There are two ways to reach Stratta. Both speak the Model Context Protocol, read the same corpus and count against the same quota; only the way you prove who you are differs.
| Remote connector | Local server | |
|---|---|---|
| Address | https://stratta.ch/mcp | @stratta/mcp |
| Transport | Streamable HTTP | stdio |
| Authentication | OAuth 2.1, browser sign-in | API key (sk_strt_…) |
| Prerequisites | none | Node.js ≥ 20 |
| Tools | 54 (reading, site, dossiers, ingestion) | 55 (adds the attachment read from your disk) |
The remote connector is the shorter path, and the only one that works in an agent running in the cloud, including ChatGPT, Codex cloud, and claude.ai. See Connect an agent from the browser.
The local server is still what you need for an agent that cannot open a browser, and for
add_attachment, the one tool that reads a file from your disk. Ingestion is served to both: the
pre-pass runs on the agent's machine, the writes go through whichever transport is connected.
Authentication
Every tool call is authenticated. The remote connector uses a short-lived OAuth token; the local server uses an API key. Stratta resolves either credential to your user and organization and scopes all reads and writes accordingly. The organization is derived from the validated credential. It is never a parameter a client can set.
How your key is resolved
The server looks for your key in this order and uses the first it finds:
STRATTA_API_KEY environment variable
If set, it takes precedence. Best for ephemeral or CI-style usage.
~/.stratta/config.json
Written by
npx -y @stratta/mcp loginor the first-use prompt. Stored owner-only (mode0600):{ "apiKey": "sk_strt_xxx" }First-use prompt (elicitation)
If no key is found and your client supports it, the server asks for the key on the first tool call, validates it, and saves it to the config file.
Environment variables
STRATTA_API_KEYstringYour API key from Intégrations › Clés d’API (API
keys). Optional: if unset, the server falls
back to ~/.stratta/config.json or prompts on first use.
STRATTA_CONVEX_URLstringdefault: Stratta production backendOverride the backend URL. Only needed if you self-host Stratta.
How your agent uses the tools
Your agent is guided to navigate norms in a deterministic order so that every answer is backed by a real citation:
get_methodology
The mandatory first call: it loads the persona, navigation rules, and citation format.
list_norms
See which norms are available in your workspace.
get_toc → get_subtree
Open the table of contents and drill into the relevant chapter.
get_section
Read the full content of a section (text, formulas, tables, figures, cross-refs).
get_cross_refs → get_section
Follow links to other norms and read those too, for compound questions.
get_figure
Retrieve a diagram when the answer depends on it.
Use search_corpus when the norm itself is unknown, and search_in_norm whenever the section path is.
Resources and prompts
Both transports serve four stratta:// resources, scoped to your workspace like the tools and not
counted against your quota: stratta://norms (JSON), stratta://methodology (Markdown),
stratta://norm/{code}/toc (table of contents to depth 2, code URL-encoded) and
stratta://dossier/{id} (a project dossier as Markdown). A client that supports resources lets you
pin one to a conversation; an agent can read one without a tool call.
The local server also offers three prompts, shown as slash commands where the client supports them:
investigate-question, resume-dossier and check-value.
Usage tracking
After each successful tool call, the server records a usage event (tool name, status, duration) against your key. This powers your dashboard stats and future billing. Tracking happens only after authentication and uses the key as proof of possession. Usage can't be attributed to someone else's key.
Tool families and simple mode
Tools are grouped in four families: norms (always on: the 10 read tools, and remotely the
citation cards, the norm reader and the profile), dossiers, sites and ingest (local only).
The 59 local and 61 remote tools are the full mode, the default.
Simple mode announces norms only: the agent loads fewer schemas and answers faster. Locally,
use --simple or --toolsets; remotely, the Tools menu on the
AI Agents page. See
CLI and commands.
Tool reference
The 10 tools your agent uses to query norms.
The 27 tools that keep what a project decided and produce its document: questions, evidence, attachments, templates, deliverables.
The 10 tools that gather what Swiss public registers know about a plot: the survey, its facts, and the boreholes nearby.
The 2 tools that serve the methods the agent follows: the ones Stratta ships and the ones your organization wrote, the plan learned from a report included.
The 10 ingest_* tools that write norms, on both transports.