Basic information
About Webfetch Mcp Server
# webfetch-mcp
Webfetch Mcp is a MCP server in the Other category listed in the AddMCP.net directory, published by simonediroma. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 2 GitHub stars. Source code is hosted on github.com. Related topics: anthropic, claude, cursor, custom-http-header, http-client.
Setup
{
"mcpServers": {
"webfetch": {
"command": "/absolute/path/to/.venv/bin/python",
"args": [
"/absolute/path/to/server.py"
],
"env": {
"WEBFETCH_CONFIG": "/absolute/path/to/webfetch.yaml"
}
}
}
}
{
"mcpServers": {
"webfetch": {
"command": "/absolute/path/to/.venv/bin/python",
"args": [
"/absolute/path/to/server.py"
],
"env": {
"WEBFETCH_CONFIG": "/absolute/path/to/webfetch.yaml"
}
}
}
}
{
"servers": {
"webfetch": {
"command": "/absolute/path/to/.venv/bin/python",
"args": [
"/absolute/path/to/server.py"
],
"env": {
"WEBFETCH_CONFIG": "/absolute/path/to/webfetch.yaml"
}
}
}
}
Webfetch Mcp config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"webfetch": {
"command": "/absolute/path/to/.venv/bin/python",
"args": [
"/absolute/path/to/server.py"
],
"env": {
"WEBFETCH_CONFIG": "/absolute/path/to/webfetch.yaml"
}
}
}
}
Webfetch Mcp tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Webfetch Mcp?
webfetch-mcp is a local Python MCP server that replaces an AI assistant’s built-in WebFetch tool with a fully configurable HTTP client. It supports domain-scoped headers, retries, proxies, timeouts, output formats, bot-block detection, and prompt-injection sanitization.
How to use Webfetch Mcp?
Clone the repository, create a Python 3.10+ virtual environment, install dependencies from requirements.txt, copy and edit the YAML configuration file (webfetch.yaml.example → webfetch.yaml), then register the server’s command, args, and env in your AI assistant’s MCP server settings (e.g., ~/.claude/settings.json). Restart the assistant; the tool is exposed as mcpwebfetchfetch.
Key features of Webfetch Mcp
- Domain-scoped custom headers and auth tokens.
- Configurable YAML config file.
- Retry with exponential backoff on failures.
- Bot-block detection with optional retry.
- Prompt-injection sanitization (flag or strip).
- JavaScript rendering via Playwright (optional).
Use cases of Webfetch Mcp
- Fetching authenticated API content with per-domain tokens.
- Scraping bot-protected websites (Cloudflare, Akamai).
- Extracting main article content with
trafilaturaformat. - Running CI/CD smoke tests using response assertions.
- Rendering JavaScript-heavy SPAs before content extraction.
Frequently asked questions
1 How is webfetch-mcp different from a built-in WebFetch tool?
The built-in tool sends requests without custom headers, so it is blocked by bot-protection systems and cannot authenticate against APIs. webfetch-mcp allows per-domain headers, retries, proxies, and output formatting, all configured automatically.
2 What are the runtime dependencies of webfetch-mcp?
Python 3.10+ and the packages in requirements.txt: mcp[cli], httpx, python-dotenv, markdownify, trafilatura, pyyaml, and beautifulsoup4. JS rendering requires Playwright (playwright install chromium).
3 Where does the fetched data live?
The server fetches data directly and returns it to the AI assistant in the response. No data is stored or persisted by the server itself. Response length can be capped with max_bytes.
4 What transports or authentication does webfetch-mcp support?
It communicates with MCP-compatible assistants over stdio (the command-line invocation). Authentication is handled by domain-scoped headers set in the YAML config file.
5 Are there any known limits of webfetch-mcp?
The README does not document explicit functional limits. It supports response truncation via max_bytes to avoid filling the assistant’s context window.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In