Free Google Search with inline citations for any MCP-compatible AI tool.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"gsearch": {
"args": [
"-y",
"@daanielcruz/gsearch-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This is just a heads-up. We haven't seen any bans from GSearch use. > Not affiliated with Google. Uses the same public OAuth client and API as the open-source Gemini CLI. > Google recently banned some OpenClaw users. OpenClaw use cases for oauth providers look abusive to me. GSearch doesn't fit that pattern. Risk still exists. > Requests carry Gemini CLI's User-Agent, ideType, and request shape, so they're probably indistinguishable from the official client on the wire _(if u a googler reading
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in search
Web and local search using Brave Search API
Production ready MCP server with real-time search, extract, map & crawl.
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
MCP server for Firecrawl — search, scrape, and interact with the web. Supports both cloud and self-hosted instances. Features include web search, scraping, page interaction, batch processing, and LLM-powered content analysis.
MCP Security Weekly
Get CVE alerts and security updates for io.github.daanielcruz/gsearch and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
🚨 Disclaimer 🚨
This is just a heads-up. We haven't seen any bans from GSearch use.
Not affiliated with Google. Uses the same public OAuth client and API as the open-source Gemini CLI.
Google recently banned some OpenClaw users. OpenClaw use cases for oauth providers look abusive to me. GSearch doesn't fit that pattern. Risk still exists.
Requests carry Gemini CLI's User-Agent, ideType, and request shape, so they're probably indistinguishable from the official client on the wire (if u a googler reading this: we good ppl, plz don't hunt us 🙏). If that bothers you, use a throwaway Google account.
Give Claude Code, Codex CLI, Cursor, and other AI tools real-time web search powered by Google Search grounding. Single binary, zero runtime dependencies. Free with any Google account.
curl -fsSL https://raw.githubusercontent.com/daanielcruz/gsearch-mcp/main/install.sh | bash
Or build from source:
git clone https://github.com/daanielcruz/gsearch-mcp && cd gsearch-mcp
make build && ./gsearch-installer
The installer downloads the binary, configures Claude Code, Codex and Cursor automatically (if available).
Claude Code / Codex CLI / Cursor / Others...
| MCP (stdio)
gsearch-server (Go binary)
| OAuth2
Google Code Assist API
| googleSearch grounding
Answer with [1][2][3] source links
When an AI tool calls google_search, GSearch returns a grounded answer with inline citations:
The current time in Sao Paulo is 08:13 AM.[1][2]
Sao Paulo observes Brasilia Time (BRT), UTC-3.[3]
Sources:
[1] Time in Sao Paulo (https://...)
[2] World Clock (https://...)
[3] Time Zone Info (https://...)
GSearch uses the same Google Search grounding API as Gemini CLI. Free with any Google account. No API key, no credit card, no billing setup.
Rate limits are generous for normal usage. The server retries automatically with dynamic backoff on rapid bursts.
Three options:
~/.gemini/oauth_creds.json./gsearch-installer opens your browser for Google sign-inGEMINI_API_KEY / GSEARCH_API_KEY env varOAuth modes auto-provision new accounts via the Google Code Assist API (SMS verification may be required on first use). API key mode skips OAuth entirely and hits the Gemini API directly.
The installer configures everything automatically. For manual setup, add to your MCP client config:
{
"mcpServers": {
"gsearch": {
"command": "npx",
"args": ["-y", "@daanielcruz/gsearch-mcp"]
}
}
}
Works with Claude Code (~/.claude.json), Cursor (~/.cursor/mcp.json), and any MCP-compatible tool.
For Codex CLI (~/.codex/config.toml):
[mcp_servers.gsearch]
command = 'npx'
args = ['-y', '@daanielcruz/gsearch-mcp']
Set GSEARCH_PROJECT env var only if auto-detection fails.
MIT