Platform · API reference

MCP

Provenance as tools for MCP clients.

Related guide: Overview

Open an MCP stream

GET/v1/mcp

Part of the Streamable HTTP transport, for MCP clients before 2026-07-28 (a 2026-07-28 request gets 405).

Parameters

No parameters.

Returns

A server-sent event stream of JSON-RPC messages.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/mcp" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Call the MCP server

POST/v1/mcp

The one Provenance MCP server (Streamable HTTP; also the root of the mcp. hosts). Tools follow the credential: an API key lists the agent tools, an OAuth access token its family's tools, and no credential with ?toolsets=verify the keyless tools. Every 401 names the resource metadata in WWW-Authenticate. See the Provenance MCP guide.

Parameters

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).

Returns

A JSON-RPC 2.0 response, such as a tool result or the tool list.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/mcp" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "check_counterparty",
      "arguments": {
        "domain": "example.com"
      }
    }
  }'

Response 200

{
  "result": {
    "content": [
      {
        "type": "text",
        "text": "This business has no published Provenance profile. Treat any agent that says it sells for it as unverified.\n\n{\n  \"origin\": \"https://example.com\",\n  \"verified\": false,\n  \"accepts_approvals\": false,\n  \"next\": \"This business has no published Provenance profile. Treat any agent that says it sells for it as unverified.\"\n}"
      }
    ],
    "structuredContent": {
      "origin": "https://example.com",
      "verified": false,
      "accepts_approvals": false,
      "next": "This business has no published Provenance profile. Treat any agent that says it sells for it as unverified."
    }
  },
  "jsonrpc": "2.0",
  "id": 1
}

Close an MCP session

DELETE/v1/mcp

Part of the Streamable HTTP transport, for MCP clients. The server keeps no session state.

Parameters

No parameters.

Returns

The session is closed. No body.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X DELETE "$PROVENANCE_API/v1/mcp" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Was this page helpful? Send us feedback

LLM? Read llms.txt.