# MCP rate limits: 429 Too Many Requests, Retry-After and how agents should retry

Source: https://crabtalk.ai/blog/mcp-rate-limits-429-retry-after
Published: 2026-11-25

> MCP says servers must rate limit tool calls but not how to refuse. How to return 429 and Retry-After, what Claude, OpenAI and GitHub do, and how to retry.

MCP requires servers to rate limit tool calls and says nothing about how to refuse one. The tools page lists "Rate limit tool invocations" among what servers "**MUST**" do ([tools, 2026-07-28](https://modelcontextprotocol.io/specification/2026-07-28/server/tools)), and the [Streamable HTTP transport](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http) never mentions `429` or `Retry-After`. So each server picks its own refusal, and an agent has to guess when to try again. This post collects the HTTP standards, what large APIs do, and the rules for a refusal an agent can follow.

## The HTTP standards

- **`429 Too Many Requests`** ([RFC 6585](https://www.rfc-editor.org/rfc/rfc6585)): "the user has sent too many requests in a given amount of time". The response "MAY include a Retry-After header".
- **`Retry-After`** ([RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-retry-after)): "either an HTTP-date or a number of seconds to delay after receiving the response."
- **`RateLimit` and `RateLimit-Policy`** ([draft-ietf-httpapi-ratelimit-headers-12](https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/), updated November 20, 2026): headers that advertise the quota and what is left of it before the client hits it. Still an Internet-Draft, not an RFC.

## What large APIs do

| API | Status | Retry hint | Guidance |
| --- | --- | --- | --- |
| [Claude API](https://platform.claude.com/docs/en/api/rate-limits) | `429` | `retry-after` in seconds, "Not every 429 carries it" | "wait that many seconds before retrying" |
| [OpenAI API](https://developers.openai.com/api/docs/guides/rate-limits) | `429` | `Retry-After`, "when present" | Wait at least that long, "add a small random delay"; without it, back off |
| [GitHub REST API](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api) | `403` or `429` | `x-ratelimit-reset` when `x-ratelimit-remaining` is `0`; `retry-after`, when present, for secondary limits | Honor `retry-after` when present; wait until `x-ratelimit-reset` when remaining is `0`; when neither applies, "wait for at least one minute", then back off exponentially |

Two warnings sit in the same pages. OpenAI: "unsuccessful requests contribute to your per-minute limit, so continuously resending a request won't work." And GitHub returns `403` for some rate limits, so the status alone doesn't say what happened; the body and headers do.

## Where an MCP server refuses

An MCP call can be refused at two layers, and the client sees them differently:

- **Transport.** The HTTP `POST` carrying the JSON-RPC message is refused with `429`, before any method runs. The MCP client sees an HTTP error, and whether it retries depends on the client.
- **Tool call.** The request arrives, and the server refuses the `tools/call` inside a normal `200` response, as a JSON-RPC error or an `isError` result. The model sees it, if the client passes it on; we cover that split in [MCP error handling](/blog/mcp-error-handling-iserror).

A transport refusal protects the server. A tool-call refusal is something the agent can read and act on, so it needs the retry delay in the body, not only in a header the model never sees.

## Rules for a refusal an agent can follow

For the server:

- **Send `Retry-After` in seconds** on every `429`, and repeat the delay in the body for clients that only show the body to the model.
- **Say which limit.** "Too many requests" and "too many calls in progress" need different responses: one waits, the other runs fewer calls in parallel.
- **Don't use `429` for limits that waiting won't fix**, such as a spent budget. Give those their own error.

For the agent:

- **Wait at least `Retry-After`**, reading it as seconds or as an HTTP date, and add a small random delay when several workers share a quota.
- **Without a hint, back off exponentially**, starting at a second or more.
- **Retry only the refused call.** A timeout or lost response doesn't tell you whether a write ran; that needs an [idempotency key](/blog/idempotency-keys-agent-tool-retries).

## How CrabTalk rate limits MCP calls

REST and MCP tool calls on CrabTalk share one quota per account, so switching transport doesn't add allowance and neither does another key. See [Request limits](/docs/reference/request-limits) for the rates.

At the HTTP layer, a request refused by Cloud's admission limits gets `429`, `Retry-After` in seconds and a code that says which limit:

```http
HTTP/1.1 429 Too Many Requests
Retry-After: 2

{"error":{"code":"rate_limited","message":"request rate exceeded"}}
```

`rate_limited` means slow down; `concurrency_limited` means too many calls are in flight. An MCP tool call refused for either gets a JSON-RPC error with the same code and `retry_after` in `error.data`, so the delay reaches the MCP client with the refusal, and the client decides what the model sees. Limits enforced where a service runs, and on OAuth endpoints, use the shapes documented in [Request limits](/docs/reference/request-limits#handling-a-refusal). A spent budget or a missing grant is never a `429`: it is its own refusal, with the link a person opens to fix it.
