google-scrape-mcp
This MCP server lets AI agents scrape Google search surfaces, RSS/JSON feeds, and web pages without an API key, with browser fallback and honest status reporting.
Use unified
google_searchacross tabs: web, images, videos, news, books, shopping, scholar, patents, and AI Mode, with pages 1–10.Call specialized tools for web, image, video, books, shopping, news, News homepage, Scholar, Scholar cited-by, patents, finance quotes, FX rates, Bank Indonesia rates, translation, autocomplete, and Trends daily/interest.
Crawl any URL with
google_crawlto get title, meta, text, and outbound links.Choose engine mode:
auto,http,proxy, orbrowserto trade speed, proxying, and bot-challenge handling.Use the HTTP fast path with cached Google cookies, or Camoufox browser fallback for JS-heavy pages like Scholar and AI Mode.
Get honest result statuses:
ok,blocked,rate_limited,limited,empty, orerror; it never fabricates results.Access stable RSS/JSON endpoints: news, patents, trends, suggest, translate, and finance quotes.
Check health, proxies, cache, cooldowns, and forensics via
google_status; read runtime guidance viagoogle_help.
Scrapes Google Search without an API key, exposing a unified search tool plus 9 tabs (web, images, videos, news, books, shopping, scholar, patents, AI Mode) alongside utility tools for Google News, Scholar, Patents, Finance quotes, Translate, Suggest, Trends, URL crawling, and AI Mode synthesized answers with sources. Uses an HTTP fast path with bootstrap cookies and a Camoufox browser fallback, with proxy rotation, cooldowns, and explicit status reporting (ok/blocked/rate_limited) so results are returned honestly.
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-scrape-mcp search Google News for the latest AI regulation updates"
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-scrape-mcp

MCP server that gives AI agents real Google results with no API key: an HTTP fast path (0.3–2.9s searches when cookies are warm), a Camoufox browser fallback that actually runs the JS challenges, adaptive cooldowns derived from probing, and honest status codes instead of fabricated results.

