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
- Open Settings → API keys for your AI agent. Keys are on the Starter plan and above.
- Name the key and choose when it expires: 30, 60 or 90 days, or a year. No key lasts forever.
- Optionally limit it to one brand, or to some of the tools below.
- 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.
| Tool | Returns |
|---|---|
brands.list | The brands the key can read: id, name and site. Every other tool takes a brand id from here. |
audits.list | A brand's latest completed audits, newest first, with the Visibility Score and when each finished. |
prompts.list | Every 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.get | One prompt in full: each engine's answer, whether it named the brand, an excerpt and the pages it cited. |
suggestions.list | Prompts 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-RemainingandX-RateLimit-Reset; a 429 carries an exactRetry-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
| Item | Value |
|---|---|
| Endpoint | POST https://www.99visibility.com/api/mcp |
| Transport | JSON-RPC 2.0 over HTTP POST, one JSON response per request. No streaming, no sessions. |
| Methods | initialize, ping, tools/list, tools/call, and the notifications notifications/initialized and notifications/cancelled (answered 202). |
| Capabilities | Tools only. No resources or prompts. |
| Batches | Refused. |
| Discovery | GET /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/listshows only the tools in the key's scopes. Calling any other tool answersUnknown 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
| Case | HTTP | JSON-RPC error |
|---|---|---|
| Missing bearer token | 401 | -32600 "Missing bearer token" |
| Unknown, revoked or expired key | 401 | -32600 "Invalid API key" |
| Rate limit exceeded (per key) | 429, with Retry-After | -32603 "Rate limit exceeded. Retry in Ns." |
| Body is not JSON | 200 | -32700 "Invalid JSON" |
Batch, malformed envelope, or tools/call without an id | 200 | -32600 |
| Unknown method | 200 | -32601 "Method not found" |
| Tool not in scope or not found; gated tool without its scope; invalid arguments | 200 | -32602 |
| Tool unavailable | 200 | -32603 |
| Tool ran and failed | 200 | No 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.