mcp-backpressure
JSON →Backpressure and concurrency control middleware for FastMCP. Prevents server overload from LLM tool-call storms with configurable limits and JSON-RPC errors.
Install
pip install mcp-backpressure Tools · 3
- BackpressureMiddleware Middleware that limits concurrent executions, queues excess requests with timeout, and returns structured JSON-RPC overload errors.
- get_metrics Get real-time metrics from the middleware synchronously.
- get_metrics_async Get real-time metrics from the middleware asynchronously.