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
| Name | What it is | Required |
|---|---|---|
SEARCH_API | SearchApi API key. Required only for SearchApi primary or fallback modes. | No |
SURF_SEARCH_PROVIDER | Provider for search and search_parallel: browser, searchapi, or fallback. Defaults to browser. | No |
SURF_SCHOLAR_PROVIDER | Provider for scholar_search: browser, searchapi, or fallback. Defaults to browser. | No |
SURF_BROWSER_ENGINE | Browser engine: auto, native, or playwright. Auto uses one hidden native Chrome broker shared across local MCP sessions. | No |
CHROME_PATH | Absolute path to the Chrome binary. Auto-detected on Windows/macOS/Linux when omitted. | No |
SURF_PROFILE_ROOT | Directory for the warm Chrome profile. Defaults to ~/.google-surf-mcp. | No |
SURF_RESEARCH | Enable local project memory and hybrid retrieval. Defaults to true. | No |
SURF_RETRIEVAL_MODE | Shared route for search and search_parallel: live or hybrid. Defaults to hybrid. | No |
SURF_RESEARCH_ROOT | Embedded SurrealDB data directory. Defaults to <profile>/research. | No |
SURF_RESEARCH_VECTOR_MODEL | Local model for HNSW retrieval and shared reranking. Defaults to Xenova/multilingual-e5-small; use off to disable. | No |
SURF_RESEARCH_VECTOR_LOW_MEMORY | Disable ONNX CPU memory arena and memory pattern. Defaults to true. | No |
SURF_RESEARCH_VECTOR_THREADS | ONNX intra-op thread count from 1 to 16. Defaults to 4. | No |
SURF_RESEARCH_REPO_AUTO | Sparse-index at most one eligible small GitHub repository per search call. Defaults to true. | No |
SURF_RESEARCH_REPO_AUTO_MAX_MB | Maximum searchable repository source-text size in MB. Assets are excluded. Defaults to 20. | No |
SURF_RESEARCH_REPO_AUTO_MAX_FILES | Maximum repository source file count for automatic indexing. Defaults to 2000. | No |
SURF_RESEARCH_BROKER_IDLE_MS | Shared research broker idle lifetime in milliseconds. Defaults to 60000. | No |
SURF_RESEARCH_READ_CONCURRENCY | Maximum concurrent research broker reads. Defaults to 4. | No |
SURF_RESEARCH_QUERY_TIMEOUT_MS | Timeout per embedded SurrealDB query in milliseconds. Defaults to 120000; timed-out retrieval lanes are reported as partial. | No |
GITHUB_TOKEN | Optional token that raises GitHub API limits for repository inspection. | No |
SURF_LOCALE | Browser locale, e.g. en-US. | No |
SURF_TZ | IANA timezone, e.g. America/New_York. Defaults to system timezone. | No |
SURF_HEADLESS | Controls Playwright extraction, compatibility, and recovery paths. Native search hides normal system Chrome and shows it only for CAPTCHA recovery. | No |
SURF_IDLE_CLOSE_MS | Idle ms before closing the sequential ctx and pool. 0 disables idle auto-close. Defaults to 30000. | No |
SURF_ALLOW_PRIVATE | Set 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_HEAL | Enable the optional workflow-only LLM selector repair path. Defaults to false. | No |
SURF_LLM_PROVIDER | LLM selector repair provider: anthropic or orcarouter. Defaults to anthropic. | No |
SURF_LLM_MODEL | Optional model override. OrcaRouter defaults to orcarouter/auto. | No |
ANTHROPIC_API_KEY | Anthropic API key for optional LLM-assisted selector repair. | No |
ORCAROUTER_API_KEY | OrcaRouter 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 resultssearch_parallel: run several searches at onceextract: read web pages and PDFsscholar_search: find academic papersproject_memory_search: search stored project knowledgeproject_memory: manage memory and export graphshealth: 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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
keenable-searchLets your agent search the web and read pages without an API key, returning a text snippet for each result and full text for any known URL.papers-skillHelps your agent research academic papers. It can find papers, check citations, download PDFs, and extract text. Useful for academic research.exa-searchHelps your agent search the web for scientific and technical content. It's useful for finding articles, current research, and extracting information from pages or PDFs.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.