Skip to main content

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

Agent Rate Limiter MCP

MCP server for agent rate limiter mcp operations

PyPI License: MIT MEOK AI Labs

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_rate_limiter_mcp-1.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file agent_rate_limiter_mcp-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_rate_limiter_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 852610c0b5406caec88da169dd9c6082166b097d9c912ecabfd42ccad8ad1704
MD5 3ce925c5ab38497a241c2781ef1182e3
BLAKE2b-256 b820514e5a9c9acdef78457bd6b85c7accffaf404f4fd215e26dc2f7a57ea69b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page