WebFetch Enhanced

v0.1.5Search & Data Extractionstable

Drop-in MCP replacement for the built-in WebFetch tool. Adds domain-scoped custom HTTP headers via YAML config, with bot-block detection, HTML-to-text extraction, retries, proxies, and prompt-injection sanitization.

ai-dataai-toolsapi-freecontent-extractiondata-fetching
Share:
27
Stars
0
Downloads
0
Weekly
0/5

What is WebFetch Enhanced?

WebFetch Enhanced is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to drop-in mcp replacement for the built-in webfetch tool. adds domain-scoped custom http headers via yaml config, with bot-block detection, html-to-text extraction, retries, proxies, and prompt-injectio...

Drop-in MCP replacement for the built-in WebFetch tool. Adds domain-scoped custom HTTP headers via YAML config, with bot-block detection, HTML-to-text extraction, retries, proxies, and prompt-injection sanitization.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Drop-in MCP replacement for the built-in WebFetch tool. Adds

Use Cases

Custom HTTP headers
Bot-block detection
HTML to text extraction
ashlrai

Maintainer

LicenseMIT License
Languagejavascript
Versionv0.1.5
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y getwebfetch-mcp

Manual Installation

npx -y getwebfetch-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use WebFetch Enhanced

getwebfetch-mcp is an enhanced drop-in MCP replacement for the built-in WebFetch tool that adds domain-scoped custom HTTP headers via YAML configuration, making it possible to bypass bot-blocking on protected sites. It ships with HTML-to-text extraction, automatic retries, proxy support, and prompt-injection sanitization to keep AI agents safe from malicious page content. Developers and power users connect it to Claude Desktop or any MCP-compatible client when the default fetch tool fails on sites that require special headers or authentication cookies.

Prerequisites

  • Node.js 18 or later installed
  • An MCP-compatible client such as Claude Desktop or Claude Code
  • npx available on your PATH (comes with Node.js)
  • Optional: a YAML headers config file for domain-scoped header injection
1

Install the package

Run the server directly with npx — no global install is required. The -y flag accepts the install prompt automatically.

npx -y getwebfetch-mcp
2

Locate your Claude Desktop config file

Open claude_desktop_config.json in your Claude Desktop application data directory. On macOS this is ~/Library/Application Support/Claude/claude_desktop_config.json.

3

Add the server to your MCP config

Add getwebfetch-mcp as an MCP server entry. The server launches via npx and needs no additional environment variables for basic operation.

{
  "mcpServers": {
    "webfetch": {
      "command": "npx",
      "args": ["-y", "getwebfetch-mcp"]
    }
  }
}
4

Create a headers config file (optional)

To inject custom headers for specific domains (e.g. auth cookies or User-Agent overrides), create a YAML file with per-domain header rules and pass its path to the server.

# headers.yaml example
example.com:
  Cookie: "session=abc123"
  User-Agent: "Mozilla/5.0 (compatible)"
api.example.com:
  Authorization: "Bearer YOUR_TOKEN"
5

Restart Claude Desktop and test

Restart Claude Desktop so it picks up the new MCP server. Ask Claude to fetch a URL that previously failed with the built-in WebFetch tool.

WebFetch Enhanced Examples

Client configuration

Minimal Claude Desktop configuration for getwebfetch-mcp.

{
  "mcpServers": {
    "webfetch": {
      "command": "npx",
      "args": ["-y", "getwebfetch-mcp"]
    }
  }
}

Prompts to try

Example prompts that leverage the enhanced fetch capabilities.

- "Fetch the content from https://example.com/protected-page and summarize it"
- "Retrieve this behind-a-paywall article and extract the key points"
- "Fetch https://api.example.com/data and parse the JSON response"

Troubleshooting WebFetch Enhanced

Bot-block or CAPTCHA pages returned instead of real content

Create a YAML headers config file with a realistic User-Agent and any session cookies for that domain, then pass the config path to the server in the args array.

Server not appearing in Claude Desktop after config change

Fully quit and relaunch Claude Desktop (not just close the window). Verify the JSON in claude_desktop_config.json is valid — trailing commas or missing brackets will silently prevent the server from loading.

npx command not found or takes too long on first run

Ensure Node.js 18+ is installed and npx is on your PATH. On first run npx downloads the package, which may take a moment — subsequent runs use the cache.

Frequently Asked Questions about WebFetch Enhanced

What is WebFetch Enhanced?

WebFetch Enhanced is a Model Context Protocol (MCP) server that drop-in mcp replacement for the built-in webfetch tool. adds domain-scoped custom http headers via yaml config, with bot-block detection, html-to-text extraction, retries, proxies, and prompt-injection sanitization. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install WebFetch Enhanced?

Install via npm with the command: npx -y getwebfetch-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with WebFetch Enhanced?

WebFetch Enhanced works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is WebFetch Enhanced free to use?

Yes, WebFetch Enhanced is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "webfetch": { "command": "npx", "args": ["-y", "getwebfetch-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use WebFetch Enhanced?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides