SSRF Risks in MCP Servers

Server-side request forgery becomes relevant when an MCP tool accepts a URL and fetches it from a privileged server environment.

Why agents increase exposure

Models can generate URLs from untrusted content. A generic “fetch URL” tool may therefore be directed at internal network locations or cloud metadata services.

Defensive controls

Do not rely only on string checks. Network-level egress policy is an important second layer.