MCP Server for Stealth Web Search and Fetching
A fault-tolerant, stealth-enabled Model Context Protocol (MCP) server for web searching and content fetching. Built for AI Agents (Cursor, Claude Code, OpenCode), it uses a stealth browser engine to fetch pages, dynamically handles SPAs/React, and converts bloat into token-optimized Markdown.
README
SearchFetch (MCP Server)
A fault-tolerant, stealth-enabled Model Context Protocol (MCP) server for web searching and content fetching. Built for AI Agents (Cursor, Claude Code, OpenCode), it uses a stealth browser engine to fetch pages, dynamically handles SPAs/React, and converts bloat into token-optimized Markdown.
Features
- Stealth Engine: Powered by CloakBrowser C++ patches +
humanizelogic. The browser renders and moves like a real user, reducing bot-detection scores. - Fault Tolerance: Auto-healing browser sessions, grace-period timeouts for SPAs, and network-level blocking of tracking scripts and media.
- Token-Optimized Output: Strips base64 images, SVGs, scripts, and inline styles from the DOM before Markdown conversion.
- Dual Runtime: Natively supports zero-install execution via both Python (
uvx) and Node.js (npx). - Template-Driven Extraction: Structured extraction via shared JSON templates (GitHub, npm, PyPI, crates.io, docs pages, Docker Hub, and more). Supports custom inline templates.
Usage & Installation
You do not need to install this repository manually. Configure your agent to use the zero-install commands npx or uvx.
Claude Desktop Configuration
Option A: Python (uvx - Recommended)
{
"mcpServers": {
"searchfetch": {
"command": "uvx",
"args": ["searchfetch"]
}
}
}
Option B: Node.js (npx)
{
"mcpServers": {
"searchfetch": {
"command": "npx",
"args": ["-y", "searchfetch"]
}
}
}
Cursor / IDE Configuration
Add via the MCP panel in Cursor settings:
- Type:
command - Command:
uvx searchfetch(ornpx -y searchfetch)
Available Tools
1. websearch
Search the web through the template pipeline. DuckDuckGo and Google are built-in; custom search templates can be selected by name.
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
string | required | The search query string. |
engine |
string | "duckduckgo" |
"duckduckgo", "google", or a custom search template name. |
max_results |
number | 10 |
Maximum number of results to return. |
region |
string/null | null |
Region/language code (e.g. "us-en", "de-de"). DDG maps directly; Google maps to gl/hl. |
safe_search |
boolean/null | null |
Enable safe search. null uses the template default. |
block_media |
boolean | true |
Block images, media, and fonts at the network layer. |
2. webfetch
Fetch a page with the stealth browser and extract structured Markdown using a template. Falls back to generic Markdown extraction for unknown pages.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | Full URL (must start with http/https). |
template |
string | "auto" |
"auto", a built-in name, or inline JSON template. |
start_index |
number | 0 |
Character offset for pagination. |
max_length |
number | 10000 |
Maximum characters per request. |
block_media |
boolean | true |
Block images, videos, and fonts at the network layer. |
Template extraction supports text, markdown, attribute, and html formats; nested children; repeated sections; URL-decoding transforms; per-template cookies; and per-template resource blocking.
Built-in templates live in templates/*.json and are shared by the Node.js and Python implementations.
Available page templates (auto-detected by URL or selectable by name):
wikipedia, reddit, mdn-web-docs, gitlab, youtube, devto, go-pkg, javadoc,
github-repo, github-issue, npm-package, pypi-package, crates-package,
docker-hub, docs-rs, docs-page
raw — special template that applies minimal filtering and returns full body content as markdown. Use when you need the complete page without template-specific extraction.
Local Development
# Install dependencies
npm install
pip install -e ".[dev]"
# Run tests
npm test # runs all tests (JS + Python)
npm run test:js # Node.js unit tests (built-in test runner)
npm run test:py # Python unit tests (pytest)
# Lint
npm run lint # runs all linters
npm run lint:js # ESLint
npm run lint:py # Ruff
# Format
npm run format # auto-format all source files
npm run format:check # check formatting without changes
# MCP inspector (for manual testing)
npm run inspector-js # test with MCP Inspector (Node.js)
npm run inspector-py # test with MCP Inspector (Python)
Architecture
This repository uses a flat dual-manifest structure (package.json and pyproject.toml in the root). Both runtimes (index.js for Node, server.py for Python) share the same templates/*.json files and maintain feature parity.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。