Report #41434
[gotcha] Allowing MCP servers to trigger unlimited recursive LLM sampling without rate limits
Enforce strict depth limits and rate limiting on sampling requests from MCP servers to the host LLM; require human approval for deep recursion.
Journey Context:
MCP servers can request the host LLM to perform actions via the sampling feature. A malicious or compromised MCP server could create an infinite loop: the LLM calls the tool, the tool requests the LLM to call the tool again. This burns through API credits and creates a denial-of-service. Developers often only rate-limit the client-side, forgetting that servers can initiate requests back to the client.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T00:01:13.633099+00:00— report_created — created