Rate limits
QueryDeck API and MCP rate limits, the X-RateLimit headers, and how to handle 429 responses.
| Surface | Limit | Counted per |
|---|---|---|
| REST API | 120 requests / minute | API key |
| MCP | 120 messages / minute | Connection |
Limits use fixed one-minute windows. Every REST response carries the current state:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed in the window |
X-RateLimit-Remaining | Requests left in the window |
X-RateLimit-Reset | When the window resets, in Unix seconds |
When the window is spent, the API answers 429 Too Many Requests with a
Retry-After header in seconds. Wait that long before trying again. The
SDK does this for you.