A Model Context Protocol server providing Google AI-powered search and documentation tools for developers
A Model Context Protocol server providing Google AI-powered search and documentation tools for developers. The google ai search mcp mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 7 defined tools rather than through you.
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.
The server ships on npm as bun, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Everything the assistant can do here goes through one of these:
answer_query_websearch — Developer-focused natural language queries with automatic technical detection, enhanced search methodology, and comprehensive code formatting usingexplain_topic_with_docs — Streamlined technical explanations with improved debugging scenarios, synthesizing information from official documentation with reduced verbosity andget_doc_snippets — Enhanced code snippet retrieval with progressive complexity examples, advanced search patterns, version-specific targeting, and comprehensive contextgenerate_project_guidelines — Generates comprehensive structured project guidelines documents based on specified technologies, using web search for current best practices andcode_analysis_with_docs — Evidence-based code analysis with standardized citations, severity categorization, and actionable recommendations by comparing code against officialtechnical_comparison — Enhanced technology comparison with quantitative benchmarks, performance metrics, market adoption statistics, and detailed evidence-based analysisarchitecture_pattern_recommendation — Comprehensive architecture guidance with performance metrics, quantitative benefits, detailed implementation roadmaps, and evidence-based patternYou will need 8 environment variables: AI_PROVIDER, GOOGLE_CLOUD_PROJECT, GEMINI_API_KEY, VERTEX_MODEL_ID, GEMINI_MODEL_ID, GOOGLE_CLOUD_LOCATION, AI_TEMPERATURE, AI_USE_STREAMING. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
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.Among the knowledge and memory options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Google Ai Search MCP's toolset — answer_query_websearch, explain_topic_with_docs, get_doc_snippets and 4 more — is a fair guide to whether it matches your workflow. It is maintained by shariqriazz; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Google Ai Search MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| 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. |
| 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 | Enhanced technology comparison with quantitative benchmarks, performance metrics, market adoption statistics, and detailed evidence-based analysis across multiple criteria. |
| architecture_pattern_recommendation | Comprehensive architecture guidance with performance metrics, quantitative benefits, detailed implementation roadmaps, and evidence-based pattern recommendations for specific use cases. |
{
"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.
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.| Variable | Description | Required |
|---|---|---|
| AI_PROVIDER | Configuration value read at startup. | Optional |
| GOOGLE_CLOUD_PROJECT | Configuration value read at startup. | Optional |
| GEMINI_API_KEY | Credential the server authenticates with. | Yes |
| VERTEX_MODEL_ID | Configuration value read at startup. | Optional |
| GEMINI_MODEL_ID | Configuration value read at startup. | Optional |
| GOOGLE_CLOUD_LOCATION | Configuration value read at startup. | Optional |
| AI_TEMPERATURE | Configuration value read at startup. | Optional |
| AI_USE_STREAMING | Configuration value read at startup. | Optional |
A knowledge graph your assistant keeps between sessions — entities, relations and observations that persist.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Your workspace, on speaking terms with AI — search, read and write Notion pages and databases.
A structured scratchpad for hard problems — stepwise reasoning with revisions, branches and visible logic.
Symbol-level code navigation, refactoring and memory for coding agents — the IDE brain your assistant has been missing.
Chat with your second brain — search, read and write vault notes through the Local REST API.