google-surf-mcp
Extracts academic PDF content from arXiv papers, supporting abstract mode (~1500 chars) and full text extraction.
Provides Google search capabilities, including search, parallel search, URL extraction, and combined search-extract, with CAPTCHA recovery and no API key required.
Extracts academic PDF content from PubMed (via PMC), supporting abstract mode (~1500 chars) and full text extraction.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-surf-mcp search for latest AI research papers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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. No API key. Just works.
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)✅ No API key, no proxies, no solver
5 tools: 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: Google Search Engine MCP Server
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+ and Google Chrome (or Chromium) on the system.
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, search_parallel, extract, search_extract, health are now available.
For other MCP clients, use the same JSON shape in their config file.
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. Returns title / url / snippet. Sponsored ads + knowledge-panel dropped (response includesdroppedcount +dropped_reasons). Results cached 24h (SURF_CACHE_TTL_SEARCH_MS=0to bypass).search_parallel(queries[], limit?)- pool of 4, max 10 queries per call.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 |
| 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
Available Tools
5 toolsextractExtract Article ContentARead-onlyIdempotent
Fetch one public URL -> clean article text. HTML via Mozilla Readability; academic PDFs (arxiv/biorxiv/Nature/OpenReview/NeurIPS/JMLR/PMLR/Springer/PubMed-via-PMC) auto-detected via Content-Type, %PDF magic, citation_pdf_url meta, and per-domain URL rules. Tiered depth: mode="abstract" returns ~1500 chars (PDF page 1 or HTML meta description) -- cheap survey to triage relevance before paying for full body. mode="full" (default) returns the whole article. Best-effort: failures return an errorInfo instead of throwing.
Inputs: url (required), mode, max_chars. Returns: url, meta, error, title, +7 more
healthMCP Health CheckARead-onlyIdempotent
MCP server status: cascade mode + transitions, rate-limiter usage, cache size, config. Call this if searches start failing or returning empty -- check cascade.totalCaptchas and rateLimiter.queueSize, and reduce search volume if they are high.
Inputs: no named parameters. Returns: pool, cache, error, config, +5 more
searchGoogle SearchARead-only
Single Google search -> title/url/snippet per result. Results are cached 24h, so repeating a query is free -- prefer re-querying over caching results yourself. For latest/today/breaking queries set SURF_CACHE_TTL_SEARCH_MS=0 to bypass the cache. Default limit 10 (max 20). First call ~4s (Chromium warmup), then ~2s. On CAPTCHA a visible Chrome opens for a human to solve (shared-IP protection); SURF_CLOUD_MODE=true makes it fail-fast instead.
Inputs: query (required), limit. Returns: meta, error, query, results, +1 more
search_extractSearch + Parallel ExtractARead-only
One-shot Google search + parallel extract of the top results. Default mode="abstract" returns SERP enriched with ~1500-char abstracts per result -- a cheap survey of what the top results actually contain, far fewer tokens than fetching all bodies. Switch to mode="full" only when you need the actual article texts (slower, much more tokens). Per-page extract failures are isolated. Disabled in cloud mode.
Inputs: query (required), mode, limit, max_chars. Returns: meta, error, query, results, +1 more
search_parallelGoogle Search ParallelARead-only
Run 2-10 Google searches concurrently. Use to compare multiple angles in one call. Each query counts against the internal rate limit (~10/min) -- do not loop this for bulk scraping. First call adds 5-10s pool warmup. Per-query failures are isolated in the results array. Disabled in cloud mode.
Inputs: queries (required), limit. Returns: meta, error, results, elapsed_ms
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: single search, parallel searches, content extraction, combined search+extract, and health status. Although search and search_parallel both involve searching, the parallel variant is explicitly for multiple concurrent queries and the combined tool adds extraction, leaving no ambiguity.
Tool names are all lowercase with underscores and follow a predictable pattern: search and extract are verb-noun style, while search_parallel and search_extract are compound verbs. Health is a slight deviation as a noun, but the overall style is consistent and readable.
With 5 tools, the server is well-scoped for its purpose of Google search and content extraction. Each tool serves a distinct need without redundancy, and the count feels neither sparse nor bloated.
The tool surface covers the full workflow: searching, parallel searching for comparisons, extracting content from URLs, and combining search+extract for efficient surveys. The health tool fills an operational niche. No obvious dead ends or missing essential operations for the server's stated purpose.
Related MCP Connectors
Unofficial Serper MCP — wraps the Serper Google Search API (serper.dev)
Free web search for AI agents. No API key required. Hosted MCP in active development.
One MCP server for all web data. Scrape, search, crawl, and AI research in one install.
Web search API and MCP server for developers building AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive search capabilities including web search, content extraction, news search, academic search, and AI-powered multi-source research. Enables natural language access to web content and research through a production-ready MCP server.MIT
- FlicenseNot gradedqualityDmaintenanceEnables Google search queries and webpage content extraction through an MCP server deployed on Cloudflare Workers. Supports single and batch webpage content extraction with integrated OAuth authentication.1-
- AlicenseNot gradedqualityDmaintenanceMCP server for internet search via direct Google and DuckDuckGo HTML scraping with AI-powered result normalization and optional summarization, requiring no API keys for search.MIT
- AlicenseNot gradedqualityCmaintenanceZero-auth multi-source research MCP server that enables web search, reading URLs, PDFs, GitHub repos, and querying Hacker News, Stack Overflow, Semantic Scholar, and YouTube transcripts without API keys.43 PyPI12Apache 2.0