跳到正文
Skillpedia
● 免费开源💻 本地🔓 无需 API 密钥网页与浏览器

Google Surf MCP

让你的 AI 智能体搜索网页、论文和代码,并把结果保存在本地项目知识图谱中。

291 GitHub 星标作者 HarimxChoi许可证 MIT更新于 24天前

如何安装

这个 MCP 是本地的:在你的电脑上运行。

适用于电脑上安装的应用(Claude Desktop、Claude Code、Cursor、VS Code 等)。选择你的应用:

粘贴到终端:

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

需要填写的内容

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

好了!现在试试

重启应用,把下面任意一条请求粘贴到聊天里:

搜索关于检索增强生成的最新论文,并阅读排名前三的内容。
提取这个 PDF 的文本,并将其添加到我的项目记忆中。

简介

Google Surf 使用本地 Chrome 搜索 Google 和 Scholar,提取网页和 PDF,并把结果保存在本地项目记忆中。新的搜索会把已存储的知识与最新的网页结果结合起来。除非有可验证的联系(例如匹配的 DOI),各个项目都保持相互独立。

它能做什么

  • search:网页搜索,可选择阅读结果
  • search_parallel:同时运行多个搜索
  • extract:阅读网页和 PDF
  • scholar_search:查找学术论文
  • project_memory_search:搜索已存储的项目知识
  • project_memory:管理记忆并导出图谱
  • health:检查服务器

什么时候用

  • ›当你需要持续数天研究某个话题,并希望重用过去的发现时
  • ›当你需要查找并阅读论文和代码仓库时
  • ›当你想要一个不需要 API 密钥的搜索工具时

你需要准备

Node.js 22.12.0 或更新版本,以及用于浏览器搜索的 Google Chrome 或 Chromium。无需 API 密钥。SearchApi 密钥为可选。

搭配的技能

⭐ Skillpedia MCP · 免费你的智能体自己找到合适的技能安装我们的 MCP,智能体需要时会在 15,000+ 个技能中搜索。免费安装 →

常见问题

它是免费的吗?

浏览器搜索无需 API 密钥。SearchApi 是可选的,需要你自己的账户和积分。

它会把数据存储在线上吗?

项目记忆是本地的,使用嵌入式数据库。不需要外部服务器。

它会使用我的 Chrome 配置文件吗?

不会。它使用专用的未登录配置文件,从不读取或复制你自己的配置文件。

我能关闭记忆功能吗?

能。设置 SURF_RESEARCH=false,即可只使用搜索和提取功能。

验证码怎么办?

它能检测验证码并提供恢复步骤,也可以切换到 SearchApi。

如何安装?

将 npx -y google-surf-mcp 添加到你的客户端配置中,然后重启。

如果不能用

  • ›检查是否已安装 Node 22.12.0 或更新版本以及 Chrome。
  • ›如果自动引导失败,运行 npm run bootstrap,或设置 CHROME_PATH。
  • ›如果浏览器搜索被阻止,请配合 SearchApi 密钥使用 SURF_SEARCH_PROVIDER=fallback。

每周 5 个新技能,1 分钟读完。