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 分