Connect an MCP host
Apiome's MCP server gives MCP hosts — Claude Desktop, IDEs, agents — read-only access to your published specs. Every request needs an MCP API key: it reads the public specs and the private specs of its tenant. Without one the server refuses to list or call its tools.
Create an MCP API key
You need to be an administrator of the tenant.
- Go to Workspace → API keys.
- Click “Create MCP key” (beside Create API key).
- Enter a Label (for example
Claude Desktop) and click “Create MCP key”. - Copy the key now — it is shown only once.
An MCP key is not a REST API key: a key whose Type is REST API is refused with Invalid or unknown MCP API key. If a key's secret leaks or is lost, regenerate it — the host needs only the new secret; the key's tools stay the same. See MCP keys.
Point your host at Apiome
The local stack serves MCP at http://localhost:8765/mcp. In your host's MCP settings, add a
Streamable HTTP server with that URL and the key as a bearer token, sent on every request:
URL: http://localhost:8765/mcp
Header: Authorization: Bearer <your-mcp-api-key>
Without the header the host connects but cannot list tools: the server answers MCP API key required.
Hosts that only speak stdio set the key in APIOME_MCP_API_KEY instead — see the MCP
quick-start for that and the full set of options.
Check it works
- Restart the host so it picks up the server.
- Ask it to list Apiome's specs — it calls
spec.list, which includes the seededpetstore-sampleand anything you published.
If a tool answers capability_disabled, a tenant administrator has to switch it on: Manage
workspaces… → Manage → MCP settings.
Where next
- Export over MCP — let the agent export a version to any format, with its fidelity report
- Ask from an AI agent (pacts) — list pacts, ask
can-i-deploy and record deployments with the
pact.*tools - Keyboard and preferences
- MCP quick-start