gemini-mcp
Provides access to Google's Gemini API with Google Search grounding for up-to-date information.
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-mcpWhat are the latest features in Bun 1.2?"
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-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
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
- AlicenseAqualityCmaintenanceImplementation 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.2030 npm88MIT
- FlicenseNot gradedqualityDmaintenanceImplements a Model Control Protocol server integrated with Google Gemini LLM, providing a flexible framework for building AI-powered applications.-
- AlicenseAqualityAmaintenanceA 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.152 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.89 npmMIT