Web Research MCP Server
Stealth Google Search and token-efficient web content extraction with undetected browser automation.
ماذا يمكنك أن تفعل مع Web Research MCP Server؟
- 🎭 100% Undetectable Headed Stealth on Display :99: Built on Patchright (patched driver eliminating
Runtime.enable,--enable-automation, and console leaks). Enforces official Google Chrome in genuine headed mode (headless: false) inside an isolate... - ⚡ Pre-Warmed Persistent Pool (<100ms Tab Acquisition): Browser context is pre-warmed at server boot with a persistent user profile (
launchPersistentContext), retaining DNS, TLS session tickets, V8 bytecode, and consent cookies for 38–50% faster navig... - 🔄 Universal Regex-Free Semantic DOM Unfolding & Auto-Scroll: Handles complex e-commerce, SPA, and XHR-heavy sites (e.g. Tokopedia, Shopee, Reddit). Progressively scrolls, triggers
IntersectionObserverlazy-loads, unfolds collapsed sections using univ... - 📉 Token-Efficient & High-Density Markdown: Strips token-wasting avatar images, promotional widgets, and redundant blank lines. Compiles clean GitHub Flavored Markdown via Unified AST (
linkedom+@mozilla/readability+rehype-remark+remark-gfm). - 🛡️ Zero-Trust SSRF Defense: Rejects loopback (
127.0.0.0/8,::1), RFC 1918 private subnets (10.0.0.0/8,172.16.0.0/12,192.168.0.0/16), link-local metadata (169.254.169.254,metadata.google.internal), and non-HTTP protocols. - 🌍 Universal Cross-Platform Architecture: Runs identically across macOS, Windows, and Linux via Docker with zero host dependencies and zero physical screen interference.
- 🏥 Real Liveness & Readiness Probing: Provides real subsystem health metrics over both MCP STDIO (
healthCheck) and native HTTP REST (GET /healthwith HTTP 200/503 status codes for Kubernetes / Docker).
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
ghcr.io/shukoilab/web-research-mcp:2.4.1claude mcp add web-research-mcp-server -e 'PORT=3000' -e 'HTTP_PROXY=<your http_proxy>' -e 'BROWSER_USER_DATA_DIR=~/.cache/mcp-web-research/chrome-profile' -e 'BROWSER_TIMEOUT_MS=30000' -e 'MAX_CONCURRENT_PAGES=5' -e 'MAX_REQUESTS_BEFORE_RECYCLE=1000' -e 'MAX_CONTENT_LENGTH=5242880' -e 'NETWORK_IDLE_TIMEOUT_MS=5000' -e 'SCROLL_DELAY_MS=500' -e 'SCROLL_STEP_PX=1000' -e 'SCROLL_SETTLE_TIMEOUT_MS=500' -e 'MAX_SCROLL_STEPS=6' -e 'SEARCH_WAIT_TIMEOUT_MS=10000' -e 'READABILITY_CHAR_THRESHOLD=20' -- docker run -i --rm ghcr.io/shukoilab/web-research-mcp:2.4.1
{
"mcpServers": {
"web-research-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/shukoilab/web-research-mcp:2.4.1"
],
"env": {
"PORT": "3000",
"HTTP_PROXY": "<your http_proxy>",
"BROWSER_USER_DATA_DIR": "~/.cache/mcp-web-research/chrome-profile",
"BROWSER_TIMEOUT_MS": "30000",
"MAX_CONCURRENT_PAGES": "5",
"MAX_REQUESTS_BEFORE_RECYCLE": "1000",
"MAX_CONTENT_LENGTH": "5242880",
"NETWORK_IDLE_TIMEOUT_MS": "5000",
"SCROLL_DELAY_MS": "500",
"SCROLL_STEP_PX": "1000",
"SCROLL_SETTLE_TIMEOUT_MS": "500",
"MAX_SCROLL_STEPS": "6",
"SEARCH_WAIT_TIMEOUT_MS": "10000",
"READABILITY_CHAR_THRESHOLD": "20"
}
}
}
}
متغيرات البيئة
PORTHTTP port for streamable MCP and health check endpoints (default: 3000)HTTP_PROXYسري Optional HTTP/HTTPS proxy URI (e.g. http://user:pass@host:port)BROWSER_USER_DATA_DIRPersistent directory storing Chrome profile, cookies, and cacheBROWSER_TIMEOUT_MSDefault navigation timeout in millisecondsMAX_CONCURRENT_PAGESMaximum simultaneous browser tabs allowed by semaphoreMAX_REQUESTS_BEFORE_RECYCLELifetime requests before background browser restart to prevent RAM fragmentationMAX_CONTENT_LENGTHUpper bound memory guard in bytes against massive HTML payloadsNETWORK_IDLE_TIMEOUT_MSMaximum wait time in ms for initial network stabilization before scrollingSCROLL_DELAY_MSDebounce delay in ms after each scroll and semantic unfolding stepSCROLL_STEP_PXDistance in pixels per scroll incrementSCROLL_SETTLE_TIMEOUT_MSFinal quiet period in ms after scroll loop completesMAX_SCROLL_STEPSMaximum scroll iterations for lazy content hydration and DOM convergenceSEARCH_WAIT_TIMEOUT_MSMaximum wait time in ms for Google SERP cards to render before parsing resultsREADABILITY_CHAR_THRESHOLDMinimum character length for Mozilla Readability article scoring
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
المحتويات
🎭 MCP Web Research Server
Enterprise-Grade, Ultra-Fast, and Production-Ready Web Research Model Context Protocol (MCP) Server.
Engineered for AI coding agents and autonomous workflows requiring high-accuracy Google Search and high-density, token-efficient webpage content extraction with undetectable anti-bot evasion.
🌟 Key Architectural Features
- 🎭 100% Undetectable Headed Stealth on Display :99: Built on Patchright (patched driver eliminating
Runtime.enable,--enable-automation, and console leaks). Enforces official Google Chrome in genuine headed mode (headless: false) inside an isolated X11 virtual framebuffer (:99) adhering strictly to Patchright's official Zero-Injection Best Practice (zero custom args, zero custom user-agent, zero header tampering). Guarantees 100% authentic consumer browser window metrics and extensions state with zero desktop window pop-ups or focus-stealing on the host OS. - ⚡ Pre-Warmed Persistent Pool (<100ms Tab Acquisition): Browser context is pre-warmed at server boot with a persistent user profile (
launchPersistentContext), retaining DNS, TLS session tickets, V8 bytecode, and consent cookies for 38–50% faster navigations. - 🔄 Universal Regex-Free Semantic DOM Unfolding & Auto-Scroll: Handles complex e-commerce, SPA, and XHR-heavy sites (e.g. Tokopedia, Shopee, Reddit). Progressively scrolls, triggers
IntersectionObserverlazy-loads, unfolds collapsed sections using universal W3C WAI-ARIA standards (aria-expanded="false",data-state="closed",aria-controls) and native HTML5<details>disclosures with zero language-locking, unclamps CSS line-clamping, and stops when DOM height converges. - 📉 Token-Efficient & High-Density Markdown: Strips token-wasting avatar images, promotional widgets, and redundant blank lines. Compiles clean GitHub Flavored Markdown via Unified AST (
linkedom+@mozilla/readability+rehype-remark+remark-gfm). - 🛡️ Zero-Trust SSRF Defense: Rejects loopback (
127.0.0.0/8,::1), RFC 1918 private subnets (10.0.0.0/8,172.16.0.0/12,192.168.0.0/16), link-local metadata (169.254.169.254,metadata.google.internal), and non-HTTP protocols. - 🌍 Universal Cross-Platform Architecture: Runs identically across macOS, Windows, and Linux via Docker with zero host dependencies and zero physical screen interference.
- 🏥 Real Liveness & Readiness Probing: Provides real subsystem health metrics over both MCP STDIO (
healthCheck) and native HTTP REST (GET /healthwith HTTP 200/503 status codes for Kubernetes / Docker).
🌍 Universal Cross-Platform Execution
Thanks to hermetic Docker containerization, mcp-web-research runs with 100% feature parity across all operating systems without any host configuration:
| Host Platform | Support Level | Display & Stealth Engine | Window Behavior |
|---|---|---|---|
| macOS (Apple Silicon & Intel) | ✅ Universal | Virtual Framebuffer (:99) + Zero-Injection Stealth | Zero Desktop Pop-ups (Rendered in container) |
| Windows (10 / 11 / Server) | ✅ Universal | Virtual Framebuffer (:99) + Zero-Injection Stealth | Zero Desktop Pop-ups (Rendered in container) |
| Linux (Ubuntu / Debian / RHEL) | ✅ Universal | Virtual Framebuffer (:99) + Zero-Injection Stealth | Zero Desktop Pop-ups (Rendered in container) |
Anti-Bot Invariant: The browser strictly runs in genuine headed mode (
headless: false) inside the virtual framebuffer:99. End users will never see desktop pop-up windows, yet anti-bot inspection systems detect 100% authentic consumer desktop Chrome behavior.
⚙️ 12-Factor Configuration Reference
All settings can be configured via environment variables. Universal defaults are applied automatically if unset:
| Variable | Type | Default | Description |
|---|---|---|---|
HOST | string | 127.0.0.1 | Network interface address to bind HTTP service. Binding to non-loopback requires non-empty MCP_API_KEY. |
PORT | integer | 3000 | HTTP port for streamable MCP and health check endpoints. |
ALLOWED_HOSTS | string | localhost,127.0.0.1 | Comma-separated list or wildcard (*) of allowed Host headers for DNS-rebinding protection. |
ALLOWED_ORIGINS | string | localhost,127.0.0.1 | Comma-separated list or wildcard (*) of allowed Origin headers for CORS security. |
MCP_API_KEY / API_KEY | string | undefined | Secret token(s) for HTTP API protection (comma-separated for key rotation). Mandatory if HOST is non-loopback. Empty value causes fail-fast exit. |
HTTP_PROXY | string | undefined | Optional HTTP/HTTPS proxy URI (e.g. http://user:pass@host:port). |
BROWSER_USER_DATA_DIR | string | ~/.cache/mcp-web-research/chrome-profile | Persistent directory storing Chrome cache, cookies, and session state. |
BROWSER_TIMEOUT_MS | integer | 30000 | Default navigation timeout in milliseconds. |
REQUEST_BUDGET_MS | integer | 60000 | Total time budget for single URL extraction (5000–300000 ms). |
DEEP_RESEARCH_BUDGET_MS | integer | 240000 | Total time budget for multi-source deep research batch (10000–600000 ms). |
PAGE_TIMEOUT_MS | integer | 30000 | Per-page navigation timeout limit (1000–120000 ms). |
MIN_PAGE_BUDGET_MS | integer | 5000 | Minimum remaining budget threshold required before visiting next page (500–60000 ms). |
STABILIZE_TIMEOUT_MS | integer | 3000 | Maximum time to wait for DOM readyState and URL settling (0–10000 ms). |
SETTLE_POLL_MS | integer | 150 | Polling interval in ms for document stability detection (50–1000 ms). |
MAX_REDIRECTS | integer | 10 | Maximum HTTP redirect hops allowed before classifying as redirect loop (0–20). |
MAX_MARKDOWN_CHARS | integer | 100000 | Character ceiling for serialized Markdown output (1000–1000000). |
MAX_CONCURRENT_PAGES | integer | 5 | Maximum simultaneous browser tabs allowed by semaphore. |
MAX_QUEUE_LENGTH | integer | 50 | Maximum waiting requests in semaphore queue before rejecting with HTTP 429 (1–1000). |
MAX_RESULTS_PER_HOST | integer | 2 | Maximum extracted search results permitted from a single domain in deep research (1–10). |
DEFAULT_HTML_CHARSET | string | utf-8 | Default charset fallback for bare text/html documents without charset header. |
DNS_CACHE_TTL_MS | integer | 60000 | In-memory DNS resolution cache TTL in milliseconds (0–600000 ms). |
GOOGLE_SEARCH_BASE | string | https://www.google.com/search | Google search base URL endpoint. |
UNFOLD_INTERACTIVE | boolean | false | Opt-in to interactively unfold closed accordion buttons and ARIA controls inside main/article. |
MAX_REQUESTS_BEFORE_RECYCLE | integer | 1000 | Lifetime requests before background browser restart to prevent RAM fragmentation. |
MAX_CONTENT_LENGTH | integer | 5242880 (5MB) | Upper bound memory guard against massive HTML payloads. |
NETWORK_IDLE_TIMEOUT_MS | integer | 5000 | Maximum wait time in ms for initial network stabilization before scrolling. |
SCROLL_DELAY_MS | integer | 500 | Debounce delay in ms after each scroll step (increase to 1000–2000 for slow networks). |
SCROLL_STEP_PX | integer | 1000 | Distance in pixels per scroll increment. |
SCROLL_SETTLE_TIMEOUT_MS | integer | 500 | Final quiet period in ms after scroll loop completes. |
MAX_SCROLL_STEPS | integer | 6 | Maximum scroll loop iterations for lazy content hydration. |
SEARCH_WAIT_TIMEOUT_MS | integer | 10000 | Maximum wait time in ms for Google SERP cards to render before parsing results. |
READABILITY_CHAR_THRESHOLD | integer | 20 | Minimum character length for Mozilla Readability article scoring. |
🚀 Client Installation & Setup Guide
Option 1: Docker Streamable HTTP Service (Recommended for Remote Agents, VPS & Teams)
1. Quick Start (Loopback Only, No API Key)
The service binds 127.0.0.1 by default, so it is reachable from the host only through host networking:
docker run -d --network host --shm-size=1gb --name web-research-mcp --restart unless-stopped ghcr.io/shukoilab/web-research-mcp:latest
Serves http://127.0.0.1:3000/mcp without authentication. Because host networking shares the host's X11 socket namespace, pass -e XVFB_DISPLAY=:100 when the host already runs an X server or Xvfb on :99.
Tip on Custom Ports: With host networking, override the listen port directly via
-e PORT=3031(then usehttp://127.0.0.1:3031/mcp). To publish through-pon a bridge network instead, you must also set-e HOST=0.0.0.0and a non-empty-e MCP_API_KEY=..., as shown in the next section.
2. Production VPS Deployment with Full Configuration Knobs
Customize any operational parameter directly at runtime via environment variables (-e). You do not need to modify or rebuild the Dockerfile:
docker run -d \
--name web-research-mcp \
--restart unless-stopped \
--shm-size=1gb \
-p 3000:3000 \
-e HOST="0.0.0.0" \
-e PORT="3000" \
-e ALLOWED_HOSTS="*" \
-e ALLOWED_ORIGINS="*" \
-e MCP_API_KEY="sk-your-secret-api-key" \
-e HTTP_PROXY="" \
-e BROWSER_TIMEOUT_MS="30000" \
-e MAX_CONCURRENT_PAGES="5" \
-e MAX_REQUESTS_BEFORE_RECYCLE="1000" \
-e MAX_CONTENT_LENGTH="5242880" \
-e NETWORK_IDLE_TIMEOUT_MS="5000" \
-e SCROLL_DELAY_MS="500" \
-e SCROLL_STEP_PX="1000" \
-e SCROLL_SETTLE_TIMEOUT_MS="500" \
-e MAX_SCROLL_STEPS="6" \
-e SEARCH_WAIT_TIMEOUT_MS="10000" \
-e READABILITY_CHAR_THRESHOLD="20" \
ghcr.io/shukoilab/web-research-mcp:latest
3. Using an Environment File (--env-file)
Keep sensitive keys and parameters organized in a local .env file:
docker run -d \
-p 3000:3000 \
--shm-size=1gb \
--env-file .env \
--name web-research-mcp \
--restart unless-stopped \
ghcr.io/shukoilab/web-research-mcp:latest
4. Docker Compose Deployment (docker-compose.yml)
For automated restarts, VPS orchestration, and persistent stacks:
version: '3.8'
services:
web-research-mcp:
image: ghcr.io/shukoilab/web-research-mcp:latest
container_name: web-research-mcp
restart: unless-stopped
shm_size: 1gb
ports:
- "3000:3000"
environment:
# Network & Security
- HOST=0.0.0.0
- PORT=3000
- ALLOWED_HOSTS=*
- ALLOWED_ORIGINS=*
- MCP_API_KEY=sk-your-secret-api-key
# Browser Performance & Tuning
- BROWSER_TIMEOUT_MS=30000
- MAX_CONCURRENT_PAGES=5
- MAX_REQUESTS_BEFORE_RECYCLE=1000
- MAX_CONTENT_LENGTH=5242880
- NETWORK_IDLE_TIMEOUT_MS=5000
- SCROLL_DELAY_MS=500
- SCROLL_STEP_PX=1000
- SCROLL_SETTLE_TIMEOUT_MS=500
- MAX_SCROLL_STEPS=6
- SEARCH_WAIT_TIMEOUT_MS=10000
- READABILITY_CHAR_THRESHOLD=20
- MCP Endpoint:
http://localhost:3000/mcp(Streamable HTTP transport) - Healthcheck Probe:
GET http://localhost:3000/health(HTTP 200/503)
5. Connecting AI Clients with Optional Authentication
In Cursor / OpenCode (opencode.json / remote MCP settings):
{
"type": "remote",
"url": "http://your-vps-ip:3000/mcp",
"headers": {
"Authorization": "Bearer sk-your-secret-api-key"
}
}
Testing via cURL:
# Public liveness healthcheck probe (always unauthenticated)
curl -s http://localhost:3000/health
# MCP request with Bearer Token (or X-API-Key header)
curl -s -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-your-secret-api-key" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"curl-client","version":"1.0.0"}}}'
Option 2: Docker Local STDIO Container (Recommended for Claude Desktop)
Runs inside the sealed container without needing Node.js or Chrome installed on the host machine:
Claude Desktop
Add to your claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"web-research": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"--shm-size=1gb",
"ghcr.io/shukoilab/web-research-mcp:latest",
"node",
"dist/entries/mcp-stdio.js"
]
}
}
}
Cursor IDE
Add to ~/.cursor/mcp.json (or via Cursor Settings > Features > MCP):
{
"mcpServers": {
"web-research": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"--shm-size=1gb",
"ghcr.io/shukoilab/web-research-mcp:latest",
"node",
"dist/entries/mcp-stdio.js"
]
}
}
}
OpenCode
Add to your opencode.json (or profile config):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"web-research": {
"type": "local",
"command": [
"docker",
"run",
"-i",
"--rm",
"--init",
"--shm-size=1gb",
"ghcr.io/shukoilab/web-research-mcp:latest",
"node",
"dist/entries/mcp-stdio.js"
]
}
}
}
VS Code (Cline / Roo Code / Claude Dev)
{
"mcpServers": {
"web-research": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"--shm-size=1gb",
"ghcr.io/shukoilab/web-research-mcp:latest",
"node",
"dist/entries/mcp-stdio.js"
],
"disabled": false,
"autoApprove": []
}
}
}
Option 3: Local Node.js Development & STDIO Execution
For local development or environments with Node.js 20+ installed:
# Build the project
pnpm install
pnpm run build
# Start the Streamable HTTP server on port 3000
pnpm run start
Or invoke STDIO locally:
{
"mcpServers": {
"web-research": {
"command": "node",
"args": ["/absolute/path/to/mcp-web-research/dist/entries/mcp-stdio.js"]
}
}
}
🛠️ MCP Tools Catalog
1. googleSearch (googleSearchAction)
Executes organic web search on Google using stealth Chrome with automatic consent dialog bypass, breadcrumb canonicalization, and rich snippet extraction. Acts as Step 1 (Discovery & Triage) in agent research workflows, returning candidate URLs and preview snippets.
Input Parameters:
query(string, required, 1..500 chars): Search keywords or phrases. Supports Google Dorking operators for high-precision queries (e.g.site:github.com "patchright" inurl:releases,filetype:pdf "machine learning",intitle:"API docs").limit(integer, optional, 1..50, default: 10): Maximum organic results.language(string, optional, default: "en"): Language code (e.g."en","id").country(string, optional, default: "us"): Geolocation region code (e.g."us","id").safeSearch(boolean, optional, default: true): SafeSearch adult filter.
Example Tool Response:
{
"query": "typescript documentation",
"totalReturned": 2,
"results": [
{
"title": "The starting point for learning TypeScript",
"url": "https://www.typescriptlang.org/docs",
"redirectUrl": "https://www.google.com/goto?url=...",
"snippet": "TypeScript extends JavaScript by adding types to the language..."
}
],
"timestamp": "2026-11-20T00:00:00.000Z"
}
2. webExtract (webExtractAction)
Navigates to any target URL, executes intelligent progressive scrolling to trigger lazy XHR/SPA content (prices, reviews, specs), unfolds collapsed content using universal W3C ARIA standards and native HTML5 disclosures, unclamps visual CSS line-clamping, and serializes clean GitHub Flavored Markdown. Acts as Step 2 (Deep Content Reader) following googleSearch or as Step 1 for direct URLs.
Input Parameters:
url(string, required, format: "uri", 1..2048 chars): Target website URL (http://orhttps://). Accepts direct URLs or canonical URLs discovered viagoogleSearch.smartScroll(boolean, optional, default: true): Enable automated progressive scroll, semantic unfolding, and XHR stabilization.ultraFast(boolean, optional, default: false): Block images, external CSS, fonts, media, and manifest (JS + XHR still run) for faster extraction on image-heavy pages.scrollDelayMs(integer, optional, 100..5000, default: 500): Debounce wait time in milliseconds after each scroll step (increase to 1000–2000ms for slow networks).maxScrolls(integer, optional, 0..20, default: 6): Maximum scroll step iterations for lazy content hydration and DOM convergence.timeoutMs(integer, optional, 1000..60000, default: 30000): Maximum navigation deadline.
Example Tool Response:
{
"url": "https://www.tokopedia.com/kyo-official/ssd-kyo-kaizen-m-2-nvme-512gb-pcie-gen3-x4-2280-ssd-nvme-gen-3",
"title": "SSD KYO KAIZEN M.2 NVMe 512GB PCIe Gen3 x4 2280 SSD NVMe Gen 3",
"byline": "KYO Indonesia",
"excerpt": "KAIZEN diambil dari bahasa Jepang untuk perbaikan berkelanjutan...",
"markdown": "## SSD KYO KAIZEN M.2 NVMe 512GB...\n\n**Harga:** Rp1.626.050\n**Stok:** 451\n\n### Spesifikasi Lengkap:\n- Tipe: M.2 NVMe PCIe 3 x4\n- Kapasitas: 512GB\n\n## ULASAN PEMBELI\n- **Andri:** Barang diterima dengan baik dan cepat...",
"timestamp": "2026-11-20T00:00:00.000Z"
}
3. deepResearch (deepResearchAction)
Executes comprehensive, multi-source deep web research in a single call. Conducts Google Search, extracts top-N canonical search results sequentially into clean GitHub Flavored Markdown, filters boilerplate and anti-bot walls, and truncates results within strict per-result and total token budgets.
When to Use:
- Use
deepResearchwhen you need full article content or synthesis across multiple sources for a research topic in one round-trip. - Use
googleSearchwhen exploring queries, triaging candidate URLs, or needing snippets only. - Use
webExtractwhen the target URL is already known and requires surgical single-page extraction.
Input Parameters:
query(string, required, 1..500 chars): Search keywords or research query.limit(integer, optional, 1..10, default: 5): Maximum search results to extract sequentially.language(string, optional, default: "en"): Language code (e.g."en","id").country(string, optional, default: "us"): Geolocation region code (e.g."us","id").safeSearch(boolean, optional, default: true): SafeSearch adult filter.ultraFast(boolean, optional, default: true): Block images, external CSS, fonts, and media. Defaults totruefor deep research to maximize extraction throughput (setfalseif target pages gate content behind CSS visibility).smartScroll(boolean, optional, default: true): Automatically scroll and wait for lazy-loaded XHR data to settle.scrollDelayMs(integer, optional, 100..5000, default: 500): Debounce wait time in milliseconds after each scroll step.maxScrolls(integer, optional, 0..20, default: 6): Maximum scroll step iterations for lazy content hydration.timeoutMs(integer, optional, 1000..60000, default: 30000): Per-page navigation timeout in milliseconds.maxCharsPerResult(integer, optional, 1000..100000, default: 20000): Maximum character length per extracted article before truncation.maxTotalChars(integer, optional, 10000..500000, default: 100000): Maximum total character budget across all extracted articles.
Example Tool Response:
{
"query": "patchright vs playwright",
"totalFound": 2,
"totalReturned": 2,
"excludedCount": 0,
"errors": [],
"results": [
{
"title": "Patchright Documentation",
"url": "https://github.com/Kaliiiiiiiiii-Vinyzu/patchright",
"markdown": "# Patchright\n\nThe undetected driver for browser automation...",
"truncated": false
}
],
"timestamp": "2026-11-22T14:00:00.000Z"
}
Invariant Guarantee:
totalReturned + excludedCount === totalFoundis guaranteed on every call. If any URL fails navigation, SSRF verification, or content extraction, it is discarded intoerrors[]with a short coded reason (ssrf_blocked,invalid_url,timeout,empty_content,budget_exceeded), allowing the remaining batch to complete reliably.
4. healthCheck (healthAction)
Inspects real-time subsystem readiness, browser pool connectivity, active concurrency, and memory consumption.
Example Output:
{
"status": "healthy",
"timestamp": "2026-11-20T00:00:00.000Z",
"uptimeSec": 1240,
"browser": {
"connected": true,
"prewarmed": true,
"activeTabs": 0,
"maxCapacity": 5,
"requestCount": 42,
"userDataDir": "/home/shukoi/.cache/mcp-web-research/chrome-profile"
},
"display": ":99",
"memory": {
"heapUsedMb": 64.25,
"rssMb": 182.10
}
}
🧪 Testing & Verification
Run the full automated verification pipeline:
# Execute unit and live integration tests (68+ tests)
pnpm test
# Verify strict TypeScript type-safety (0 errors)
pnpm run typecheck
# Check formatting and static quality (Biome)
pnpm run lint
# Compile production build to ./dist
pnpm run build
🙏 Acknowledgements & Open-Source Credits
This project is built on top of an incredible open-source ecosystem. Sincere gratitude and credits go to the creators and maintainers of the following foundations:
- Patchright — Undetected browser automation driver eliminating CDP leaks,
--enable-automation, and runtime flags for genuine consumer fingerprints. - Shukoi Framework (
@shukoi/core,@shukoi/mcp) — Modular TypeScript runtime framework powering MCP action dispatching and Web-Standard transport. - Hono (
hono,@hono/node-server) — Ultra-fast, lightweight Web-Standard HTTP framework powering Streamable HTTP transport and native health probes. - Model Context Protocol SDK — Official TypeScript SDK implementing the MCP specification across STDIO and Streamable HTTP transports.
- Mozilla Readability — Standalone content extraction engine from Mozilla Firefox's Reader View for clean, token-efficient article parsing.
- LinkeDOM — High-performance, lightweight server-side DOM implementation with near-zero memory footprint.
- Unified Ecosystem (
unified,rehype-parse,rehype-remark,remark-gfm,remark-stringify) — Composable syntax tree (AST) pipeline transforming HTML into high-density GitHub Flavored Markdown. - TypeBox — High-performance JSON Schema Type Builder with static type inference enforcing strict input/output contracts.
- jose — Universal Web Cryptography library for secure token validation and cryptographic operations.
- Biome & Vitest — Modern development toolchains delivering blazing-fast linting, formatting, and automated testing.
📄 License
MIT © Shukoi Lab
الأسئلة الشائعة
ما هو Web Research MCP Server؟
Stealth Google Search and token-efficient web content extraction with undetected browser automation.
كيف أثبّت Web Research MCP Server؟
يعمل على جهازك. في Claude Code: claude mcp add web-research-mcp-server -e 'PORT=3000' -e 'HTTP_PROXY=<your http_proxy>' -e 'BROWSER_USER_DATA_DIR=~/.cache/mcp-web-research/chrome-profile' -e 'BROWSER_TIMEOUT_MS=30000' -e 'MAX_CONCURRENT_PAGES=5' -e 'MAX_REQUESTS_BEFORE_RECYCLE=1000' -e 'MAX_CONTENT_LENGTH=5242880' -e 'NETWORK_IDLE_TIMEOUT_MS=5000' -e 'SCROLL_DELAY_MS=500' -e 'SCROLL_STEP_PX=1000' -e 'SCROLL_SETTLE_TIMEOUT_MS=500' -e 'MAX_SCROLL_STEPS=6' -e 'SEARCH_WAIT_TIMEOUT_MS=10000' -e 'READABILITY_CHAR_THRESHOLD=20' -- docker run -i --rm ghcr.io/shukoilab/web-research-mcp:2.4.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج Web Research MCP Server إلى مفتاح API؟
نعم. يتطلب HTTP_PROXY، وتضبطها في إعداداته.
هل Web Research MCP Server مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون Web Research MCP Server؟
ينشره shukoilab. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.