MCP server
The MCP server runs beside the REST API with the same handlers and the same keys. Each tool is a REST operation: its name is the operation’s operationId, and its arguments are the REST body, or the path and query fields, field for field.
- Endpoint:
https://api.sanctionary.org/v1/mcp - Transport: Streamable HTTP, JSON-RPC 2.0, protocol version
2025-06-18 - Authentication:
Authorization: Bearer sanc_v1_..., the same key as REST
Client configuration
Section titled “Client configuration”For clients that read an mcpServers JSON file with remote servers (for example Claude Code’s .mcp.json or Cursor’s mcp.json):
{ "mcpServers": { "sanctionary": { "type": "http", "url": "https://api.sanctionary.org/v1/mcp", "headers": { "Authorization": "Bearer ${SANCTIONARY_KEY}" } } }}With the Claude Code CLI:
claude mcp add --transport http sanctionary https://api.sanctionary.org/v1/mcp \ --header "Authorization: Bearer $SANCTIONARY_KEY"If your client only launches local (stdio) servers, such as some Claude Desktop setups, connect through a local bridge to a remote HTTP server that can send the Authorization header.
| Tool | REST operation |
|---|---|
check |
POST /v1/check: check parties in named domains |
search |
POST /v1/search: search one domain by text |
entities |
GET /v1/entities/{id}: one entity by its ID |
entities_statements |
GET /v1/entities/{id}/statements: the statements behind an entity |
entities_relationships |
GET /v1/entities/{id}/relationships: an entity’s direct links |
entities_history |
GET /v1/entities/{id}/history: an entity’s versions since a time |
entities_ownership |
GET /v1/entities/{id}/ownership: the bounded ownership graph |
entities_resolve |
POST /v1/entities/resolve: what saved IDs, references and numbers are now |
catalog |
GET /v1/catalog: domains, topics, recipes, values, codes, bounds |
datasets |
GET /v1/datasets: coverage per dataset |
sources |
GET /v1/sources: publishers, licences, attribution |
Account, key and usage operations are REST only. entities_history and entities_ownership are listed with available: false in the catalog’s capabilities in the current draft.
Protocol flow
Section titled “Protocol flow”initializewithprotocolVersion: "2025-06-18".- Send
notifications/initialized. tools/listfor discovery.tools/callwith the tool name and its arguments.
A check call takes the REST request body as params.arguments:
{ "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "check", "arguments": { "domains": ["sanctions", "peps"], "options": { "sanctions": { "datasets": ["fic_sanctions_one", "fic_sanctions_two"] }, "peps": { "opt_in": ["role.pep.former"] } }, "threshold": 0.7, "limit": 5, "parties": [ { "reference": "cust-1001", "type": "person", "names": [{ "value": "Arkady Velmorin" }], "birth_dates": ["1961-03-02"], "nationalities": ["ru"], "gender": "male" } ] } }}Tools for GET operations take the path and query fields, for example { "id": "e-1q7k2m9x4w1b3" } for entities.
Reading a result
Section titled “Reading a result”result.structuredContentis the REST answer body, or the problem body on a refusal.result.isErroristruefor a refusal.result.content[0].textholds the exact serialised JSON bytes. Hash these bytes to verify the receipt.result._metacarries the receipt headers in lower case (x-request-id,x-sanctionary-build,x-sanctionary-response-sha256,x-credits-charged, and others where provided), plusretry-afteron a refusal that has one. Keep it.
A refused call over the plan’s rate looks like this:
{ "isError": true, "structuredContent": { "type": "https://api.sanctionary.org/problems/rate_limited", "title": "Rate limited", "status": 429, "code": "rate_limited", "request_id": "0193f1c2-7a4e-7c1b-9e55-2f0d6a1b9c3f", "charged": 0, "bound": { "name": "request_burst", "value": 2 } }, "content": [{ "type": "text", "text": "{\"type\":\"https://api.sanctionary.org/problems/rate_limited\", ...}" }], "_meta": { "x-request-id": "0193f1c2-7a4e-7c1b-9e55-2f0d6a1b9c3f", "x-sanctionary-build": "b-0001", "x-sanctionary-response-sha256": "5b3c68709f836467eac40333949ae5fbe033bf25c42b8c9272bfeaa8cf86033a", "x-credits-charged": "0", "retry-after": "10" }}Limits that differ from REST
Section titled “Limits that differ from REST”- The
checktool has a lower default candidatelimit(3 instead of 5). - A check through MCP is admitted against a lower candidates-per-answer bound, and MCP has its own response-size bound. The catalog’s
boundsgive the values. - Read tools have the same page defaults as REST.
Guidance for agents
Section titled “Guidance for agents”- Pass every detail you have (birth dates, countries, identifiers), not bare names.
- Read every section’s
status. Onlycheckedis a completed check, andinconclusiveis not a negative. - When reporting a candidate, cite the entity
id, itssourcesand thescore. A candidate is evidence for review, not a verdict.