MCP Server

99Visibility runs a Model Context Protocol (MCP) server at /api/mcp. Connect Claude Code, Cursor or your own agent with an API key, and it can read your brands, audits and prompts and answer questions about them where you already work.

Get a key

  1. Open Settings → API keys for your AI agent. Keys are on the Starter plan and above.
  2. Name the key and choose when it expires: 30, 60 or 90 days, or a year. No key lasts forever.
  3. Optionally limit it to one brand, or to some of the tools below.
  4. Copy the key. It is shown once; we store only a hash, so a lost key is revoked and replaced, never recovered.

You can have five live keys. Settings shows when each was last used, and revoking one takes effect on the next call. A key stops working if your plan drops below Starter.

What a key can do

Read only. A key cannot start an audit, add a prompt, change anything, or see another account.

ToolReturns
brands.listThe brands the key can read: id, name and site. Every other tool takes a brand id from here.
audits.listA brand's latest completed audits, newest first, with the Visibility Score and when each finished.
prompts.listEvery prompt the brand tracks: its prompt score from the latest audit, which engines named the brand and which did not, and Google searches a month.
prompts.getOne prompt in full: each engine's answer, whether it named the brand, an excerpt and the pages it cited.
suggestions.listPrompts suggested for the brand that you do not track yet. They have no score until an audit asks them.

Answer excerpts and cited page titles are text written by AI engines and web pages. The tools say so in their results, and your agent should treat that text as data, never as instructions.

Connect a client

Any MCP client that can send a bearer token over HTTP works. Use the endpoint below and the header Authorization: Bearer 99v_ak_…. In Claude Code:

claude mcp add --transport http 99visibility https://www.99visibility.com/api/mcp --header "Authorization: Bearer 99v_ak_…"

Then ask, for example, "Which of my prompts does ChatGPT not name us on?" Clients that connect only through OAuth sign-in cannot use a key yet; OAuth is not built.

Limits

  • 60 requests a minute per key. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 carries an exact Retry-After.
  • Reads do not count against your audit or prompt limits.
  • A key is a bearer credential: whoever holds it can read what it allows, without your password or two-step verification. Keep it out of shared files and revoke it if it leaks.

Protocol

ItemValue
EndpointPOST https://www.99visibility.com/api/mcp
TransportJSON-RPC 2.0 over HTTP POST, one JSON response per request. No streaming, no sessions.
Methodsinitialize, ping, tools/list, tools/call, and the notifications notifications/initialized and notifications/cancelled (answered 202).
CapabilitiesTools only. No resources or prompts.
BatchesRefused.
DiscoveryGET /api/mcp returns a short description without authentication.

Authentication

Send Authorization: Bearer 99v_ak_…. Only a hash of the key is stored, so a lost key cannot be recovered, only replaced. An unknown, revoked or expired key gets the same answer. Revocation takes effect on the next call.

Scopes

  • A scope is one exact tool name. There are no wildcards and no namespace grants. A key made without choosing tools gets all five.
  • tools/list shows only the tools in the key's scopes. Calling any other tool answers Unknown tool, exactly as for a tool that does not exist.
  • A key with no scopes authenticates and can do nothing.

Approval gating

Some tools are marked as needing a person's approval. Inside the product, the agent pauses and waits for someone to press Approve. An MCP call never passes through that pause, so the approval moves to the moment the key is issued: such a tool runs over MCP only if its exact name is in the key's scopes. Granting that scope approves every future call of it. tools/list marks these tools as pre-approved for the key, and each such call is logged as one.

Errors

CaseHTTPJSON-RPC error
Missing bearer token401-32600 "Missing bearer token"
Unknown, revoked or expired key401-32600 "Invalid API key"
Rate limit exceeded (per key)429, with Retry-After-32603 "Rate limit exceeded. Retry in Ns."
Body is not JSON200-32700 "Invalid JSON"
Batch, malformed envelope, or tools/call without an id200-32600
Unknown method200-32601 "Method not found"
Tool not in scope or not found; gated tool without its scope; invalid arguments200-32602
Tool unavailable200-32603
Tool ran and failed200No error: a result with isError: true

Only authentication and rate limiting use non-200 statuses. Everything else returns 200 with a JSON-RPC error, so a client should not retry a deterministic error as if the network failed.

Audit trail

Every call is logged, including refused ones, with the key, the tool and whether a pre-approved gate was used.

Programmatic access beyond MCP is covered in API and programmatic access.