fetch_url
Retrieve public HTTP/HTTPS URLs to return status, headers, and body while blocking local and private network addresses to prevent SSRF.
Instructions
Fetch a public HTTP/HTTPS URL and return its status, headers, and body.
Blocks requests to localhost, loopback, link-local, and private IP ranges to prevent SSRF (unless MCP_ALLOW_PRIVATE_NETWORK=true). Response bodies are capped at MCP_MAX_RESPONSE_SIZE bytes.
Args: url: The http:// or https:// URL to fetch. timeout: Optional per-request timeout in seconds (defaults to MCP_HTTP_TIMEOUT).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| timeout | No |