Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyWeb and browser

Google Surf MCP

Lets your AI agent search the web, papers and code, and keep results in a local project knowledge graph.

291 stars on GitHubby HarimxChoiLicense MITUpdated 24 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add google-surf -- npx -y google-surf-mcp

What to fill in

NameWhat it isRequired
SEARCH_APISearchApi API key. Required only for SearchApi primary or fallback modes.No
SURF_SEARCH_PROVIDERProvider for search and search_parallel: browser, searchapi, or fallback. Defaults to browser.No
SURF_SCHOLAR_PROVIDERProvider for scholar_search: browser, searchapi, or fallback. Defaults to browser.No
SURF_BROWSER_ENGINEBrowser engine: auto, native, or playwright. Auto uses one hidden native Chrome broker shared across local MCP sessions.No
CHROME_PATHAbsolute path to the Chrome binary. Auto-detected on Windows/macOS/Linux when omitted.No
SURF_PROFILE_ROOTDirectory for the warm Chrome profile. Defaults to ~/.google-surf-mcp.No
SURF_RESEARCHEnable local project memory and hybrid retrieval. Defaults to true.No
SURF_RETRIEVAL_MODEShared route for search and search_parallel: live or hybrid. Defaults to hybrid.No
SURF_RESEARCH_ROOTEmbedded SurrealDB data directory. Defaults to <profile>/research.No
SURF_RESEARCH_VECTOR_MODELLocal model for HNSW retrieval and shared reranking. Defaults to Xenova/multilingual-e5-small; use off to disable.No
SURF_RESEARCH_VECTOR_LOW_MEMORYDisable ONNX CPU memory arena and memory pattern. Defaults to true.No
SURF_RESEARCH_VECTOR_THREADSONNX intra-op thread count from 1 to 16. Defaults to 4.No
SURF_RESEARCH_REPO_AUTOSparse-index at most one eligible small GitHub repository per search call. Defaults to true.No
SURF_RESEARCH_REPO_AUTO_MAX_MBMaximum searchable repository source-text size in MB. Assets are excluded. Defaults to 20.No
SURF_RESEARCH_REPO_AUTO_MAX_FILESMaximum repository source file count for automatic indexing. Defaults to 2000.No
SURF_RESEARCH_BROKER_IDLE_MSShared research broker idle lifetime in milliseconds. Defaults to 60000.No
SURF_RESEARCH_READ_CONCURRENCYMaximum concurrent research broker reads. Defaults to 4.No
SURF_RESEARCH_QUERY_TIMEOUT_MSTimeout per embedded SurrealDB query in milliseconds. Defaults to 120000; timed-out retrieval lanes are reported as partial.No
GITHUB_TOKENOptional token that raises GitHub API limits for repository inspection.No
SURF_LOCALEBrowser locale, e.g. en-US.No
SURF_TZIANA timezone, e.g. America/New_York. Defaults to system timezone.No
SURF_HEADLESSControls Playwright extraction, compatibility, and recovery paths. Native search hides normal system Chrome and shows it only for CAPTCHA recovery.No
SURF_IDLE_CLOSE_MSIdle ms before closing the sequential ctx and pool. 0 disables idle auto-close. Defaults to 30000.No
SURF_ALLOW_PRIVATESet to 'true' to allow extract on private/loopback addresses (localhost, 10.x, 192.168.x, 169.254.x, etc). Default blocks them as an SSRF guard.No
SURF_LLM_HEALEnable the optional workflow-only LLM selector repair path. Defaults to false.No
SURF_LLM_PROVIDERLLM selector repair provider: anthropic or orcarouter. Defaults to anthropic.No
SURF_LLM_MODELOptional model override. OrcaRouter defaults to orcarouter/auto.No
ANTHROPIC_API_KEYAnthropic API key for optional LLM-assisted selector repair.No
ORCAROUTER_API_KEYOrcaRouter API key for optional LLM-assisted selector repair.No

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Search for recent papers on retrieval augmented generation and read the top three.
Extract the text of this PDF and add it to my project memory.

What it is

Google Surf searches Google and Scholar with a local Chrome, extracts pages and PDFs, and stores results in a local project memory. New searches combine stored knowledge with fresh web results. Projects stay separate unless a verifiable link, such as a matching DOI, connects them.

What it can do

  • search: web search with optional reading of results
  • search_parallel: run several searches at once
  • extract: read web pages and PDFs
  • scholar_search: find academic papers
  • project_memory_search: search stored project knowledge
  • project_memory: manage memory and export graphs
  • health: check the server

When to use

  • β€ΊWhen you research a topic over days and want past findings reused
  • β€ΊWhen you need papers and code repositories found and read
  • β€ΊWhen you want a search tool that needs no API key

What you need

Node.js 22.12.0 or newer and Google Chrome or Chromium for browser search. No API key is needed. A SearchApi key is optional.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free?

Browser search needs no API key. SearchApi is optional and needs your own account and credits.

Does it store data online?

Project memory is local and uses an embedded database. No external server is needed.

Does it use my Chrome profile?

No. It uses a dedicated logged-out profile and never reads or copies your own.

Can I turn memory off?

Yes. Set SURF_RESEARCH=false to use search and extraction only.

What about CAPTCHAs?

It detects CAPTCHAs and has recovery steps, and can fall back to SearchApi.

How do I install it?

Add npx -y google-surf-mcp to your client config and restart.

If it does not work

  • β€ΊCheck that Node 22.12.0 or newer and Chrome are installed.
  • β€ΊIf auto-bootstrap fails, run npm run bootstrap or set CHROME_PATH.
  • β€ΊUse SURF_SEARCH_PROVIDER=fallback with a SearchApi key if browser search is blocked.

5 new skills a week. 1 minute to read.