Repository navigation
MCP rate limits - #6911
Merged
Merged
MCP rate limits#6911
Conversation
RobertJoonas
marked this pull request as draft
November 23, 2026 12:57
vinibrsl
reviewed
Nov 23, 2026
vinibrsl
left a comment
Member
There was a problem hiding this comment.
Feedback from our call:
- To simplify things, we can apply the hourly rate limit to
tools/callonly. It should respond with HTTP 200 +isError: true. - Burst rate limit still applies to every other call, and responds with HTTP 429.
RobertJoonas
force-pushed
the
mcp-rate-limits
branch
from
November 25, 2026 12:04
326465c to
8b77933
Compare
RobertJoonas
marked this pull request as ready for review
November 25, 2026 12:04
RobertJoonas
commented
Nov 25, 2026
| end | ||
|
|
||
| # A tool error lets the model tell the user why the call failed. | ||
| defp check_tool_call_rate_limit(%Plug.Conn{halted: true} = conn, _id), do: conn |
Contributor
Author
There was a problem hiding this comment.
I think this function and check_burst_limit should move into the new MCP.RateLimit module too, but for that we'd need to extract the success_response and text_content utilites out of the controller. A new MCP.Messages module perhaps. Can be tackled as a follow-up.
4 tasks done
RobertJoonas
force-pushed
the
mcp-rate-limits
branch
from
November 25, 2026 16:28
8b77933 to
cc99506
Compare
vinibrsl
reviewed
Nov 25, 2026
vinibrsl
reviewed
Nov 25, 2026
vinibrsl
approved these changes
Nov 25, 2026
4 tasks done
nepalisagun
pushed a commit
to nepalisagun/Plausible-analytics
that referenced
this pull request
Nov 25, 2026
The upgrade page now lists the MCP rate limits added in plausible#6911. Plans with the Stats API feature show "600 API/MCP calls/hr" in place of "Stats API (600 requests per hour)". Plans without it show "AI integration (300 MCP calls/hr)" on the lowest tier. Enterprise shows "600+ API/MCP calls/hr".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Implements proper rate limiting on MCP requests
tools/callrequests spend the hourly budget, burst limit is checked for every authenticated requesttools/callhits a rate limit (either burst or hourly), we respond with a tool error (HTTP 200,isError: true)POST /mcprequests that hit a burst limit get a plain HTTP 429 with{error: "too_many_requests"}.Tests
Changelog
Documentation
Dark mode