Agent access

MCP setup

Point an MCP-compatible client at the same datasets and at contact unlock, under the same key, the same limits, and the same API Credit rules as REST.

Transports

Transport
Streamable HTTP
URL
https://mira-api.metix.ai/mcp
Protocol
MCP 2025-03-26
Transport
SSE (legacy)
URL
https://mira-api.metix.ai/sse
Protocol
MCP 2024-11-05

A legacy SSE session lasts as long as its GET /sse stream stays open. A POST to the messages URL that stream announced answers 404 Could not find session once the stream has closed. That reads like an outage and is not one: open /sse again for a new session.

Signing in instead of pasting a key

A client that supports the MCP authorization spec does not need a key. An unauthenticated call answers 401 with a WWW-Authenticate header naming the protected-resource document, which names platform.metix.ai as the authorization server. The client reads that, registers itself, and sends you here to sign in. Nothing is pasted, and no key is created.

Approving the connection grants data:read: searching and reading people, job postings and companies. That is what connecting means, and it cannot be refused separately. contact:unlock is the one scope that is held back, because it is the one that spends API Credits per call. It needs both the app asking for it and you ticking it, so an app that asks cannot have it until you agree, and an app that does not ask cannot get it at all. The same screen takes a spending cap for the connection.

A connected app appears on API keys as a connected app rather than a key, and you end it with Disconnect. It draws on the same API Credit balance and the same per-minute limit as a key, and it does not count against how many keys you may hold. One thing it cannot do is call REST: the token is issued for the MCP server, and a REST route answers 403 token_audience. For REST, create a key.

Clients differ in what they accept, so each client’s own steps are on its integrations page. No sign-in connection has been run from our side yet, so those steps follow each vendor’s documentation rather than a run of our own.

Tools

The MCP surface is the public REST surface and nothing more. Each tool calls one REST route, under the same key, and these names are part of the published contract, so a prompt or a client config can rely on them.

Tool
metix_get_contract
What it does
Read the live contract: routes, query vocabulary, operators, limits, billing
REST route
GET /contract
Tool
metix_search_people
What it does
Natural-language search over people
REST route
POST /v1/people-search
Tool
metix_query_people
What it does
Query Spec search over people
REST route
POST /v1/people/query
Tool
metix_get_profiles
What it does
Fetch profile records
REST route
POST /entity/v1/profiles/detail-by-id
Tool
metix_query_jobs
What it does
Query Spec search over jobs
REST route
POST /v1/jobs/query
Tool
metix_get_jobs
What it does
Fetch job records
REST route
POST /entity/v1/jobs/detail-by-id
Tool
metix_query_companies
What it does
Query Spec search over companies
REST route
POST /v1/companies/query
Tool
metix_get_companies
What it does
Fetch company records
REST route
POST /entity/v1/companies/detail-by-id
Tool
metix_get_key_status
What it does
Inspect authenticated key status, scopes, rate limit, and quota projection
REST route
GET /auth/key/status
Tool
metix_get_version
What it does
Read the deployed version and contract fingerprint
REST route
GET /version
Tool
metix_probe_contacts
What it does
Ask which contact kinds exist before spending API Credits on them
REST route
POST /v1/contact/probe
Tool
metix_unlock_contacts
What it does
Unlock contact details for people you already found
REST route
POST /v1/contact/unlock

Call metix_get_contract first. It is free, and it returns the field names each dataset accepts and the operators each field takes, which an agent needs before it writes a Query Spec tree.

The two-step flow does not go away under MCP. A search still returns encrypted string IDs, so an agent that stops after the search has ID strings and no facts. Tell it to fetch details, in batches of up to 100, before it tries to reason about a result set. The Query Spec is worth putting in the agent's context: an agent that knows all, any, not and one operator per leaf writes far better queries than one guessing at filter names.

Claude Code

claude mcp add --scope user --transport http metix-ai-platform \
  https://mira-api.metix.ai/mcp \
  --header "Authorization: Bearer $METIX_KEY"

The tools above then appear in Claude Code's tool list. You do not name them: ask for what you want and the agent picks. For integration code rather than an agent, the REST API reference covers each route in full.

Codex

The same server, registered with Codex. The key is read from your environment at call time rather than written into the config file.

codex mcp add metix-ai-platform \
  --url https://mira-api.metix.ai/mcp \
  --bearer-token-env-var METIX_KEY

codex mcp get metix-ai-platform should report transport: streamable_http. Registering here as well as in Claude Code is a second client against one server, not a second subscription.

MCP is not the only way in on Codex. The four skills install for Codex through the shared .agents/skills directory, and the two work well together: the skills point at GET /contract and GET /docs and keep the two-step shape, and MCP carries the calls. Registering the server also sidesteps Codex’s command sandbox, which has no network access by default and so blocks a raw curl until you approve it.

Other agents

Setup for Claude, Codex and the OpenAI API, Grok and Muse is on Integrations. For any other agent, install the skills with npx skills add MetixAI-Official/metix-skills, or send it this message and follow what it asks:

Install the skills from MetixAI-Official/metix-skills.
Use them for any question about people, job postings or companies.
My API key is in METIX_KEY. If you can't read it, ask me through a secure prompt, never in chat.

Any other client

Most clients, Cursor, VS Code, Windsurf and Zed among them, read a JSON block like this one. The top-level key and how the environment variable is written differ by client (Cursor writes ${env:METIX_KEY}), so check its docs for those two details; the URL and the header are the same everywhere.

{
  "mcpServers": {
    "metix-ai-platform": {
      "url": "https://mira-api.metix.ai/mcp",
      "headers": { "Authorization": "Bearer ${METIX_KEY}" }
    }
  }
}

Both commands above are wrappers over one JSON-RPC handshake. A client with no mcp add of its own needs this URL, the streamable HTTP transport, and an Authorization: Bearer header. The transport also requires an Accept header that names both JSON and an event stream; without it the server answers 406.

curl -X POST "https://mira-api.metix.ai/mcp" \
  -H "Authorization: Bearer $METIX_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "clientInfo": { "name": "my-agent", "version": "1.0" }
    }
  }'

Shared behavior

  • Authentication uses the same API key and the same server-side policy.
  • API Credit settlement follows the same returned-result rules as REST.
  • Search size and detail batch limits are the same: up to 10,000 IDs per page (100 if you omit size), 100 IDs per detail call.
  • Agent responses should not expose secrets or raw provider payloads.