gemini-search-mcp
Uses Google Search grounding to retrieve live web results, current documentation, news, and verified source citations.
Connects to Google Gemini models via the Gemini API to generate answers grounded in real-time web search results.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gemini-search-mcp what's the latest stable version of Node.js and link to docs?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gemini-search-mcp
A lightweight, zero-dependency Model Context Protocol (MCP) server that provides real-time web search with Google Search grounding powered by Google Gemini models.
Give your AI coding assistants (Claude Desktop, Cursor, Antigravity, OpenCode, Zed, Cline) real-time access to the live web, current documentation, APIs, and news with verified source citations.
Features
⚡ Zero External Dependencies: Pure Node.js ESM. Instant
npxdownloads and cold starts without bundle bloat.🔍 Google Search Grounding: Leverages Google's native grounding tools for high accuracy, freshness, and relevance.
📚 Clean Markdown Citations: Automatically extracts answers and appends deduplicated markdown source links.
🧠 Thought-Filtering: Automatically filters internal model reasoning tokens to keep tool outputs compact and relevant.
⚙️ Custom Proxy & Model Support: Compatible with official Google Gemini API as well as custom endpoints (e.g. CLIProxyAPI, Open-WebUI, or local gateways).
Related MCP server: Crawl4AI RAG MCP Server
Quickstart
You don't need to install anything globally. Run directly via npx:
npx -y @kazimshah39/gemini-search-mcpGet an API Key
Get a Google Gemini API key from Google AI Studio.
Configuration
Add the server to your MCP client configuration file:
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"gemini-search": {
"command": "npx",
"args": ["-y", "@kazimshah39/gemini-search-mcp"],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"
}
}
}
}Cursor
In .cursor/mcp.json or Cursor Settings -> Features -> MCP:
{
"mcpServers": {
"gemini-search": {
"command": "npx",
"args": ["-y", "@kazimshah39/gemini-search-mcp"],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"
}
}
}
}Antigravity / OpenCode
In your workspace .mcp.json:
{
"mcpServers": {
"gemini-search": {
"command": "npx",
"args": ["-y", "@kazimshah39/gemini-search-mcp"],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"
}
}
}
}Environment Variables
Variable | Required | Default | Description |
| Yes |
| Your Google Gemini API key or proxy authorization key. |
| No |
| The Gemini model to use for grounded searches (e.g., |
| No |
| Custom base endpoint if using a custom gateway or reverse proxy. |
| No |
| Alias for |
| No |
| Request timeout in milliseconds (default 35 seconds). |
Example with Local Proxy / Custom Gateway
If you route requests through a local proxy (such as CLIProxyAPI):
{
"mcpServers": {
"gemini-search": {
"command": "npx",
"args": ["-y", "@kazimshah39/gemini-search-mcp"],
"env": {
"GEMINI_API_KEY": "YOUR_PROXY_KEY",
"GEMINI_PROXY_URL": "http://127.0.0.1:8317/v1beta",
"GEMINI_MODEL": "gemini-3.8-flash"
}
}
}
}Tool Reference
gemini_search
Search the live web using Google Search grounding via Gemini. Returns current real-time facts, documentation, news, and verified sources.
Input Schema:
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The search query or question to research on Google."
}
},
"required": ["query"]
}Local Development & Testing
Clone the repository and test locally:
git clone https://github.com/kazimshah39/gemini-search-mcp.git
cd gemini-search-mcp
# Test running directly
export GEMINI_API_KEY="your-key-here"
node ./bin/cli.jsYou can test JSON-RPC communication by piping JSON:
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' | node ./bin/cli.jsLicense
MIT © Kazim Shah
Available Tools
1 toolgemini_searchA
Search the live web using Google Search grounding via Gemini. Returns current real-time facts, documentation, news, and verified sources.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no risk of misselection or overlapping purpose; an agent cannot confuse it with another tool.
The sole tool uses clear snake_case with a descriptive noun/verb structure (gemini_search); no inconsistency is possible with a single tool.
A single search tool is reasonable for a narrowly scoped web-search server, though it is below the typical 3–15 range and could feel thin if broader search operations are expected.
The tool covers the core web-search operation and returns current facts, docs, news, and sources, but it lacks advanced parameters (e.g., result count, filters, pagination) that a full search surface might offer.
Maintenance
Related MCP Connectors
Real-time fact-check, citation verification, and source-freshness for AI agents.
Give AI assistants access to real-time data. Search the web, compare flights, find hotels, and more.
Agent-native search engine with live web research optimized for AI agents.
The best web search for your AI Agent
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI models to search the web for current information before generating responses, with features for conditional searching, geographic customization, and automatic citations.1MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents and coding assistants with advanced web crawling and RAG capabilities, allowing them to scrape websites and leverage that knowledge through various retrieval strategies.2MIT
- AlicenseCqualityDmaintenanceProvides real-time access to up-to-date library documentation and code examples for any programming library. Helps AI coding assistants deliver accurate, current information instead of relying on outdated training data.113 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides AI coding agents with a live web search tool that returns extracted, answer-ready text from web pages. Enables real-time information retrieval without any local installation or maintenance.6 npmMIT