# Google Surf MCP

> Google Surf MCP is an open-source MCP server for web search and scraping. Search web, papers and code locally, then build a private knowledge graph of what you read. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/harimxchoi/google-surf-mcp
- **MCP Registry name:** io.github.HarimxChoi/google-surf-mcp
- **Categories:** [web search and scraping](https://ai-powered.com/categories/web-search-and-scraping), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

```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 Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
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
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```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>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```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>"
      }
    }
  }
}
```

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## Tools

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.

- `search` (name suggests: reads): Finds new web sources and can read them in the same call.
- `search_parallel` (name suggests: reads): Runs several searches in parallel.
- `scholar_search` (name suggests: reads): Finds Google Scholar paper metadata.
- `extract`: Reads a page, PDF or repository from a known URL.
- `project_memory_search` (name 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.

## 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.

## Alternatives

- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Firecrawl MCP Server](https://ai-powered.com/mcp/firecrawl-mcp-server): Firecrawl MCP Server is a freemium MCP server for web search and scraping.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Douyin_TikTok_Download_API](https://ai-powered.com/mcp/douyin-tiktok-download-api): Douyin_TikTok_Download_API is an open-source MCP server for web search and scraping.
- [SearXNG Search](https://ai-powered.com/mcp/searxng-search): SearXNG Search is an open-source MCP server for web search and scraping.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/google-surf-mcp
