MCP Web Search Pro
An extended, self-hosted web research server for MCP-compatible clients that provides tools for web search, page fetching, JavaScript rendering, Internet Archive snapshots, and YouTube transcripts.
README
MCP Web Search Pro
An extended, self-hosted web research server for MCP-compatible clients. It gives an AI assistant tools for discovering web pages, extracting readable content, rendering JavaScript applications, using the Internet Archive when a page is unavailable, and reading YouTube captions.
The service is designed for local or trusted-network use. It is stateless,
requires no API keys, and exposes the MCP Streamable HTTP transport on port
8082. It can run beside a lighter web-search MCP server on another port.
Runs as a separate container on port 8082 alongside the lightweight
mcp-web-search (port 8081). Point clients at whichever fits the task — if pro
ever feels sluggish, the lightweight one is still right there untouched.
Features
- Web search through DuckDuckGo, with result limits and region selection.
- Readable HTML extraction to Markdown with navigation and boilerplate removed.
- Automatic PDF detection and text extraction.
- Headless Chromium rendering for React, Vue, SPA, and other JS-heavy pages.
- Wayback Machine snapshots for unavailable or changed pages.
- YouTube transcripts from URLs or video IDs, with optional timestamps.
/healthendpoint for container and process checks.- Stateless Streamable HTTP and stdio MCP transports.
MCP tools
| Tool | Description |
|---|---|
web_search |
Search the web via DuckDuckGo (ddgs). Args: query (required), max_results (1–20), region. |
web_fetch |
Fetch a URL → Markdown. Auto-detects PDFs and extracts text. Uses trafilatura for clean article extraction (strips nav/ads/boilerplate). Args: url, timeout. |
web_fetch_js |
Render a JS-heavy / SPA page with headless Chromium, then extract text. Use when web_fetch returns an empty/stub page. Slower (~5–15s). Args: url, wait_ms (0–15000, default 2500), timeout. |
web_fetch_archive |
Fetch the latest (or timestamped) archived snapshot of a URL from the Wayback Machine. Retries on transient 503s. Args: url, timestamp (optional YYYYMMDDhhmm). |
youtube_transcript |
Fetch a YouTube video's transcript. Accepts a full YouTube URL or bare 11-char video id. Args: url, include_timestamps (bool, default false). |
Use web_fetch for ordinary pages because it is faster. Use web_fetch_js
when the first tool returns an empty shell or incomplete content because the
site depends on client-side JavaScript.
Run with Docker
docker compose up -d --build
Verify:
curl http://localhost:8082/health # → {"status":"ok"}
Logs / restart / stop:
docker compose logs -f
docker compose restart
docker compose down
The first build is large (~400MB) because it downloads Chromium for Playwright. Subsequent builds reuse the cached layer.
Connecting clients
Point any MCP-compatible client at:
http://<server-host>:8082/mcp
No headers or API keys are required. The server runs in stateless mode.
Run locally without Docker
Python 3.12 is recommended:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
playwright install --with-deps chromium
python server.py
Run the HTTP transport directly with:
python server.py --sse --host 127.0.0.1 --port 8082
Despite the historical --sse option name, the HTTP implementation uses the
stateless MCP Streamable HTTP transport.
Performance notes
- Only
web_fetch_jsis heavy at runtime — it launches Chromium per call (~5–15s). The other four tools are lightweight pure-Python and stay snappy. shm_size: 1gbindocker-compose.ymlprevents Chromium sandbox crashes inside the container.- For routine non-JS pages, use
web_fetch(fast); reserveweb_fetch_jsfor React/Vue/SPA sites that render content with JavaScript.
Configuration
To change the port, edit both the ports: mapping and the command: in
docker-compose.yml. To enable raw request/response logging for debugging,
switch to the commented --verbose command: line.
Validation
This repository is intended to be pushed as source code and Docker build configuration. There is currently no automated test suite. The recommended project checks are:
git diff --check
docker compose config
docker compose up -d --build
curl http://localhost:8082/health
docker compose logs --tail=100
docker compose down
Do not publish this service directly to the public internet without adding
authentication or placing it behind a trusted reverse proxy. The HTTP mode
binds to 0.0.0.0, permits requests without API keys, and allows all origins;
that is convenient for local MCP clients but is not an access-control layer.
Security and operating notes
web_fetchandweb_fetch_jscan request arbitrary HTTP(S) URLs. Restrict network access or add URL/DNS safeguards if untrusted users can call the service.- Keep
--verbosedisabled outside short local debugging sessions because it logs request and response bodies. - Dependencies use minimum-version constraints. Pin or lock versions before relying on reproducible production builds.
Files
server.py— the MCP server (5 tools)requirements.txt—mcp,httpx,beautifulsoup4,markdownify,ddgs,trafilatura,pypdf,youtube-transcript-api,playwrightDockerfile— Python 3.12-slim + Playwright Chromiumdocker-compose.yml— service on port 8082 withshm_size: 1gb
License
No license file is currently included. Add a license before accepting external contributions or redistributing the project.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。