Skip to main content
Glama

webfetch

Fetch web content from URLs and convert HTML to Markdown with built-in security features including ECH encryption, DoH DNS, and SSRF protection.

Instructions

Fetch content from a URL and return it as text. HTML pages are automatically converted to Markdown for readability. Features: ECH (Encrypted Client Hello) and DoH (DNS over HTTPS) enabled by default. Supports HTTP and SOCKS5 proxies. SSRF protection blocks private/internal IPs. Default User-Agent mimics Chrome browser. Custom headers supported. For downloading binary files, use the download tool instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to fetch content from (http/https),required
headersNoCustom HTTP headers (e.g. User-Agent, Accept, Authorization, Referer)
max_lengthNoMaximum response length in characters. Default: 100000
timeout_secNoRequest timeout in seconds. Default: 30, Max: 120
proxy_urlNoHTTP or SOCKS5 proxy URL (e.g. http://proxy:8080, socks5://proxy:1080)
no_dohNoDisable DNS over HTTPS. Default: false (DoH enabled)
no_echNoDisable Encrypted Client Hello. Default: false (ECH enabled)
rawNoReturn raw HTML without Markdown conversion. Default: false

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/knewstimek/agent-tool'

If you have feedback or need assistance with the MCP directory API, please join our Discord server