# MCP limits, errors and protocol

> Rate limits, usage and size limits, error formats and codes, and the protocol and OAuth details for client developers.

https://knwn.app/docs/mcp-limits
Updated 26 November 2026 · 7 min read

## Rate limit

Each connection can make 300 requests per minute. A connection is one MCP key, or one OAuth connection across all the projects it covers. Minutes are fixed clock minutes, counted across every KNWN server, and rejected sign-ins don’t count.

Over the limit, KNWN answers with HTTP 429, a `Retry-After` header in seconds, and a JSON-RPC error whose `data` repeats the wait and the limit:

```json
{
  "jsonrpc": "2.0",
  "id": 7,
  "error": {
    "code": -32000,
    "message": "Rate limit reached: 300 MCP requests per minute for this connection. Retry after 23 seconds.",
    "data": { "retryAfter": 23, "limit": 300 }
  }
}
```

`account_status` shows what remains, without using a credit:

```json
"rateLimit": { "perMinute": 300, "remaining": 299, "resetAt": "2026-11-17T09:31:00.000Z" }
```

## Credits and usage limits

The rate limit protects the server. What your assistant can collect or generate is set by your project’s plan, exactly as in the app:

- Tracking credits for each question and model queued for collection. `preview_scan` shows the price before anything runs.
- The model, its thinking level and the collection method set the fixed price shown before collection.
- Failed or cancelled answers return their quoted credits when the run closes.
- Automatic retries and status checks cost no extra credits. Start a new collection for failed answers.
- The project’s monthly answer budget, when the owner has set one.
- AI usage safeguards for drafting, fact checks and analysis, with request and concurrency limits.
- Trial limits: 10 active questions and 100 tracking credits.

Reading reports, answers and saved data never uses credits. When a limit applies, the tool fails with a `code`: a usage limit adds `retryAt`, and an account state adds `action`, which says what to do.

## Size limits

| Limit | Value |
| --- | --- |
| Request body | 80,000 bytes |
| Answers per report period | All of them for report figures; the 7,500 most recent for answer tables, 1,500 for evidence insights |
| `list_answers` | 30 per page by default, up to 100 |
| `visibility_report` list sections | 3 rows by default, up to 250. `rowsOmitted` says what was left out. |
| `create_prompts` | 25 prompts per call |
| `save_search_volumes` | 100 rows per call |
| `lookup_search_volume` | 8 keywords per market |
| `check_facts` | The 10 most recent answers |
| Workflows | 12 steps and 450 characters per value; batches of 25 rows, 100 batches per project |
| `where` | 600 characters, 30 conditions, 30 values per list |
| OAuth | 100 connections per owner, 200 ticked projects per connection |

Responses are compact. The largest, from `visibility_report`, `list_answers` and `preview_scan`, are about 3,000 tokens. The full tool list for a write connection is about 31,000 tokens.

## Tool errors

A tool that fails returns a normal result with `isError: true` and a JSON body. `error` always says what went wrong and how to fix the call. Invalid arguments list the allowed values:

```json
{
  "error": "filters.where: Unknown field “engin”. Use field = value, field != value, field in (a, b) or field not in (a, b), joined with and, or, not and parentheses. Fields: engine, country, topic, tag, persona, language, purpose, method, prompt, brand, cites. …"
}
```

| Kind | Codes |
| --- | --- |
| Usage limits: retry at `retryAt` | `account_concurrency_limit`, `account_cost_limit`, `account_request_limit`, `platform_budget_limit`, `platform_concurrency_limit`, `platform_request_limit`, `purchased_capture_safety_limit`, `purchased_credit_review`, `request_rate_limit`, `usage_busy` |
| Account state: follow `action` | `plan_paused`, `prepaid_analysis_unavailable`, `purchased_credit_limit`, `purchased_credit_review`, `subscription_inactive`, `trial_expired`, `trial_not_started`, `trial_request_limit`, `trial_sample_limit` |
| Keys, connections and sends: the message says what to do | `key_expired`, `reconnect_required`, `request_id_reused`, `send_in_progress`, `send_uncertain`, `wrong_project` |

