Google Search Tool

by @web-agent-master

Google Search Tool MCP Server

Google Search Tool runs Google queries through a local Playwright browser and returns structured results. It supports both command-line research and MCP access for AI assistants without a search API key.

Server facts

Google Search Tool MCP Server

GitHub stars

623

Last commit

Apr 6, 2025

Runtime

node

License

—

Tech

Runtime
nodeTypeScript
Transports
stdio
Remote access
No

Activity

GitHub stars
623
Last commit
Data as of

Tags

  • Google Search
  • Playwright
  • Typescript
  • Web Search

Overview

Google Search Tool gives AI assistants and command-line users a browser-driven way to query Google. Written in TypeScript for Node.js, it uses Playwright rather than a paid search-results API. Parsed responses contain result titles, destination links, and snippets in JSON. The same project includes a separate MCP entry point so an assistant such as Claude can request current search information. Users can adjust the result limit and timeout, or show the browser when investigating a problem. Browser fingerprint variation, stored session state, and switching between hidden and visible browsing are documented techniques for handling verification challenges.

For debugging search-page changes, the tool can retrieve HTML with scripts and styles removed instead of returning parsed results. Saving that HTML also creates a full-page screenshot, and an output-path option controls where the HTML goes. Setup requires Node.js 16 or later and Playwright browser binaries; source installation additionally involves dependency installation, compilation, and package linking. The README includes Windows-specific launch alternatives and troubleshooting guidance. It also warns against frequent requests, notes that some locations may need a proxy, and asks users to follow Google's policies. Saved browser state contains cookies and storage information, so it needs careful handling rather than being treated as a harmless log file.

Install & configure

Requirements

  • Node.js 16 or later
  • Playwright browser binaries
  • An MCP-compatible client
Documented launch / install command
npx google-search-mcp

The README uses google-search-mcp for MCP, distinct from the search CLI. Its source workflow installs dependencies, builds the project, and links the package globally. Browser binaries may download on first use. No required environment variables are stated.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Desktop configuration
{
  "mcpServers": {
    "google-search": {
      "command": "npx",
      "args": [
        "google-search-mcp"
      ],
      "env": {}
    }
  }
}

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "google-search": {
      "command": "npx",
      "args": [
        "google-search-mcp"
      ],
      "env": {}
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "google-search": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "google-search-mcp"
      ],
      "env": {}
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "google-search": {
      "command": "npx",
      "args": [
        "google-search-mcp"
      ],
      "env": {}
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "google-search": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "google-search-mcp"
      ],
      "env": {}
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Use cases

  • Give an MCP assistant current Google search results.
  • Collect titles, links, and snippets from command-line queries.
  • Capture search-page HTML and screenshots to investigate parsing changes.
  • Inspect verification problems in a visible browser.

Strengths

  • Searches do not require a paid SERP API key.
  • Provides both CLI and MCP entry points.
  • Includes HTML capture, screenshots, and browser-state reuse.

Limitations

  • Google verification and request blocking remain operational concerns.
  • Requires Playwright browser installation.
  • Saved browser state contains sensitive session information.

Google Search Tool setup notes

  • Google Search Tool's stdio example needs a client that launches local processes.
  • Google Search Tool has no recorded license; confirm reuse terms in its repository.

Frequently asked questions

No. The documented approach performs searches locally through Playwright rather than a keyed search API.

Related MCP servers