google-surf-mcp
This server provides Google search and web content extraction without requiring an API key, using a persistent Chrome profile with stealth capabilities.
search(query, limit?)– Run a single Google search and get title, URL, and snippet for up to 20 results.search_parallel(queries[], limit?)– Execute up to 10 queries simultaneously using a pool of 4 concurrent workers, returning title/URL/snippet per result.extract(url, max_chars?)– Fetch a URL and return clean article content as Markdown (via Mozilla Readability), with optional truncation up to 50,000 characters.search_extract(query, limit?, max_chars?)– Combines search and extraction in one call: performs a Google search and extracts full article Markdown from each result page in parallel (up to 10 results, up to 20,000 chars each), replacing the typical two-step search + fetch workflow.
Key highlights:
No API key, proxies, or external solvers required
Automatic CAPTCHA recovery: opens a visible Chrome window for a human to solve, then retries automatically
Blocks images/media/fonts for faster performance
Designed for local use with a persistent, warm Chrome profile
Provides tools for searching Google and extracting web content without API keys, including search, parallel search, URL extraction, and combined search+extract.
google-surf-mcp
English | 한국어

Demo only. Actual searches run headless by default (no visible browser). Set
SURF_HEADLESS=falseto make Chrome visible like in the clip above.
Google search MCP. Browser mode needs no API key. SearchApi is optional.
One MCP replaces three: search + URL fetcher + academic-paper extractor.
✅ Actually works (tested 6 free Google search MCPs, all failed)
✅ Search + URL + academic PDF extract in one MCP (replaces the search MCP + fetch MCP + academic-search MCP combo)
✅ Academic PDFs extracted inline: arxiv, biorxiv, Nature, OpenReview, NeurIPS, JMLR, PMLR, Springer, PubMed (via PMC)
✅
search_extractdefaults to abstract mode (~1500 chars/result, token-cheap),mode="full"for whole bodies✅ Sponsored ads + knowledge panels dropped (geometric verification, not just text matching)
✅ CAPTCHA recovery in 4 modes: OS notification (default) /
SURF_HEADLESS=false/SURF_REMOTE_DEBUG/SURF_CLOUD_MODE(fail-fast)✅ Browser mode needs no API key, proxy, or solver
6 tools: search / scholar_search / search_parallel / extract / search_extract / health
What
Plug it into any MCP client and you get Google search as a tool.
No CAPTCHA solver. When CAPTCHA fires on any tool, a Chrome window opens for a human to solve. Each solve preserves the profile's reputation with Google.
First call auto-bootstraps the warm profile. Designed for local use. For headless / serverless environments set SURF_CLOUD_MODE=true (fail-fast on CAPTCHA, worker pool disabled).
Related MCP server: G-Search MCP
Numbers
result | |
sequential | ~1.5s/query (first call ~4s, includes setup) |
parallel x4 | ~1.5s wall (first call ~9s, includes pool warm) |
parallel x10 | ~4.5s wall |
search_extract x5 (abstract, default) | ~3s wall |
search_extract x5 (full) | ~5s wall (search + 5 parallel extracts) |
Measured on a workstation with a 1Gb/s connection.
Stack
Playwright + persistent Chrome profile
playwright-extrastealth as a cascade fallback tierMulti-strategy SERP parser + geometric verification (drops sponsored / knowledge_panel / related)
@llamaindex/liteparsefor PDF text extraction (PDFium spatial parsing, optional OCR); Mozilla Readability + Turndown for HTMLResource-blocked images / media / fonts for speed
Auto-bootstrap on first call; pool falls back to single-context after repeated warm failures
Self-healing: runtime parser-strategy reorder (deterministic) + daily cron repair PR (synthesis → optional LLM → triple-gate validation, human review)
Install
Requires Node 18+. Browser mode also requires Google Chrome or Chromium.
npx google-surf-mcp # actual MCP - register in client configFirst tool call auto-bootstraps the warm profile (you may see Chrome open briefly).
Or local clone:
git clone https://github.com/HarimxChoi/google-surf-mcp
cd google-surf-mcp
npm installIf auto-bootstrap fails (rare), run it manually:
npm run bootstrapOverride paths if needed:
CHROME_PATH=/path/to/chrome SURF_TZ=America/New_York npm run bootstrapUse with Claude Code
Paste this into your ~/.claude.json:
{
"mcpServers": {
"google-surf": {
"command": "npx",
"args": ["-y", "google-surf-mcp"]
}
}
}Restart Claude Code. Done. search, scholar_search, search_parallel, extract, search_extract, health are now available.
For other MCP clients, use the same JSON shape in their config file.
Search providers
Browser search remains the default. SearchApi can be selected as the primary provider or used only when browser search fails.
value | behavior |
| Default. Uses the existing Google Surf browser path and does not require |
| Uses SearchApi as the primary provider and does not initialize Chrome for that tool. |
| Uses the browser first, then SearchApi on browser errors, CAPTCHA/rate limits, profile failure, or parser degradation. Successful and normal empty browser responses are not repeated. |
SURF_SEARCH_PROVIDER controls search and search_parallel. SURF_SCHOLAR_PROVIDER controls scholar_search. SearchApi modes require your own SearchApi account, key, and available credits.
{
"mcpServers": {
"google-surf": {
"command": "npx",
"args": ["-y", "google-surf-mcp"],
"env": {
"SEARCH_API": "your-searchapi-key",
"SURF_SEARCH_PROVIDER": "fallback",
"SURF_SCHOLAR_PROVIDER": "searchapi"
}
}
}
}Local clone variant:
{
"mcpServers": {
"google-surf": {
"command": "node",
"args": ["/abs/path/to/google-surf-mcp/build/index.js"]
}
}
}Tools
search(query, limit?)- single query, ~1.5s in browser mode. Returns title / url / snippet. Sponsored ads + knowledge-panel dropped on the browser path. Results cached 24h (SURF_CACHE_TTL_SEARCH_MS=0to bypass).scholar_search(query, limit?)- Google Scholar search, max 10 papers. Returns authors, publication, year, snippet, citation count, related/version links, and an available full-text link. Supports browser, SearchApi primary, and fallback modes.search_parallel(queries[], limit?)- pool of 4 in browser mode, max 10 queries per call. FollowsSURF_SEARCH_PROVIDER.extract(url, max_chars?, mode?)- fetch a URL, return article content.mode="full"(default): whole body. HTML via Readability, PDFs vialiteparse(spatial parsing, multi-column reading order).mode="abstract": ~1500-char survey (PDF page 1 or HTML meta description). Triage relevance before paying for full text.mode="metadata": PDF page count only.Response:
content,title,excerpt,length,is_pdf,page_count,extraction_quality. Failures return{ error }, never throw.
search_extract(query, limit?, max_chars?, mode?)- search + parallel extract in one call. Defaultmode="abstract"returns SERP enriched with ~1500-char summaries (cheap triage). Usemode="full"when you actually need the article texts (slower, more tokens).health()- server status. Response:cascade/pool(warmFailures+fallback) /rateLimiter/cache/telemetry/selfHealing(current strategy order + stats) /config. Call it if searches start failing —pool.fallback=trueor risingcascade.totalCaptchasare the usual culprits.
Env vars
var | default | notes |
| unset | SearchApi API key. Required only when either provider setting is |
| unset | Alias for |
|
| Provider for |
|
| Provider for |
| auto-detected | absolute path to Chrome binary |
|
| where the warm profile lives |
|
| browser locale |
| system tz | e.g. |
|
| set |
|
| set |
|
| idle ms before closing the sequential ctx and pool. |
|
| set |
|
| default |
|
| OCR scanned/image PDFs via Tesseract (slower; off by default) |
|
| headless/serverless mode: TLS bypass + |
|
| pin a single stealth mode (chosen by |
|
| initial stealth tier — only consulted when |
|
|
|
|
| internal cap on Google-facing requests per minute |
|
| search cache TTL (24h); |
|
| LRU cap per cache namespace |
|
| cache directory |
|
|
|
|
|
|
|
| set |
|
| directory for jsonl telemetry files. UTC-dated one file per day ( |
|
| per-strategy outcome tracking + persisted reordering. Healing must win by 3 outcomes before reorder kicks in, so single-call flapping is impossible. Set |
|
| persistence path for healing state. Atomic tmp+rename writes; debounced 5s. |
|
| opt-in for LLM-assisted selector repair in the workflow-only |
| — | your Anthropic key. Read only when |
Troubleshooting
CAPTCHA in 4 modes (picked automatically from env):
default (local desktop): OS notification fires, headed Chrome opens, human solves, call retries
SURF_HEADLESS=false: headed Chrome opens, no notification (user is already watching)SURF_REMOTE_DEBUG=true: DevTools port + instructions printed, attachchrome://inspectlocally to solveSURF_CLOUD_MODE=true: fail-fast withCAPTCHA_REQUIREDerror
Headed Chrome opens to a plain search box instead of CAPTCHA: just type any query in the box and press Enter. Subsequent calls work.
"Chrome not found": install Chrome or set
CHROME_PATH.Stale selectors: two-layer mitigation — runtime per-strategy reorder (
SURF_SELF_HEALING, deterministic) + daily cron that opens draft PRs with candidate fixes (SURF_LLM_HEALoptional, human review required, never auto-merged).Searches feel slower than the Numbers table: check
health().pool.fallback.truemeans the worker pool gave up after 3 warm failures and is using a single context. Usually fixed bynpm run bootstrapto refresh the seed profile.SSRF:
extractblockslocalhost, private IPs, AWS metadata by default. SetSURF_ALLOW_PRIVATE=trueto allow them.
Changelog
See CHANGELOG.md.
License
MIT
Maintenance
Related MCP Servers
- Alicense-quality-maintenanceProvides Google search capabilities, web content extraction, and screenshot functionality with advanced bot detection avoidance through the MCP protocol.1016
- AlicenseBqualityFmaintenanceA powerful MCP server that enables parallel Google searching with multiple keywords simultaneously, providing structured results while handling CAPTCHAs and simulating user browsing patterns.185270MIT
- MIT

Brave Search MCP Serverofficial
AlicenseAqualityAmaintenanceAn MCP implementation that integrates the Brave Search API, providing comprehensive search capabilities including web, local business, image, video, news searches, and AI-powered summarization.471826,5331,371MIT
Related MCP Connectors
MCP server for Google search results via SERP API
Serper MCP — wraps the Serper Google Search API (serper.dev)
SerpApi MCP — wraps SerpApi (serpapi.com) search engines
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HarimxChoi/google-surf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server