Successful results carry `structuredContent` and the same JSON as text.

## HTTP and JSON-RPC errors

| Status | When |
| --- | --- |
| 401 with `WWW-Authenticate` | Missing, invalid or revoked credential. Listing tools also needs one. |
| 403 with `WWW-Authenticate` | A write with read-only OAuth consent (`insufficient_scope`) |
| 403, JSON-RPC -32600 | A browser origin that is not allowed |
| 405 | Any method other than `POST` |
| 406 or 415, JSON-RPC -32600 | An `Accept` header without `application/json`, or a body that is not JSON |
| 413, JSON-RPC -32600 | A body over 80,000 bytes |
| 400, JSON-RPC -32700, -32600 or -32602 | Invalid JSON, an invalid request or invalid parameters, including an unknown tool |
| 400, JSON-RPC -32601 | An unknown method (404 with protocol version `2026-07-28`) |
| 400, JSON-RPC -32022 | An unsupported protocol version. `data` lists the supported ones. |
| 400, JSON-RPC -32020 | MCP headers that don’t match the request body, or that `2026-07-28` requires and are missing |
| 429, JSON-RPC -32000 | The rate limit, with `Retry-After` |
| 503, JSON-RPC -32603 | Service unavailable. Retry reads; check saved work before retrying writes. |

## Protocol

- Transport: Streamable HTTP. Send `POST` with `Content-Type: application/json` and an `Accept` header that includes `application/json`. Every response is a single JSON message. There is no event stream and no session, so `GET` returns 405.
- Versions: `2026-07-28`, with per-request headers and `server/discover`, and `2025-11-25`, `2025-06-18` and `2025-03-26` through `initialize`. A request without a version header is treated as `2025-03-26`.
- Methods: tools, prompts, resources and completions. Each list comes in one page.
- Long work is polled: `get_scan` and `get_workflows` report progress. There are no progress notifications.
- Tool definitions carry `readOnlyHint`, `destructiveHint` and `openWorldHint` annotations. Seven report tools also declare an `outputSchema`.

## OAuth for client developers

The MCP server, `https://mcp.knwn.app`, is the protected resource. Its OAuth 2.1 authorization server is the KNWN origin, `https://knwn.app`, which serves the other endpoints below.

| Endpoint | Purpose |
| --- | --- |
| `https://mcp.knwn.app/.well-known/oauth-protected-resource` | Resource metadata: the authorization server and the default scope |
| `/.well-known/oauth-authorization-server` | Authorization server metadata |
| `/oauth/authorize` | Sign-in, project selection and consent |
| `/oauth/token` | Code exchange with S256 PKCE, and refresh |
| `/oauth/register` | Dynamic client registration |
| `/oauth/revoke` | Revoke a connection with its access or refresh token |

- Clients: public clients with PKCE, and registered clients with `client_secret_basic` or `client_secret_post`. Client ID metadata documents are fetched over HTTPS.
- Redirect URLs must match exactly: HTTPS, or a loopback address on any port for native apps.
- Send the exact resource, `https://mcp.knwn.app`, on the authorization and token requests.
- Scopes: `mcp_read` by default, and `mcp_read mcp_write` only when the owner ticks Changes and AI jobs. Refreshing never adds a scope.
- A write with read-only consent returns 403 with `error="insufficient_scope"` in `WWW-Authenticate`. Send the user back through consent.
- Each address may make up to 60 authorization requests, 20 client registrations and 600 token requests a minute. Over that, the endpoint answers HTTP 429 with `temporarily_unavailable`.

| Item | Lifetime |
| --- | --- |
| Access token | 15 minutes |
| Refresh token | 30 days, replaced on every use |
| Connection | 90 days |
| Authorization code | 5 minutes |
| Consent request | 10 minutes after its page was last shown |

Reusing an authorization code or refresh token that was already used revokes the whole connection.
