MCP directory
GS

Google Surf Mcp

by github.com/HarimxChoi · v1.1.8 · updated Nov 19, 2026

Web, academic and code search with graph RAG, data lineage, ontology and cross-project schema links.

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • SEARCH_APIsecret

    SearchApi API key. Required only for SearchApi primary or fallback modes.

  • SURF_SEARCH_PROVIDER

    Provider for search and search_parallel: browser, searchapi, or fallback. Defaults to browser.

  • SURF_SCHOLAR_PROVIDER

    Provider for scholar_search: browser, searchapi, or fallback. Defaults to browser.

  • SURF_BROWSER_ENGINE

    Browser engine: auto, native, or playwright. Auto uses one hidden native Chrome broker shared across local MCP sessions.

  • CHROME_PATH

    Absolute path to the Chrome binary. Auto-detected on Windows/macOS/Linux when omitted.

  • SURF_PROFILE_ROOT

    Directory for the warm Chrome profile. Defaults to ~/.google-surf-mcp.

  • SURF_RESEARCH

    Enable Google Surf Auto Ontology: local project memory, evidence capture, and hybrid retrieval. Defaults to true. The SURF_RESEARCH setting name is unchanged.

  • SURF_RETRIEVAL_MODE

    Shared route for search and search_parallel: live or hybrid. Defaults to hybrid.

  • SURF_RESEARCH_ROOT

    Embedded SurrealDB data directory. Defaults to <profile>/research.

  • SURF_RESEARCH_VECTOR_MODEL

    Local model for HNSW retrieval and shared reranking. Defaults to Xenova/multilingual-e5-small; use off to disable.

  • SURF_RESEARCH_VECTOR_LOW_MEMORY

    Disable ONNX CPU memory arena and memory pattern. Defaults to true.

  • SURF_RESEARCH_VECTOR_THREADS

    ONNX intra-op thread count from 1 to 16. Defaults to 4.

  • SURF_RESEARCH_REPO_AUTO

    Sparse-index at most one eligible small GitHub repository per search call. Defaults to true.

  • SURF_RESEARCH_REPO_AUTO_MAX_MB

    Maximum searchable repository source-text size in MB. Assets are excluded. Defaults to 20.

  • SURF_RESEARCH_REPO_AUTO_MAX_FILES

    Maximum repository source file count for automatic indexing. Defaults to 2000.

  • SURF_RESEARCH_BROKER_IDLE_MS

    Shared Auto Ontology broker idle lifetime in milliseconds. Defaults to 60000.

  • SURF_RESEARCH_READ_CONCURRENCY

    Maximum concurrent Auto Ontology broker reads. Defaults to 4.

  • SURF_RESEARCH_QUERY_TIMEOUT_MS

    Timeout per embedded SurrealDB query in milliseconds. Defaults to 120000; timed-out retrieval lanes are reported as partial.

  • GITHUB_TOKENsecret

    Optional token that raises GitHub API limits for repository inspection.

  • SURF_LOCALE

    Browser locale, e.g. en-US.

  • SURF_TZ

    IANA timezone, e.g. America/New_York. Defaults to system timezone.

  • SURF_HEADLESS

    Controls Playwright extraction, compatibility, and recovery paths. Native search hides normal system Chrome and shows it only for CAPTCHA recovery.

  • SURF_IDLE_CLOSE_MS

    Idle ms before closing the sequential ctx and pool. 0 disables idle auto-close. Defaults to 30000.

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

  • SURF_LLM_HEAL

    Enable the optional workflow-only LLM selector repair path. Defaults to false.

  • SURF_LLM_PROVIDER

    LLM selector repair provider: anthropic or orcarouter. Defaults to anthropic.

  • SURF_LLM_MODEL

    Optional model override. OrcaRouter defaults to orcarouter/auto.

  • ANTHROPIC_API_KEYsecret

    Anthropic API key for optional LLM-assisted selector repair.

  • ORCAROUTER_API_KEYsecret

    OrcaRouter API key for optional LLM-assisted selector repair.

More MCP servers