fast-webfetch-mcp
A high-performance MCP server for web fetching in Claude Code using Firecrawl backend with automatic fallback.
README
Fast WebFetch MCP Server for Claude Code
A high-performance MCP server for web fetching in Claude Code using Firecrawl backend with automatic fallback.
Features
| Tool | Description |
|---|---|
fast_fetch |
Fetch URL, extract content, return markdown |
fast_fetch_raw |
Return raw HTML without processing |
fast_fetch_json |
Fetch and parse JSON endpoints |
fast_fetch_multiple |
Fetch multiple URLs in parallel |
How It Works
- Primary: Uses Firecrawl API for JS rendering and comment extraction
- Fallback: If Firecrawl unavailable, uses direct fetch + Mozilla Readability
- AI Summary: Optional summarization via local LLM API
URL -> Try Firecrawl -> Success? -> AI Summary (optional) -> Result
|
v (failed/unavailable)
Direct Fetch + Readability -> AI Summary (optional) -> Result
fast_fetch Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | The URL to fetch |
prompt |
string | - | AI summarization prompt |
max_length |
number | 100000 | Maximum content length (chars) |
include_links |
boolean | true | Include hyperlinks in output |
no_summarize |
boolean | false | Skip AI summarization even with prompt |
Quick Install
Using Claude CLI (Recommended)
# Clone the repo
git clone https://github.com/nikketryhard/fast-webfetch-mcp.git ~/fast-webfetch-mcp
# Install dependencies
cd ~/fast-webfetch-mcp && bun install
# Add MCP server with environment variables
claude mcp add fast-webfetch \
-e FIRECRAWL_API_URL=http://localhost:3002 \
-e FAST_WEBFETCH_API_URL=http://127.0.0.1:8045/v1 \
-e FAST_WEBFETCH_MODEL=gemini-3-flash \
-e FAST_WEBFETCH_API_KEY=your_api_key_here \
-e FAST_WEBFETCH_USE_RUST=1 \
-e FAST_WEBFETCH_RUST_BIN=/home/YOUR_USERNAME/fast-webfetch-mcp/rust/target/release/fast-webfetch-mcp-rs \
-- bun run ~/fast-webfetch-mcp/src/index.ts
# Or minimal (uses defaults)
claude mcp add fast-webfetch -- bun run ~/fast-webfetch-mcp/src/index.ts
Manual Installation
# Clone the repo
git clone https://github.com/nikketryhard/fast-webfetch-mcp.git ~/fast-webfetch-mcp
# Install dependencies
cd ~/fast-webfetch-mcp && bun install
Then add to ~/.claude.json:
{
"mcpServers": {
"fast-webfetch": {
"command": "bun",
"args": ["run", "/home/YOUR_USERNAME/fast-webfetch-mcp/src/index.ts"],
"env": {
"FIRECRAWL_API_URL": "http://localhost:3002",
"FAST_WEBFETCH_API_URL": "http://127.0.0.1:8045/v1",
"FAST_WEBFETCH_MODEL": "gemini-3-flash",
"FAST_WEBFETCH_API_KEY": "your_api_key_here",
"FAST_WEBFETCH_USE_RUST": "1",
"FAST_WEBFETCH_RUST_BIN": "/home/YOUR_USERNAME/fast-webfetch-mcp/rust/target/release/fast-webfetch-mcp-rs"
}
}
}
}
Environment Variables
| Variable | Default | Description |
|---|---|---|
FIRECRAWL_API_URL |
http://localhost:3002 |
Firecrawl API endpoint |
FAST_WEBFETCH_API_URL |
http://127.0.0.1:8045/v1 |
OpenAI-compatible API for summaries |
FAST_WEBFETCH_MODEL |
gemini-3-flash |
Model name for summarization |
FAST_WEBFETCH_API_KEY |
(empty) | API key for summarization endpoint |
FAST_WEBFETCH_USE_RUST |
0 |
Enable Rust backend worker path |
FAST_WEBFETCH_RUST_BIN |
(empty) | Absolute path to Rust binary |
Firecrawl Setup (Optional but Recommended)
For best results (JS rendering, comments extraction), run Firecrawl locally:
# Using Docker
docker run -p 3002:3002 mendableai/firecrawl
# Or use the official Firecrawl MCP
claude mcp add firecrawl-mcp -e FIRECRAWL_API_URL=http://localhost:3002 -- npx -y firecrawl-mcp
Without Firecrawl, the server falls back to direct fetch + Readability (no JS rendering).
Comparison with Native WebFetch
| Feature | Native WebFetch | Fast WebFetch |
|---|---|---|
| Reddit/Twitter | Blocked (403) | Works |
| User agent | Claude-User (blocked) | Real browser UA |
| JS rendering | No | Yes (with Firecrawl) |
| Comments | No | Yes (with Firecrawl) |
| Content | Haiku-summarized | Full markdown |
| AI summary | Haiku 3.5 | Configurable model |
| Max length | 100KB | Configurable |
| Raw HTML | No | Yes |
| JSON fetch | No | Yes |
| Parallel fetch | No | Yes |
| Fallback | None | Direct fetch |
Requirements
- Bun runtime
- Claude Code 2.0+
- (Optional) Firecrawl for JS rendering
- (Optional) OpenAI-compatible API for summarization
License
MIT
Contributing
PRs welcome! Please open an issue first to discuss changes.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。