
Google AI Search MCP
io.github.shariqriazz由 GitHub 帳號 shariqriazz 發布v1.1.1更新於 Oct 24, 2026
Google AI search and documentation tools for MCP clients using Vertex AI or the Gemini API.
概覽
本機 MCP 伺服器,透過 Vertex AI 或 Gemini API 讓助理使用 Google AI 驅動的網路搜尋、文件查詢、程式碼分析與架構建議。
- 可以做什麼
- 結合即時網路搜尋回答開發者問題並格式化程式碼(answer_query_websearch)。解釋技術主題,並從官方文件擷取特定版本的程式碼片段(explain_topic_with_docs、get_doc_snippets)。對照文件最佳實務分析程式碼,附上引用與嚴重程度(code_analysis_with_docs)。比較技術方案並建議架構模式與取捨(technical_comparison、architecture_pattern_recommendation)。依目前最佳實務產生結構化的專案規範文件(generate_project_guidelines)。
- 適用情境
- 適合助理需要訓練資料以外的即時資訊、官方文件片段,或需要對程式碼品質、技術選型與架構提供參考意見時使用。最適合已有 Google Cloud 專案或 Gemini API 金鑰的開發者。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行;前置條件列出 Node.js 18+ 與 Bun。以 AI_PROVIDER 選擇 vertex 或 gemini。Vertex 需要 GOOGLE_CLOUD_PROJECT、已啟用計費並開啟 Vertex AI API 的專案,以及 Google Cloud 憑證(應用程式預設憑證或服務帳戶金鑰);Gemini 需要 GEMINI_API_KEY。GOOGLE_CLOUD_LOCATION 預設為 us-central1。需要連線至 Google AI 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Google AI Search MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Google AI Search MCP
This project implements a Model Context Protocol (MCP) server that provides a comprehensive suite of Google AI-powered search and documentation tools specifically designed to help AI coders overcome LLM knowledge gaps and information limitations.
Implementation notes
Provider selection and credentials are resolved at runtime, so a tool being listed does not prove that its upstream provider is configured or reachable. Treat model-produced comparisons, architecture guidance, and security analysis as material to verify against the cited primary sources rather than deterministic findings.
For a source-linked comparison of the design pressures across this project and six other public MCP implementations, see What building seven MCP servers taught me about production MCP.
Features
- Provides access to Google AI models (Vertex AI and Gemini API) via specialized MCP tools.
- Focuses on real-time information retrieval and documentation-based analysis.
- Supports web search grounding for current information that LLMs lack.
- Configurable model ID, temperature, streaming behavior, max output tokens, and retry settings via environment variables.
- Uses streaming API by default for potentially better responsiveness.
- Includes basic retry logic for transient API errors.
- Minimal safety filters applied (
BLOCK_NONE) to reduce potential blocking (use with caution).
Tools Provided
Core Search & Documentation Tools
answer_query_websearch: Developer-focused natural language queries with automatic technical detection, enhanced search methodology, and comprehensive code formatting using Google AI with real-time search results.explain_topic_with_docs: Streamlined technical explanations with improved debugging scenarios, synthesizing information from official documentation with reduced verbosity and enhanced troubleshooting guidance.get_doc_snippets: Enhanced code snippet retrieval with progressive complexity examples, advanced search patterns, version-specific targeting, and comprehensive context for technical queries from official documentation.generate_project_guidelines: Generates comprehensive structured project guidelines documents based on specified technologies, using web search for current best practices and industry standards.
Advanced Analysis Tools
code_analysis_with_docs: Evidence-based code analysis with standardized citations, severity categorization, and actionable recommendations by comparing code against official documentation best practices.technical_comparison: Produces technology comparisons across requested criteria using current search context where available. Verify quantitative or market claims against the cited primary sources.architecture_pattern_recommendation: Produces architecture options, tradeoffs, and implementation considerations for a described use case. Validate the recommendation against the system's actual constraints before adopting it.
(Note: Input/output schemas for each tool are defined in their respective files within src/tools/ and exposed via the MCP server.)
Prerequisites
- Node.js (v18+)
- Bun (
npm install -g bun) - Google Cloud Project with Billing enabled (if using Vertex AI).
- Vertex AI API enabled in the GCP project (if using Vertex AI).
- Google Cloud Authentication configured in your environment (Application Default Credentials via
gcloud auth application-default loginis recommended, or a Service Account Key) OR Gemini API key.
Setup & Installation
- Clone/Place Project: Ensure the project files are in your desired location.
- Install Dependencies:
- Configure Environment:
- Create a
.envfile in the project root (copy.env.example). - Set the required and optional environment variables as described in
.env.example.- Set
AI_PROVIDERto either"vertex"or"gemini". - If
AI_PROVIDER="vertex",GOOGLE_CLOUD_PROJECTis required. - If
AI_PROVIDER="gemini",GEMINI_API_KEYis required.
- Set
- Create a
- Build the Server:
This compiles the TypeScript code to
build/index.js.
Usage (Standalone / NPX)
The package is published to npm and can be run directly with npx:
Alternatively, install it globally:
Note: Running standalone requires setting necessary environment variables (like GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION, GEMINI_API_KEY, authentication credentials if not using ADC) in your shell environment before executing the command.
Docker
Build the local container image:
Run with the Gemini API provider:
For Vertex AI, pass AI_PROVIDER=vertex, GOOGLE_CLOUD_PROJECT, and optionally
GOOGLE_CLOUD_LOCATION. Application Default Credentials must also be available
inside the container, normally through a read-only credential mount. Do not bake
API keys or service-account files into the image.
Running with Cline
-
Configure MCP Settings: Add/update the configuration in your Cline MCP settings file (e.g.,
.roo/mcp.json). You have two primary ways to configure the command:Option A: Using Node (Direct Path - Recommended for Development)
This method uses
nodeto run the compiled script directly. It's useful during development when you have the code cloned locally.- Important: Ensure the
argspath points correctly to thebuild/index.jsfile. Using an absolute path might be more reliable.
Option B: Using NPX (Requires Package Published to npm)
This method uses
npxto automatically download and run the server package from the npm registry. This is convenient if you don't want to clone the repository.- Ensure the environment variables in the
envblock are correctly set, either matching.envor explicitly defined here. Remove comments from the actual JSON file.
- Important: Ensure the
-
Restart/Reload Cline: Cline should detect the configuration change and start the server.
-
Use Tools: You can now use the comprehensive list of Google AI-powered search and documentation tools via Cline.
Development
- Watch Mode:
bun run watch - Build:
bun run build - Inspector:
bun run inspector
License
This project is licensed under the MIT License - see the LICENSE file for details.
來源:README.md,提交 607a077
工具
0版本歷史
1- v1.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分