Overview
What is XFetch Mcp?
XFetch Mcp is an enhanced Model Context Protocol server for web content fetching, enabling LLMs to retrieve and process content from web pages, including those protected by Cloudflare and other security systems that regular fetch cannot handle.
How to use XFetch Mcp?
Install via pip install mcp-server-xfetch or run with uvx mcp-server-xfetch. Configure it for Claude.app by adding a JSON entry to your MCP settings. Set an API token via the XFETCH_API_TOKEN environment variable or command line argument. Use tools like xfetch with parameters such as url, render, selector, and start_index.
Key features of XFetch Mcp
- Bypass Cloudflare and other protection systems
- JavaScript rendering for dynamic websites
- CSS selector–based content extraction
- Dynamic content loading with configurable timeout
- Automatic HTML-to-markdown conversion
- Chunked reading of long pages via start_index
Use cases of XFetch Mcp
- Fetching content from JavaScript-heavy or protected websites
- Extracting specific page sections (e.g., main article) using CSS selectors
- Reading long articles in parts by continuing from a previous character index
- Providing LLMs with clean markdown from any URL
- Testing and evaluating web content integration in MCP clients
FAQ from XFetch Mcp
What is XFetch Mcp?
It is an MCP server that enhances web content fetching for LLMs, supporting Cloudflare bypass, JavaScript rendering, and CSS selector extraction.
How do I install and configure XFetch Mcp?
Install with pip install mcp-server-xfetch or use uvx mcp-server-xfetch. For Claude.app, add {"mcpServers": {"xfetch": {"command": "uvx", "args": ["mcp-server-xfetch"]}}} to your settings.
Do I need an API token?
The free tier includes a default token with rate limits. For commercial or production use, obtain a dedicated token at xfetch.ai and set it via the XFETCH_API_TOKEN environment variable or --api-token argument.
How do I fetch content that requires JavaScript?
Set the render parameter to true and optionally adjust the timeout (1–10 seconds) to wait for dynamic content to load.
What are the available tools?
The server provides one tool, xfetch, with parameters: url (required), max_length, start_index, raw, render, selector, and timeout.