Full-quality recording: assets/demo_real.mp4 (24s).
What you see in the recording: web 1.1s, images 0.8s, scholar 7.1s,
AI Mode 9.2s (2,548 chars), USD/IDR quote 0.5s.
1. What it does
Searches Google across web, images, videos, news, books, shopping, scholar, patents and AI Mode through one MCP server.
Answers each request with
status: ok | blocked | rate_limited | limited | empty | error. When Google blocks, it says so. It never invents results.Keeps a browser profile warm so HTML pages that need JavaScript (scholar, AI Mode) come back complete.
Exposes RSS/JSON endpoints (news, patents, trends, suggest, translate, finance) that are never blocked, for when reliability matters more than coverage.
Related MCP server: SerpApi MCP Server
2. Install
pip install -e . # HTTP engine only
pip install -e ".[browser]" # + Camoufox browser engine
camoufox fetch # download the Camoufox browser onceCore dependencies: fastmcp, curl_cffi, beautifulsoup4, lxml,
defusedxml. Optional: camoufox for the browser engine.
Platform support, honestly:
Component | Platforms | Notes |
HTTP engine ( | Linux, macOS, Windows (x86_64 wheels; arm64 where published) | no browser needed |
Browser engine ( | Linux x86_64; upstream also ships macOS (Intel/Apple Silicon) and Windows x86_64 builds | ~660 MB download; ARM Linux and Android are not supported by upstream builds and need manual work. On those targets use the HTTP engine only and expect more |
3. MCP client config
{
"mcpServers": {
"google-scrape": {
"command": "google-scrape-mcp"
}
}
}Run google-scrape-mcp directly for stdio transport. Agents can call the
google_help tool for a runtime usage guide, or read
AGENT_GUIDE.md.
4. Tools (22)
Tool | Source | Notes |
| unified: | dispatcher for the tools below |
| organic results, featured snippet, related searches | HTTP fast path, browser fallback |
| direct image URLs, page URLs, dimensions | fast path |
|
| fast path |
|
| fast path |
| title, price, was-price, merchant, rating | fast path when the markup allows, browser otherwise |
| News RSS | never blocked |
| papers, venue, citations, PDF links | browser (HTTP 429) |
| Scholar | extra protection, often |
| Patents XHR JSON | never blocked |
| stocks, forex, crypto. | never blocked |
| fast FX from the SERP converter widget ( | returns |
| official Bank Indonesia transaction rates (sell/buy, 26 currencies) | browser render of the BI table, |
| unofficial | never blocked |
| autocomplete | never blocked |
| Trends RSS | never blocked |
| explore into multiline widgetdata | HTTP often 401, browser fallback |
| AI Mode ( | browser, JS streams the answer |
| read any URL: title, meta, text, links | live |
| agent usage guide | live |
| endpoints, proxies, cache, cooldowns, forensics | live |
5. Engines and the cookie fast path
Every search tool takes an engine argument:
auto(default): HTTP first, browser when needed.http: direct only. Fast, challenge-prone on flagged IPs.proxy: force the proxy pool.browser: Camoufox headless render, 5–15s.
The fast path works like this. A browser homepage visit mints fresh session
cookies (NID, AEC, SNID, GSP). Plain HTTP /search with those cookies,
a coherent Referer/Sec-Fetch-Site and a clean cookie jar passes in
0.3–2.9s. Surfaces proven to pass over HTTP: web, images, videos, books,
shopping. Scholar (HTTP 429) and AI Mode (answer is streamed by JS) stay on
the browser. Cookies are cached for 5 minutes and refreshed in the background
while tools are in use, so searches rarely pay the warm-up cost.
Behavior notes behind this are in RESEARCH.md.
6. Performance
Operation | Before | Now |
Web search (end-to-end) | ~1.0s | 0.3–0.7s |
Browser warm-up + cookies | 16.4s | 5.7s |
Scholar search | 11.3s | 4.2–4.4s |
AI Mode answer | 11.1s, sometimes truncated | 9–11s, complete |
SERP parse + | sequential | parallel, ~0.5s |
Mechanisms: one priority job for warm-up plus cookies, adaptive warm-up
skipping (GOOGLE_SCRAPE_WARM_TTL), selector and text-stability waits instead
of fixed sleeps, parallel /goto resolution, a background bootstrap keeper,
and a 1.5–3.5s human-like gap between browser jobs.
7. Anti-block research
The repository ships the methodology, not just the result:
python3 -m google_scrape_mcp.probe --quick|--full|--tls|--analyzeruns a controlled endpoint/engine matrix with human-like spacing.Blocked pages are sampled to
~/.cache/google-scrape-mcp/forensics/with counters inblock_stats.json, surfaced bygoogle_status.Adaptive cooldowns are per endpoint family (search/scholar/finance), with escalating backoff and a fail-fast browser cooldown. Burned browser profiles are rotated automatically.
Measured conclusions, including why raw HTTP /search always gets a JS
challenge and why cookies alone do not fix it, are in
RESEARCH.md.
8. Proxy pool
Accepted formats: http://host:port, https://host:port,
socks5://host:port (socks5h normalized), socks4://host:port, with
optional user:pass@, plus bare host:port and host:port:user:pass.
Sources, in priority order:
GOOGLE_SCRAPE_PROXIES: inline list (comma/space/newline separated) or a file path (starting with/,~, or ending in.txt).GOOGLE_SCRAPE_PROXY_FILES: colon-separated file paths.Defaults when present:
~/.config/google-scrape/proxies.txtand~/.cache/google-scrape-mcp/proxies_curated.txt.
Free lists can work here, but only when combined with the bootstrap
cookies: with fresh cookies, clean proxies can pass /search; without them
everything gets a JS challenge. curate is cookie-aware, clears the cookie
jar before probing, limits search concurrency (session cookies plus parallel
IPs looks anomalous), and writes the fastest proxies first.
python3 -m google_scrape_mcp.curate --limit 100 --workers 8Failed proxies get a cooldown. Browser fallback only uses proxies that have succeeded before, so a dead pool never burns minutes.
9. Environment variables
Variable | Default | Purpose |
|
|
|
|
| failed-proxy cooldown (s) |
| extra CA bundle for self-signed HTTPS proxies | |
|
| minimum delay between requests (s) |
|
| request timeout (s) |
|
| proxy attempts per request |
|
| response cache TTL, |
|
| max cache entries |
|
| curl_cffi TLS target |
|
| base HTTP cooldown after a block, doubles per level, capped at 1h |
|
| bootstrap cookie lifetime (s) |
|
| base browser cooldown after a block |
|
| skip the homepage warm-up if warmed more recently |
|
| human-like gap between browser jobs (s) |
|
| background bootstrap keeper, |
|
| save blocked-page samples |
| disable automatic |
10. Security
CodeQL (Python) and Bandit run on every push and weekly.
Dependabot keeps dependencies and GitHub Actions updated, grouped weekly.
Secret scanning with push protection is enabled.
mainis protected against force pushes and deletion, including admins.XML feeds are parsed with
defusedxmlwhen available.Reporting: see
SECURITY.md.
11. Project layout
src/google_scrape_mcp/
server.py MCP tools, engine orchestration, status
client.py HTTP path: sessions, cache, cooldowns, bootstrap cookies
browser.py Camoufox worker: persistent profile, challenges, rotation
parsers.py SERP/RSS/JSON parsing, AI Mode cleanup, shopping cards
proxies.py proxy pool: parsing, rotation, cooldowns, proven-only usage
forensics.py block taxonomy samples and counters
probe.py block-monitoring harness
curate.py proxy curation (liveness + /search capability)Docs: AGENT_GUIDE.md for agents,
RESEARCH.md for the anti-block notes.
12. Known limitations
google_scholar_cited_byis oftenblocked(Google protects that endpoint harder). Thecited_bycount fromgoogle_scholar_searchstill works.Shopping does not expose product URLs in the initial HTML; links render on click.
No Maps/local search, reverse image search, inline AI Overview, or flights.
Featured snippets for FX queries can be noisy;
fx_rateis the clean field.
13. Reliability: this is a cat-and-mouse game
This is an unofficial scraper fighting Google's bot detection. Pretending otherwise would be dishonest. Expect the following:
Raw HTTP
/searchfrom a flagged IP is challenged almost every time; the fast path exists because fresh browser cookies are attached. Browser profiles can burn out, and they get rotated, but sustained volume without good proxies will hitblockedregularly.Free and datacenter proxy pools are mostly dead or rejected. Residential proxies work better and cost money.
Browser sessions are heavy (hundreds of MB, 5-15s per render) and need the Camoufox binary; the fast path exists precisely to avoid them when possible.
RSS/JSON surfaces (news, patents, trends, suggest, translate, finance quotes) are the stable part. Search surfaces are the fragile part.
Results vary with IP reputation, region and time of day.
If you need guaranteed, stable Google results, use an official API. This project trades that stability for zero cost and no key.
14. Legal, ToS and proxy safety
Scraping Google Search violates Google's Terms of Service. You run this at your own risk. The MIT license grants no rights beyond the code and takes no responsibility for your use.
Rate limits, IP reputation and any account consequences are yours to manage. Do not use this for abuse or to attack services.
Treat every proxy as untrusted. A proxy operator can log, inject or modify traffic; a malicious one can serve you forged content. Free proxies are the worst case. Never route credentials or sensitive traffic through pool proxies, and read curated lists as "reachable", not "safe". Prefer residential/VPS proxies you control.
15. License
MIT, see LICENSE.
Available Tools
22 toolsgoogle_ai_modeGoogle Ai ModeARead-onlyIdempotent
Google Mode AI (udm=50): jawaban sintesis + sumber, cocok untuk pertanyaan langsung. Bentuk hasil: answer + sources.
engine: auto | http | proxy | browser (lihat google_web_search). Halaman Mode AI hampir selalu butuh JS; engine auto akan memakai browser.
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), gl, hl, engine. Returns: object
google_books_searchGoogle Books SearchBRead-onlyIdempotent
Scrape Google Books Search (tbm=bks): title, URL, snippet.
engine: auto | http | proxy | browser (lihat google_web_search).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), gl, hl, num, +2 more. Returns: object
google_crawlGoogle CrawlARead-onlyIdempotent
Crawl any URL (e.g. a search result): title, meta, text, outbound links.
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: url (required), max_chars, include_links. Returns: object
google_finance_quoteGoogle Finance QuoteARead-onlyIdempotent
Scrape Google Finance quote: saham, forex, kripto.
Ticker: 'BBCA' + exchange 'IDX', 'AAPL' + 'NASDAQ', atau pair forex 'USD-IDR' (USDIDR/USD/IDR juga diterima, dinormalisasi otomatis).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: ticker (required), hl, exchange. Returns: object
google_fx_rateGoogle Fx RateARead-onlyIdempotent
Kurs langsung dari widget konverter SERP (mis. "1 USD to IDR").
Hasil: fx_rate {rate, from, to, formatted} + results biasa. Lebih tahan terhadap perubahan layout daripada halaman finance, karena membaea widget konverter yang muncul di SERP. Cocok untuk kurs cepat; untuk kurs resmi BI pakai google_kurs_bi.
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: gl, hl, base, quote, +2 more. Returns: object
google_helpGoogle HelpARead-onlyIdempotent
Agent-facing usage guide: tool map, engine semantics, status contract and safe usage patterns. Read this before experimenting.
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: no named parameters. Returns: object
google_image_searchGoogle Image SearchARead-onlyIdempotent
Scrape Google Images (tbm=isch): direct image URLs, page URLs, sizes.
engine: auto | http | proxy | browser (lihat google_web_search).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), gl, hl, num, +2 more. Returns: object
google_kurs_biGoogle Kurs BiARead-onlyIdempotent
Kurs Transaksi Bank Indonesia (Jual/Beli) dari tabel resmi BI.
currency opsional: 'USD', 'EUR', dst (kosong = semua). Halaman BI JS-heavy, jadi engine auto memakai browser; engine 'http' dicoba dulu sebagai jalur murah.
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: engine, currency. Returns: object
google_news_homepageGoogle News HomepageARead-onlyIdempotent
Scrape Google News homepage RSS: top headlines right now.
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: gl, hl, ceid. Returns: object
google_news_searchGoogle News SearchBRead-onlyIdempotent
Scrape Google News: RSS dulu (no block); fallback tab News renderan bila RSS gagal.
engine: auto | http (RSS saja) | proxy | browser (tab News via Camoufox).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), gl, hl, num, +2 more. Returns: object
google_patents_searchGoogle Patents SearchARead-onlyIdempotent
Scrape Google Patents XHR JSON: title, number, inventors, dates, PDF.
page: 1-based (1 = first page). NOTE: page number lives INSIDE the url= query string (page=N), not as an outer param.
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), num, page. Returns: object
google_scholar_cited_byGoogle Scholar Cited ByBRead-onlyIdempotent
Scrape papers citing a Scholar cluster (from cluster_id in scholar results).
engine: auto | http | proxy | browser (lihat google_web_search).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: cluster_id (required), hl, num, start, +1 more. Returns: object
google_scholar_searchGoogle Scholar SearchBRead-onlyIdempotent
Scrape Google Scholar: papers, authors/venue, citations, PDF links.
start: 0-based result offset (unified google_search computes it from page). engine: auto | http | proxy | browser (lihat google_web_search).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), hl, num, start, +3 more. Returns: object
google_searchGoogle SearchARead-onlyIdempotent
One search tool for all Google tabs + pagination (pages 1-10).
tab: web | images | videos | news | books | shopping | scholar | patents | ai. page: 1-10 (each page = next result set; news slices the RSS feed). num: results per page. engine: auto (HTTP cepat, fallback browser bila diblokir) | http (tanpa browser) | proxy (paksa pool proxy) | browser (langsung Camoufox).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), gl, hl, num, +3 more. Returns: object
google_shopping_searchGoogle Shopping SearchARead-onlyIdempotent
Scrape Google Shopping (tbm=shop): product title, URL, snippet.
engine: auto | http | proxy | browser (lihat google_web_search).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), gl, hl, num, +2 more. Returns: object
google_statusGoogle StatusARead-onlyIdempotent
Health check: which Google endpoints are reachable from this IP right now, plus proxy pool, cache, cooldowns and forensic counters.
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: no named parameters. Returns: object
google_suggestGoogle SuggestARead-onlyIdempotent
Google autocomplete suggestions (no block).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), hl. Returns: object
google_translateGoogle TranslateARead-onlyIdempotent
Translate text via Google's unofficial gtx endpoint (no key).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: text (required), source, target. Returns: object
google_trends_dailyGoogle Trends DailyBRead-onlyIdempotent
Google daily trending searches RSS (no block): topic, traffic, links.
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: hl, geo. Returns: object
google_trends_interestGoogle Trends InterestARead-onlyIdempotent
Google Trends interest-over-time via internal explore API (no key).
keywords: comma-separated, max 5 (e.g. "opencode, cursor, windsurf"). timeframe: e.g. 'now 7-d', 'today 12-m', 'today 5-y', 'all'. engine: auto (HTTP → fallback browser) | http (HTTP saja) | browser.
NOTE: endpoint widgetdata Trends sering menolak request non-browser (HTTP 400/401) walau token explore valid — bila itu terjadi, engine auto memakai Camoufox: fetch dijalankan dari dalam halaman Trends sehingga cookies/fingerprint ikut. Bila tetap gagal, status "limited".
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: keywords (required), hl, tz, geo, +2 more. Returns: object
google_video_searchGoogle Video SearchARead-onlyIdempotent
Scrape Google Video Search (tbm=vid): title, URL, snippet.
engine: auto | http | proxy | browser (lihat google_web_search).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), gl, hl, num, +2 more. Returns: object
google_web_searchGoogle Web SearchARead-onlyIdempotent
Scrape Google Web Search: organic results, featured snippet, related searches.
engine: auto (HTTP cepat, fallback browser bila diblokir) | http (tanpa browser) | proxy (paksa pool proxy) | browser (langsung Camoufox headless, tanpa proxy/API key).
Rate-limited by Google: avoid rapid repeats; when the result is blocked, wait or switch to an RSS-based tool.
Inputs: query (required), gl, hl, num, +2 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Many tools duplicate functionality: google_search can perform all the specialized searches (web, images, news, etc.), so it's unclear when to use a specialized tool versus the unified one. Descriptions mention engine and rate limits but don't resolve the core overlap.
All tools share the google_ prefix and snake_case, which is consistent. However, patterns vary (some are verb-based like google_translate, others are noun-based like google_finance_quote), so minor deviations exist.
22 tools is on the high end for a single server; while many verticals are distinct, the unified search tool makes several redundant, leading to over-provisioning.
The surface covers most major Google search verticals (web, images, video, news, books, shopping, scholar, patents, finance, trends, AI) plus utility tools. Missing verticals like maps, jobs, or local could be minor gaps for some use cases, but core scraping needs are met.
Maintenance
Related MCP Connectors
Search Google straight from your AI agent. Web results, images, videos, news, products, scholarly ar
Real-time Google search (AI Overview, People also ask), Maps and Jobs. API key or x402 per call.
Google search, news, maps, webpages, cited answers, research and ChatGPT/Gemini answers for agents.
Google Search, News, Shopping, Images, Maps and AI Mode as data for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search Google for web results, images, videos, news, products, scholarly articles, and patents, plus local business lookup with contact details and ratings, and full text extraction from any page, accepting up to 100 queries in a single call.MIT
- FlicenseNot gradedqualityAmaintenanceEnables agents to run real-time searches across Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay, and other engines, with automatic detection of answer boxes, organic results, news, images, and shopping listings. Supports compact or full JSON and token-efficient Markdown output, along with weather, stock, and interactive table/dashboard views in compatible hosts.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to run real Google searches through a self-hosted browser on their own IP or a proxy, returning typed JSON with organic results rewritten to their true destination URLs, AI Overviews, People also ask, related searches, and structured block errors. Requires no API key and works over MCP with any client.37 PyPI10MIT
- AlicenseNot gradedqualityCmaintenanceEnables an AI to run Google searches and receive structured JSON results (organic listings, AI Overview, People Also Ask, ads, related searches and other blocks) by driving a background headless Chrome on the user's own machine, with no SERP API, proxy or per-query cost. Results reflect the real page a person would get from that connection, and can be tuned by country, language, location, page count and returned sections.MIT