xfetch-mcp

xfetch-mcp

3.5

Enhanced Model Context Protocol server for web content fetching, enabling LLMs to retrieve and process content from any web pages, including those protected by Cloudflare.

XFetch MCP Server is a powerful tool designed to enhance the capabilities of LLMs by allowing them to fetch and process web content from a variety of sources, including those protected by security systems like Cloudflare. It supports JavaScript rendering for dynamic websites, CSS selectors for precise content extraction, and markdown conversion for easier consumption by LLMs. The server also offers features like dynamic content loading and chunked reading for handling long pages efficiently. XFetch is suitable for both personal and commercial use, with a free tier available for testing and evaluation.

Features

  • Bypass Protection Systems: Access content from websites protected by Cloudflare and other security systems.
  • JavaScript Rendering: Fetch content from dynamic websites that require JavaScript execution.
  • CSS Selectors: Extract specific content from web pages using CSS selectors.
  • Dynamic Content Loading: Wait for dynamic content to load before fetching.
  • Markdown Conversion: Automatically converts HTML to markdown for easier LLM consumption.

MCP Tools

  • xfetch: Enhanced web content fetching tool with advanced capabilities.

Usage with Different Platforms

pip

pip install mcp-server-xfetch

uv

uvx mcp-server-xfetch

claude_uvx

{
  "mcpServers": {
    "xfetch": {
      "command": "uvx",
      "args": ["mcp-server-xfetch"]
    }
  }
}

claude_pip

{
  "mcpServers": {
    "xfetch": {
      "command": "python",
      "args": ["-m", "mcp_server_xfetch"]
    }
  }
}

api_token_env

export XFETCH_API_TOKEN=your_token_here

api_token_cmd

python -m mcp_server_xfetch --api-token=your_token_here