answer_query_websearch
Answers a natural language query using the configured Vertex AI model (gemini-2.5-pro) enhanced with Google Search results for up-to-date information. Requires a 'query' string.
Ask a technical question and get it answered from official documentation found by Google Search — shaped as a snippet, a comparison table, a code review or an architecture recommendation.
LABSCO SUMMARY
Every tool calls the same grounded model; what differs is the instruction wrapped around your input, which is why the snippet tool returns code without commentary and the comparison tool returns a table. That is genuinely useful and also the limit: the author says plainly that comparisons, architecture guidance and security findings are model output to check against the cited primary sources, not deterministic results. Two practical notes before wiring it up — a tool appearing in the list does not prove its provider is configured and reachable, and the default safety setting is BLOCK_NONE.
A research layer over a Gemini model with Google Search grounding, exposing task-shaped calls rather than one generic query box. It runs against either Vertex AI or the Gemini API, chosen at startup.
Node.js 18 or newer and Bun. Then one of two providers, set with AI_PROVIDER: vertex needs a Google Cloud project with billing and the Vertex AI API enabled, GOOGLE_CLOUD_PROJECT set, and Application Default Credentials configured; gemini needs only GEMINI_API_KEY. GOOGLE_CLOUD_LOCATION defaults to us-central1, and the model, temperature, streaming, max output tokens and retry behaviour are all environment variables. A Docker image is the other route — with credentials mounted read-only rather than baked in. Note that safety filters are set to BLOCK_NONE by default.
One command plus credentials — bunx google-ai-search-mcp, then supply credentials
USE CASES
The answer is grounded in search results rather than in what the model remembers.
One tool returns prose, the other returns the snippet — pick by what you are about to do with it.
The findings come back with citations and severity, scoped to the language and the concern you named.
Compare them on your own criteria, then verify the numbers against the sources it cites.
Get patterns with their tradeoffs rather than one recommendation with no alternatives.
Generate the rules from the current documentation for each item in the stack, with versions.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
answer_query_websearchAnswers a natural language query using the configured Vertex AI model (gemini-2.5-pro) enhanced with Google Search results for up-to-date information. Requires a 'query' string.
architecture_pattern_recommendationSuggests architecture patterns for specific use cases based on industry best practices. Provides implementation examples and considerations for the recommended patterns. Includes diagrams and explanations of pattern benefits and tradeoffs. Uses the configured Vertex AI model (gemini-2.5-pro) with Google Search. Requires 'requirements' and 'tech_stack'.
code_analysis_with_docsAnalyzes code snippets by comparing them with best practices from official documentation found via web search. Identifies potential bugs, performance issues, and security vulnerabilities. Uses the configured Vertex AI model (gemini-2.5-pro) with Google Search. Requires 'code', 'language', and 'analysis_focus'.
explain_topic_with_docsProvides a detailed explanation for a query about a specific software topic by synthesizing information primarily from official documentation found via web search. Focuses on comprehensive answers, context, and adherence to documented details. Uses the configured Vertex AI model (gemini-2.5-pro) with Google Search. Requires 'topic' and 'query'.
generate_project_guidelinesGenerates a structured project guidelines document (e.g., Markdown) based on a specified list of technologies and versions (tech stack). Uses web search to find the latest official documentation, style guides, and best practices for each component and synthesizes them into actionable rules and recommendations. Uses the configured Vertex AI model (gemini-2.5-pro) with Google Search. Requires 'tech_stack'.
get_doc_snippetsProvides precise, authoritative code snippets or concise answers for technical queries by searching official documentation. Focuses on delivering exact solutions without unnecessary explanation. Uses the configured Vertex AI model (gemini-2.5-pro) with Google Search. Requires 'topic' and 'query'.
technical_comparisonCompares multiple technologies, frameworks, or libraries based on specific criteria. Provides detailed comparison tables with pros/cons and use cases. Includes version-specific information and compatibility considerations. Uses the configured Vertex AI model (gemini-2.5-pro) with Google Search. Requires 'technologies' and 'criteria'.
BEFORE YOU INSTALL
7 tools when we connected. Tools are listed whether or not Vertex or Gemini is configured, so a listed tool may not work.
CONTEXT COST
Rated by the size of the 7 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
bunx google-ai-search-mcp{
"mcpServers": {
"google-ai-search-mcp": {
"command": "bunx",
"args": [
"-y",
"google-ai-search-mcp"
],
"env": {
"AI_PROVIDER": "vertex",
"GOOGLE_CLOUD_PROJECT": "<YOUR_GOOGLE_CLOUD_PROJECT>",
"VERTEX_MODEL_ID": "gemini-2.5-pro",
"GEMINI_MODEL_ID": "gemini-2.5-pro",
"GOOGLE_CLOUD_LOCATION": "us-central1",
"AI_TEMPERATURE": "0.0",
"AI_USE_STREAMING": "true",
"AI_MAX_OUTPUT_TOKENS": "65536",
"AI_MAX_RETRIES": "3",
"AI_RETRY_DELAY_MS": "1000"
},
"disabled": false,
"alwaysAllow": [],
"timeout": 3600
}
}
}git clone https://github.com/shariqriazz/google-ai-search-mcp.git
cd google-ai-search-mcp
bun install
bun run build{
"mcpServers": {
"google-ai-search-mcp": {
"command": "node",
"args": [
"<YOUR_PATH_TO_GOOGLE_AI_SEARCH_MCP>/build/index.js"
],
"env": {
"AI_PROVIDER": "vertex",
"GOOGLE_CLOUD_PROJECT": "<YOUR_GOOGLE_CLOUD_PROJECT>",
"VERTEX_MODEL_ID": "gemini-2.5-pro",
"GEMINI_MODEL_ID": "gemini-2.5-pro",
"GOOGLE_CLOUD_LOCATION": "us-central1",
"AI_TEMPERATURE": "0.0",
"AI_USE_STREAMING": "true",
"AI_MAX_OUTPUT_TOKENS": "65536",
"AI_MAX_RETRIES": "3",
"AI_RETRY_DELAY_MS": "1000"
},
"disabled": false,
"alwaysAllow": [],
"timeout": 3600
}
}
}<YOUR_PATH_TO_GOOGLE_AI_SEARCH_MCP> is the absolute path of your clone. Bun run build writes build/index.js there.