Skip to content
MCP server

Google Surf MCP

Search web, papers and code locally, then build a private knowledge graph of what you read

Runs locally

Google Surf MCP is an open-source MCP server for web search and scraping. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted, macOS
Runs
Locally
Version
1.1.8
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add google-surf-mcp --env SEARCH_API='<SEARCH_API>' --env GITHUB_TOKEN='<GITHUB_TOKEN>' --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' --env ORCAROUTER_API_KEY='<ORCAROUTER_API_KEY>' -- npx -y google-surf-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "google-surf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-surf-mcp"
      ],
      "env": {
        "SEARCH_API": "<SEARCH_API>",
        "GITHUB_TOKEN": "<GITHUB_TOKEN>",
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "google-surf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-surf-mcp"
      ],
      "env": {
        "SEARCH_API": "<SEARCH_API>",
        "GITHUB_TOKEN": "<GITHUB_TOKEN>",
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "google-surf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-surf-mcp"
      ],
      "env": {
        "SEARCH_API": "<SEARCH_API>",
        "GITHUB_TOKEN": "<GITHUB_TOKEN>",
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "google-surf-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "google-surf-mcp"
      ],
      "env": {
        "SEARCH_API": "<SEARCH_API>",
        "GITHUB_TOKEN": "<GITHUB_TOKEN>",
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add google-surf-mcp --env SEARCH_API='<SEARCH_API>' --env GITHUB_TOKEN='<GITHUB_TOKEN>' --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' --env ORCAROUTER_API_KEY='<ORCAROUTER_API_KEY>' -- npx -y google-surf-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.google-surf-mcp]
command = "npx"
args = ["-y", "google-surf-mcp"]
env = { SEARCH_API = "<SEARCH_API>", GITHUB_TOKEN = "<GITHUB_TOKEN>", ANTHROPIC_API_KEY = "<ANTHROPIC_API_KEY>", ORCAROUTER_API_KEY = "<ORCAROUTER_API_KEY>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "google-surf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-surf-mcp"
      ],
      "env": {
        "SEARCH_API": "<SEARCH_API>",
        "GITHUB_TOKEN": "<GITHUB_TOKEN>",
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "google-surf-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "google-surf-mcp"
          ],
          "env": {
            "SEARCH_API": "<SEARCH_API>",
            "GITHUB_TOKEN": "<GITHUB_TOKEN>",
            "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
            "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e SEARCH_API='<SEARCH_API>' -e GITHUB_TOKEN='<GITHUB_TOKEN>' -e ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' -e ORCAROUTER_API_KEY='<ORCAROUTER_API_KEY>' google-surf-mcp npx -- -y google-surf-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "google-surf-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "google-surf-mcp"
          ],
          "env": {
            "SEARCH_API": "<SEARCH_API>",
            "GITHUB_TOKEN": "<GITHUB_TOKEN>",
            "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
            "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "google-surf-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "google-surf-mcp"
          ],
          "env": {
            "SEARCH_API": "<SEARCH_API>",
            "GITHUB_TOKEN": "<GITHUB_TOKEN>",
            "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
            "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "google-surf-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "google-surf-mcp"
          ],
          "env": {
            "SEARCH_API": "<SEARCH_API>",
            "GITHUB_TOKEN": "<GITHUB_TOKEN>",
            "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
            "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "google-surf-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "google-surf-mcp"
          ],
          "env": {
            "SEARCH_API": "<SEARCH_API>",
            "GITHUB_TOKEN": "<GITHUB_TOKEN>",
            "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
            "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "google-surf-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "google-surf-mcp"
          ],
          "env": {
            "SEARCH_API": "<SEARCH_API>",
            "GITHUB_TOKEN": "<GITHUB_TOKEN>",
            "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
            "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "google-surf-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "google-surf-mcp"
          ],
          "env": {
            "SEARCH_API": "<SEARCH_API>",
            "GITHUB_TOKEN": "<GITHUB_TOKEN>",
            "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
            "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "google-surf-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "google-surf-mcp"
          ],
          "env": {
            "SEARCH_API": "<SEARCH_API>",
            "GITHUB_TOKEN": "<GITHUB_TOKEN>",
            "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
            "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • 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 Google Surf Auto Ontology: local project memory, evidence capture, and hybrid retrieval. Defaults to true. The SURF_RESEARCH setting name is unchanged.
  • 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 Auto Ontology broker idle lifetime in milliseconds. Defaults to 60000.
  • SURF_RESEARCH_READ_CONCURRENCYMaximum concurrent Auto Ontology 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.

About Google Surf MCP

Google Surf MCP runs searches through a system Chrome profile, with no API key needed, and can read pages, PDFs and repositories in the same call. Browser search is the default; SearchApi is an optional primary or fallback provider that needs your own account and credits. The README says it uses a dedicated logged-out profile and never reads your personal Chrome profile, and it handles sponsored results, knowledge panels and CAPTCHA detection.

Its distinguishing part is Auto Ontology, enabled by default. Search results are saved into a local knowledge graph (embedded SurrealDB with a local multilingual embedding model), where plans, experiments and decisions can be recorded too. Tree-sitter links code files, symbols, imports and calls, and projects stay separate unless linked by DOIs, repository URLs or registered aliases. Graphs export as HTML, PNG, JSON, Graphviz DOT and Neo4j bundles.

It needs Node.js 22.12 or newer and Chrome or Chromium, is MIT licensed, and can be set to skip the database and embedding model with SURF_RESEARCH=false. On 32 held-out queries its BM25 plus RRF re-ranking scored nDCG@5 0.8971 against 0.8949 for the original ranking.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 4 of 7 tools read data; 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

searchName suggests: reads
Finds new web sources and can read them in the same call.
search_parallelName suggests: reads
Runs several searches in parallel.
scholar_searchName suggests: reads
Finds Google Scholar paper metadata.
extract
Reads a page, PDF or repository from a known URL.
project_memory_searchName suggests: reads
Searches indexed project knowledge locally, without live web search.
project_memory
Manages projects, saves records, indexes approved local folders and exports graphs.
health
Reports search and local runtime status.

What it does

Keyless browser search
Searches through a dedicated logged-out Chrome profile.
Search and read together
Fetches pages, PDFs and repositories in the same call.
Auto Ontology graph
Saves results into a local, typed knowledge graph with data lineage.
Code indexing
Tree-sitter links files, symbols, imports and function calls.
Cross-project retrieval
Exact, keyword, semantic and graph search with RRF fusion and a reranker.
Graph export
HTML, PNG, JSON, DOT and Neo4j import bundles.

Good for

  • Research a topic and keep sources in a local graph
  • Look up papers on Google Scholar from an agent
  • Search indexed project knowledge without hitting the web
  • Export a project's knowledge graph for Neo4j

Pricing

Open source

MIT licensed; SearchApi provider is optional and needs your own account.

Google Surf MCP FAQ

Does Google Surf MCP need an API key?

No. Browser search works without one; SearchApi is optional.

Which Node.js version is required?

Node.js 22.12 or newer, plus Chrome or Chromium for browser search.

Where is data stored?

Locally, in an embedded SurrealDB directory under your profile folder by default.

Which licence is Google Surf MCP under?

MIT.

Is Google Surf MCP free?

Yes. Google Surf MCP is open source, so you can use and self-host it for free.

How do I add Google Surf MCP to Claude Code?

Run this command in your terminal: claude mcp add google-surf-mcp --env SEARCH_API='<SEARCH_API>' --env GITHUB_TOKEN='<GITHUB_TOKEN>' --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' --env ORCAROUTER_API_KEY='<ORCAROUTER_API_KEY>' -- npx -y google-surf-mcp

What are the best alternatives to Google Surf MCP?

The closest alternatives to Google Surf MCP are Scrapling MCP Server, Codebase Memory, XERJ, Firecrawl MCP Server and Claude Code Ultimate Guide.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers