gemini-mcp
Provides access to Google's Gemini API with Google Search grounding for up-to-date information.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
gemini-mcp
A minimal MCP (Model Context Protocol) server that provides access to Google's Gemini API with Google Search grounding for up-to-date information.
Features
Single
ask_geminitool for querying Gemini modelsGoogle Search grounding for up-to-date information
Returns grounding sources with responses
Lightweight implementation using Bun
Related MCP server: MCP with Gemini Integration
Installation
Prerequisites
Bun runtime
Install from npm
bunx @nhosoya/gemini-mcpInstall from source
git clone https://github.com/nhosoya/gemini-mcp.git
cd gemini-mcp
bun installConfiguration
Environment Variable
Set your Gemini API key:
export GEMINI_API_KEY=your-api-key-hereClaude Code
claude mcp add gemini --scope user --env GEMINI_API_KEY=your-api-key -- bunx @nhosoya/gemini-mcpOther MCP Clients
Example configuration for other MCP clients (e.g., Cursor):
{
"mcpServers": {
"gemini": {
"command": "bunx",
"args": ["@nhosoya/gemini-mcp"],
"env": {
"GEMINI_API_KEY": "your-api-key"
}
}
}
}Or if installed from source:
{
"mcpServers": {
"gemini": {
"command": "bun",
"args": ["run", "/path/to/gemini-mcp/src/index.ts"],
"env": {
"GEMINI_API_KEY": "your-api-key"
}
}
}
}Usage
Tool: ask_gemini
Ask Gemini a question with optional Google Search grounding.
Parameters:
Parameter | Type | Default | Description |
| string | (required) | The question or prompt to send to Gemini |
| string |
| Gemini model to use |
| boolean |
| Enable Google Search grounding |
Example:
What are the latest features in Bun 1.2?Response:
The tool returns Gemini's response along with grounding sources (when enabled):
Bun 1.2 introduces several new features...
## Sources
- [Bun 1.2 Release Notes](https://bun.sh/blog/bun-v1.2)
- [Bun Documentation](https://bun.sh/docs)Development
# Run the server
bun run start
# Type check
bun run tsc --noEmitLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for Google search results via SERP API
Related MCP Servers
- AlicenseAqualityDmaintenanceImplementation of Model Context Protocol (MCP) server that provides tools for accessing Google Cloud's Vertex AI Gemini models, supporting features like web search grounding and direct knowledge answering for coding assistance and general queries.20235 npm88MIT
- FlicenseNot gradedqualityDmaintenanceImplements a Model Control Protocol server integrated with Google Gemini LLM, providing a flexible framework for building AI-powered applications.-
- AlicenseAqualityCmaintenanceA stdio MCP server that provides a single tool to query Gemini with Google Search grounding for current web information, returning synthesized answers with source links.137 npm1MIT
- AlicenseNot gradedqualityDmaintenanceRemote MCP server that exposes Google Gemini's text, image, video (Veo), and audio transcription capabilities as tools any MCP client can call directly.285 npmMIT