Fleet-wide shared rate limiter for A2A + multi-MCP deployments. Most MCP servers rate-limit independently — a hostile agent hitting 10 MCPs gets 10x quota. This MCP is the shared counter: every MCP checks here before allowing a call. Sliding window + concurrency grants + signed enforcement attestations. By MEOK AI Labs.
Project description
Overview
Agent Rate Limiter MCP provides AI-powered tools via the Model Context Protocol (MCP).
Tools
| Tool | Description |
|---|---|
acquire |
Request a rate-limit slot for an agent action. |
release |
Release a rate-limit slot. Doesn't refund tokens in the sliding window (those |
status |
Inspect usage. If agent_id is empty, returns tenant-wide summary. |
set_quota |
Override the default quota for a (tenant, agent, operation) tuple. Pro+ only. |
reset_counters |
Clear counters for a tenant (or a specific agent within a tenant). Pro+ only. |
sign_rate_limit_attestation |
Emit a cryptographically signed attestation of rate-limit enforcement over a |
Installation
pip install meok-agent-rate-limiter-mcp
Usage with Claude Desktop
Add to your Claude Desktop MCP config (claude_desktop_config.json):
{
"mcpServers": {
"agent-rate-limiter-mcp": {
"command": "python",
"args": ["-m", "meok_agent_rate_limiter_mcp.server"]
}
}
}
Usage with FastMCP
from mcp.server.fastmcp import FastMCP
# This server exposes 6 tool(s) via MCP
# See server.py for full implementation
License
MIT © MEOK AI Labs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_rate_limiter_mcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: agent_rate_limiter_mcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
852610c0b5406caec88da169dd9c6082166b097d9c912ecabfd42ccad8ad1704
|
|
| MD5 |
3ce925c5ab38497a241c2781ef1182e3
|
|
| BLAKE2b-256 |
b820514e5a9c9acdef78457bd6b85c7accffaf404f4fd215e26dc2f7a57ea69b
|