Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs: document MCP_RATE_LIMIT_MAX and MCP_RATE_LIMIT_WINDOW_MS env vars in README

Yudhi Armyndharis070d3065fb85
diff --git a/README.md b/README.md
index 493628a1a..bec79091e 100644
--- a/README.md
+++ b/README.md
@@ -306,6 +306,8 @@ The key can be passed as `Authorization: Bearer …` or `X-API-Key: …`. Every
- **Mint a dedicated, least-privilege key** for the agent — a non-admin, **session-scoped** key (`OPERATOR` role at most). The plaintext key is shown only once on creation; to rotate, create a new key and delete the old one.
- The key **must not** carry an IP allow-list (`allowedIps`) — there is no genuine client IP over MCP, so such a key is rejected.
- Set **`MCP_READONLY=true`** to mount only the read tools (no sends/writes).
+- Set **`MCP_RATE_LIMIT_MAX`** (default `60`) to limit tool calls per API key per window.
+- Set **`MCP_RATE_LIMIT_WINDOW_MS`** (default `60000`) to control the sliding window size in milliseconds.
- **Do not expose `/mcp` to the public internet** without a fronting auth proxy. For a self-hosted, locally-reached deployment the static API key is appropriate; public exposure should use OAuth 2.1 (not yet built).
---