Google Ai Search MCP Server

A Model Context Protocol server providing Google AI-powered search and documentation tools for developers

Local serverstdioTypeScript

What is the Google Ai Search MCP Server?

A Model Context Protocol server providing Google AI-powered search and documentation tools for developers

What it actually does

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.

  • 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

Configuration

  • 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 login is recommended, or a Service Account Key) OR Gemini API key.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
answer_query_websearchDeveloper-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_docsStreamlined technical explanations with improved debugging scenarios, synthesizing information from official documentation with reduced verbosity and enhanced troubleshooting guidance.
get_doc_snippetsEnhanced code snippet retrieval with progressive complexity examples, advanced search patterns, version-specific targeting, and comprehensive context for technical queries from official documentation.
generate_project_guidelinesGenerates comprehensive structured project guidelines documents based on specified technologies, using web search for current best practices and industry standards.
code_analysis_with_docsEvidence-based code analysis with standardized citations, severity categorization, and actionable recommendations by comparing code against official documentation best practices.
technical_comparisonEnhanced technology comparison with quantitative benchmarks, performance metrics, market adoption statistics, and detailed evidence-based analysis across multiple criteria.
architecture_pattern_recommendationComprehensive architecture guidance with performance metrics, quantitative benefits, detailed implementation roadmaps, and evidence-based pattern recommendations for specific use cases.

How to install the Google Ai Search MCP Server

{
  "mcpServers": {
    "google-ai-search": {
      "command": "npx",
      "args": ["-y", "bun"],
      "env": {
        "AI_PROVIDER": "your-value",
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "GEMINI_API_KEY": "your-value",
        "VERTEX_MODEL_ID": "your-value",
        "GEMINI_MODEL_ID": "your-value",
        "GOOGLE_CLOUD_LOCATION": "your-value",
        "AI_TEMPERATURE": "your-value",
        "AI_USE_STREAMING": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • 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 login is recommended, or a Service Account Key) OR Gemini API key.
VariableDescriptionRequired
AI_PROVIDERConfiguration value read at startup.Optional
GOOGLE_CLOUD_PROJECTConfiguration value read at startup.Optional
GEMINI_API_KEYCredential the server authenticates with.Yes
VERTEX_MODEL_IDConfiguration value read at startup.Optional
GEMINI_MODEL_IDConfiguration value read at startup.Optional
GOOGLE_CLOUD_LOCATIONConfiguration value read at startup.Optional
AI_TEMPERATUREConfiguration value read at startup.Optional
AI_USE_STREAMINGConfiguration value read at startup.Optional

Example prompts to try

  • “Use Google Ai Search MCP to answer query websearch.”
  • “Use Google Ai Search MCP to explain topic with docs.”
  • “Use Google Ai Search MCP to get doc snippets.”

Frequently asked questions

A Model Context Protocol server providing Google AI-powered search and documentation tools for developers Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.