# gsearch [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/daanielcruz/gsearch-mcp  
**GitHub Stars:** 4  
**npm Downloads (last month):** 372  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gsearch

## Description
Free Google Search with inline citations for any MCP-compatible AI tool.

## Tools
Capabilities this server exposes over MCP:

- **google_search** — Search the web using Google Search grounding. Returns an answer with inline citations and source URLs. Use for current events, documentation, news, or any real-time web information.

Response time: 2-15s typical, up to 60s with retries. On 429 the server retries automatically with dynamic backoff (typically 2s). Avoid calling this tool in rapid succession — batch your search needs into a single, well-crafted query when possible.

Do NOT use Google dork operators (site:, filetype:, inurl:, intitle:, intext:, ext:, cache:) — Prefer natural language. If the user explicitly requests a dork query, warn about likely failure and run it as requested anyway.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "gsearch": {
    "command": "npx",
    "args": ["-y","@daanielcruz/gsearch-mcp"],
    "env": {
      "GEMINI_API_KEY": "",
      "GSEARCH_API_KEY": "",
      "GSEARCH_ANTIGRAVITY_HOST": "",
      "GSEARCH_PROJECT": ""
    }
  }
}
```

**Requires environment variables:** `GEMINI_API_KEY`, `GSEARCH_API_KEY`, `GSEARCH_ANTIGRAVITY_HOST`, `GSEARCH_PROJECT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What gsearch does

gsearch connects MCP-compatible AI clients to Google Search grounding. Its `google_search` tool accepts a natural-language web search and returns a grounded answer accompanied by inline citation markers and source URLs. This makes it suitable for questions whose answers may change, including current events, news, documentation, and other live web information.

The server is distributed as a Go-based single binary with no runtime dependencies. It communicates with the client over MCP using standard input and output. The project is licensed under MIT.

## How it works

A client sends a request to `google_search`, and gsearch forwards the search through Google’s Code Assist API using Google Search grounding. The response combines synthesized text with numbered source references, allowing an agent or user to inspect the cited web pages.

Typical response time is 2–15 seconds. Retries can extend a request to as much as 60 seconds. When Google responds with HTTP 429, gsearch retries using dynamic backoff, usually beginning around two seconds. Avoid firing searches in rapid succession; combine related needs into one carefully written query where practical.

Use ordinary natural-language searches instead of Google dork operators such as `site:`, `filetype:`, `inurl:`, `intitle:`, `intext:`, `ext:`, or `cache:`. If a user explicitly asks for one of these operators, the server can still run the requested query, although it warns that the search may fail.

## Setup and configuration

The installer can be run with:

```bash
curl -fsSL https://raw.githubusercontent.com/daanielcruz/gsearch-mcp/main/install.sh | bash
```

Alternatively, clone the repository, run `make build`, and launch `./gsearch-installer`. The installer downloads the binary and can configure Claude Code, Codex, Cursor, and Otherside when those clients are available.

Authentication supports two paths. Google sign-in uses Antigravity’s public OAuth flow with PKCE and a localhost callback; credentials are stored in `~/.gsearch/oauth_creds.json`. The alternative is a Gemini API key supplied during installation or through `GEMINI_API_KEY` or `GSEARCH_API_KEY`. Existing OAuth credentials take precedence over those variables.

For manual MCP configuration, use the `@daanielcruz/gsearch-mcp` package through `npx` with the server command set to `npx -y @daanielcruz/gsearch-mcp`. Set `GSEARCH_PROJECT` if automatic project detection fails. `GSEARCH_ANTIGRAVITY_HOST=prod` selects the production Code Assist host instead of the default backend.

## Tools and capabilities

- `google_search`: searches the web through Google Search grounding and returns a cited answer with source URLs.
- Real-time web research for news, current events, documentation, and other changing information.
- Inline numbered citations linked to the sources used in the answer.
- Automatic retry and backoff for rate-limit responses.
- OAuth or Gemini API-key authentication.

_Full upstream README: https://allmcps.com/mcp/gsearch/readme_

