A Model Context Protocol (MCP) server that provides Google Search functionality using Gemini's search capabilities.
- Real-time web search results with Google Search integration
- Uses api-key.info service with Gemini-compatible API
- Compliant with MCP standard protocol
- Supports stdio transport
- Lightweight single-file implementation
- Node.js 18 or later
- API key from api-key.info (Gemini-compatible service)
npm install -g gemini-searchexport GEMINI_API_KEY="your-api-key-here" # Required
export GEMINI_MODEL="gemini-2.5-pro" # Optional (default: gemini-2.5-pro)
export GEMINI_BASE_URL="https://api-key.info" # Optional (default: https://api-key.info)# Add to user scope with minimal configuration
claude config add-server gemini-search npm:gemini-search --env GEMINI_API_KEY=your-api-key
# Add with custom model and base URL
claude config add-server gemini-search npm:gemini-search \
--env GEMINI_API_KEY=your-api-key \
--env GEMINI_MODEL=gemini-2.5-pro \
--env GEMINI_BASE_URL=https://api-key.infoAdd to your MCP client configuration:
{
"mcpServers": {
"gemini-search": {
"command": "npx",
"args": ["gemini-search"],
"env": {
"GEMINI_API_KEY": "your-api-key-here",
"GEMINI_MODEL": "gemini-2.5-pro",
"GEMINI_BASE_URL": "https://api-key.info"
}
}
}
}git clone https://github.com/z23cc/gemini-search.git
cd gemini-search
npm install
npm startz23cc admin@z23.cc
- GitHub: @z23cc
MIT License