Gsearch logo

Gsearch

Self-hosted Google Search over MCP with structured results, AI Overviews, related questions, and real destination URLs.

Install Gsearch

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "gsearch-2": {
      "command": "uvx",
      "args": [
        "--from",
        "gsearch-agent",
        "gsearch"
      ],
      "env": {
        "GSEARCH_PROXY": "YOUR_VALUE_HERE",
        "GSEARCH_DATA_LIMIT_MB": "YOUR_VALUE_HERE",
        "GSEARCH_ENV_FILE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

gsearch MCP server runs real Google Search through a Camoufox Firefox browser and returns the rendered results as structured JSON. Its MCP tools cover searching, reading result pages, resolving Google redirect links, and retrieving the top pages. It runs locally without an API key, using your IP or an optional HTTP, HTTPS, or SOCKS5 proxy. Reach for it when an agent needs Google’s index and page data rather than results from a separate search provider.

Use cases

  • Search Google for current technical documentation
  • Retrieve the top pages for an agent to summarize
  • Find pages from a specific domain or date range
  • Resolve search-result redirects to destination URLs
  • Inspect People also ask and AI Overview content

Key features

  • Google results as typed JSON
  • AI Overview and People also ask extraction
  • Real destination URL resolution
  • Page fetching and top-result text reading
  • Camoufox Firefox browser execution
  • Optional proxy and data-limit configuration

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 34d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · gsearch-agent (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars10Stargazers on the source repository.
Last commit27d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Gsearch works

What gsearch does

gsearch exposes Google Search to MCP-compatible agents without requiring a Google Search API key or hosted search account. A query can return organic results with titles, snippets, sites, and destination URLs, along with supported Google result features such as answer boxes, top stories, videos, the AI Overview, People also ask, and related searches.

The server also supports follow-up page retrieval. Agents can fetch a selected page, resolve Google’s redirect links for a result set, or read the text of the top pages together with search results. Responses use typed JSON, and web-derived strings are identified as untrusted content.

How it works

A real Firefox instance based on Camoufox loads Google’s results page instead of making a plain HTTP request. The browser runs on the machine hosting gsearch, using that machine’s IP unless a proxy is configured. This approach is intended to handle Google’s JavaScript-driven pages and return the page elements exposed by the search result.

The server uses the MCP stdio pattern: an MCP client starts gsearch-mcp and communicates with it through the process. Search blocks are returned as structured errors when Google presents a block, including a suggested retry_after_s value, rather than being reported as an empty result set.

Setup and configuration

Install the Python package with uv tool install gsearch-agent or pipx install gsearch-agent. Run gsearch setup once to download the browser, which requires roughly 1 GB, and to print an MCP configuration. The generated command can then be added to an MCP client. A uvx configuration is also available after fetching the browser with uvx --from gsearch-agent gsearch setup.

The documented client examples use Claude Desktop and Cursor. Claude Desktop stores the server entry in claude_desktop_config.json; Cursor accepts it in ~/.cursor/mcp.json or a project-level .cursor/mcp.json.

Configuration can be passed through the MCP client’s environment block or a .env file. Set GSEARCH_ENV_FILE to the absolute path of that file. GSEARCH_PROXY accepts common HTTP, HTTPS, and SOCKS5 proxy formats, including credentials and session placeholders. GSEARCH_DATA_LIMIT_MB sets the data limit.

Without a proxy, the documented limit is at most 20 searches per hour on the local IP. Proxy use can provide another route, but traffic and proxy costs remain the operator’s responsibility.

Tools and capabilities

  • google_search performs a Google query and returns structured result data.
  • fetch_page follows a result and retrieves the page selected by the agent.
  • resolve_links resolves Google’s result redirects to destination URLs for a result set.
  • read_top reads the text of the top result pages along with the search response.
  • Search output can include organic results, answer boxes, top stories, videos, AI Overview, People also ask, and related searches.
  • Structured block errors include retry timing when Google blocks a request.

Limitations and notes

Google may rate-limit or block automated searches. The project reports that unproxied use is limited and warns that automated Google Search access may conflict with Google’s Terms of Service; operators should review the legal and responsible-use guidance before running live searches.

The browser download is large, and live searches depend on Google’s response, the configured IP or proxy, and the browser session. A proxy is optional, but proxy traffic can consume the configured data allowance. Search output is web content and should be treated as untrusted when passed to an agent or application.

The project is licensed under MIT and requires Python 3.12 or newer.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gsearch

gsearch is an MCP server that connects AI agents to live Google Search through a Camoufox Firefox browser. Its main tools search Google, fetch selected result pages, resolve Google redirect links, and read the top pages. It runs locally without a search API key and returns structured JSON, including supported Google result features.

Install it with `uv tool install gsearch-agent` or `pipx install gsearch-agent`, then run `gsearch setup`. Setup downloads the browser and prints an MCP configuration containing the `gsearch-mcp` command. You can also use `uvx` after fetching the browser with the setup command.

Yes, gsearch works with Cursor through its standard MCP configuration. Add the generated server entry to `~/.cursor/mcp.json` or to `.cursor/mcp.json` in a project, using the full path to `gsearch-mcp` if Cursor cannot locate the command.

Set `GSEARCH_PROXY` in the MCP client environment configuration or in a `.env` file referenced by `GSEARCH_ENV_FILE`. The proxy setting accepts HTTP, HTTPS, and SOCKS5 formats, including authenticated proxies. `GSEARCH_DATA_LIMIT_MB` can set a data allowance for proxy traffic.

gsearch returns structured search data with result titles, snippets, sites, and resolved destination URLs. Depending on the query, the response can also contain answer boxes, top stories, videos, AI Overview, People also ask, and related searches. Other tools fetch pages or read top-result text.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGsearch AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gsearch-2?style=directory)](https://allmcps.com/mcp/gsearch-2)
HTML Embed
<a href="https://allmcps.com/mcp/gsearch-2"><img src="https://allmcps.com/api/badge/gsearch-2?style=directory" alt="Gsearch on AllMCPs" /></a>