Gsearch

io.github.daanielcruz由 GitHub 账号 daanielcruz 发布v1.2.3更新于 Oct 27, 2026

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

已验证STDIO仅桌面网页搜索与抓取

概览

AI 生成的概览

为 MCP 客户端提供 Google 搜索工具,返回带行内引用和来源链接的答案,用于获取实时网络信息。

可以做什么
  • 通过 Google Search grounding 搜索网络,返回带行内引用和来源网址的答案。
  • 适用于时事、新闻、文档查询等实时信息。
  • 遇到限流时会自动按动态退避重试,通常几秒返回,最长约一分钟。
适用场景
当你希望助手回答时事、新闻或文档类问题并附上可核查的来源,且愿意用 Google 账号登录或提供 Gemini API 密钥时,适合安装。
运行要求
作为本地进程运行,通常通过 npx 启动 npm 包,或使用项目提供的安装脚本。需要 Google 登录(Antigravity OAuth 流程,凭据保存在本地)或通过 GEMINI_API_KEY 或 GSEARCH_API_KEY 提供 Gemini API 密钥;可用 GSEARCH_PROJECT 覆盖自动检测的项目。需要访问 Google 服务的网络。
安装前请注意
登录后会在用户主目录下保存 OAuth 凭据文件。API 密钥属于机密,且存在 OAuth 凭据时会被忽略。该服务器与 Google 无关联,依赖公共 OAuth 客户端;额度、可用性和计费取决于所选认证方式与 Google 账号。首次使用可能需要短信验证。它不会创建项目或开通计费。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Gsearch,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

🚨 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 Antigravity CLI.


[GSearch - Free Google Search MCP]

GSearch - Free Google Search MCP

[Go] [License: MIT] [MCP]

Give Claude Code, Codex CLI, Cursor, Otherside, and other AI tools real-time web search powered by Google Search grounding. Single binary, zero runtime dependencies.

Install

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

Or build from source:

bash
git clone https://github.com/daanielcruz/gsearch-mcp && cd gsearch-mcpmake build && ./gsearch-installer

The installer downloads the binary and configures Claude Code, Codex, Cursor and Otherside automatically (if available).

How It Works

Claude Code / Codex CLI / Cursor / Otherside / 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://...)

Pricing & Limits

GSearch uses the same Google Search grounding API as Antigravity CLI through its public OAuth client, or the Gemini API with an API key. Limits, availability, and billing depend on the selected authentication method and Google account.

The official Gemini CLI states that free and Google One accounts migrated to Antigravity CLI on June 18, 2026, so GSearch now signs in through Antigravity's public OAuth client. Existing Gemini CLI credentials remain readable.

Rate limits are generous for normal usage. The server retries automatically with dynamic backoff on rapid bursts.

Authentication

Two options:

  1. Google sign-in (Antigravity): the installer opens Antigravity CLI's public OAuth flow with PKCE S256 and a localhost loopback callback. Credentials are stored in ~/.gsearch/oauth_creds.json.
  2. API key: paste a Gemini API key from aistudio.google.com into the installer, or set GEMINI_API_KEY / GSEARCH_API_KEY. This skips OAuth and does not require a project. Google sign-in always takes precedence: when OAuth credentials exist, these variables are ignored.

Antigravity sign-in resolves the Code Assist project automatically (SMS verification may be required on first use). If the account requires a user-defined project, the installer accepts an existing Project ID and retries. It does not create projects or enable billing. The default backend is daily-cloudcode-pa.googleapis.com; set GSEARCH_ANTIGRAVITY_HOST=prod to use cloudcode-pa.googleapis.com.

Configuration

The installer configures everything automatically. For manual setup, add to your MCP client config:

json
{  "mcpServers": {    "gsearch": {      "command": "npx",      "args": ["-y", "@daanielcruz/gsearch-mcp"]    }  }}

Works with Claude Code (~/.claude.json), Cursor (~/.cursor/mcp.json), Otherside (~/.otherside/.mcp.json), and other MCP-compatible tools.

For Codex CLI (~/.codex/config.toml):

toml
[mcp_servers.gsearch]command = 'npx'args = ['-y', '@daanielcruz/gsearch-mcp']

Set GSEARCH_PROJECT env var only if auto-detection fails.

License

MIT

来源:README.md,提交 17da84c

工具

1

版本历史

2
  1. v1.2.3最新Oct 24, 2026
  2. v1.1.0Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分