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 Distribution

agent_rate_limiter_mcp-1.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

agent_rate_limiter_mcp-1.0.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file agent_rate_limiter_mcp-1.0.2.tar.gz.

File metadata

  • Download URL: agent_rate_limiter_mcp-1.0.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for agent_rate_limiter_mcp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 59a144c355cf2a15cf990de1e0084e7366862638b5c32bd9d746a3ba17a4a6c4
MD5 e0a83245cc969a5aabb116ef164d7ec7
BLAKE2b-256 ddc35cd68816e71a31a0452efa7508efacb373122faf5b09179540683cecfc94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_rate_limiter_mcp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 569e06b3482f540455434751924cbdd5764244e4627d40223ab0a0461a0d7fe2
MD5 9aa260cde8baab93d6dad906ce122e03
BLAKE2b-256 750efb1ee50f6662f94dd82cc97a2e5631dec913e82163924b3874a62c1af10b

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