MCP rate limits: 429 Too Many Requests, Retry-After and how agents should retry
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.
CrabTalk Team
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), and the Streamable HTTP transport 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): "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): "either an HTTP-date or a number of seconds to delay after receiving the response."RateLimitandRateLimit-Policy(draft-ietf-httpapi-ratelimit-headers-12, 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 | 429 |
retry-after in seconds, "Not every 429 carries it" |
"wait that many seconds before retrying" |
| OpenAI API | 429 |
Retry-After, "when present" |
Wait at least that long, "add a small random delay"; without it, back off |
| GitHub 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
POSTcarrying the JSON-RPC message is refused with429, 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/callinside a normal200response, as a JSON-RPC error or anisErrorresult. The model sees it, if the client passes it on; we cover that split in MCP error handling.
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-Afterin seconds on every429, 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
429for 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.
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 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/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. 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.