
aliargun/mcp-server-gemini 是从 https://github.com/aliargun/mcp-server-gemini. 导入的 MCP 服务器候选
概览
aliargun/mcp-server-gemini 是从 https://github.com/aliargun/mcp-server-gemini. 导入的 MCP 服务器候选
概述(AI 翻译)
强大的MCP(模型上下文协议)服务器,将谷歌最新的Gemini AI模型带入您喜爱的开发环境。通过无缝集成,访问Gemini 2.5的思维能力、视觉分析、嵌入等功能。
🚀 支持:Claude桌面、光标、Windsurf及任何兼容MCP的客户端 🎯 为什么要使用这个:直接在你的IDE中获得Gemini最前沿的AI功能,并实现全参数控制 📚 自我文档:内置帮助系统意味着你永远不需要离开编辑
特色
- 6 强大工具:文本生成、图像分析、令牌计数、模型列表、嵌入和自我文档帮助
- 最新双子座型号:支持具备思考功能的双子座2.5系列
- 高级功能:JSON模式、谷歌搜索接地、系统指令、对话记忆
- 完整MCP协议:标准stdio通信,实现与任何MCP客户端的无缝集成
- 自我文档:内置帮助系统——无需外部文档
- TypeScript 和 ESM:现代的类型安全实现
支持的型号
| 型号 | 背景 | 特色 | 最佳 |
|---|
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Gemini MCP Server
A powerful MCP (Model Context Protocol) server that brings Google’s latest Gemini AI models to your favorite development environment. Access Gemini 2.5’s thinking capabilities, vision analysis, embeddings, and more through a seamless integration.
🚀 Works with: Claude Desktop, Cursor, Windsurf, and any MCP-compatible client
🎯 Why use this: Get Gemini’s cutting-edge AI features directly in your IDE with full parameter control
📚 Self-documenting: Built-in help system means you never need to leave your editor
Features
- 6 Powerful Tools: Text generation, image analysis, token counting, model listing, embeddings, and self-documenting help
- Latest Gemini Models: Support for Gemini 2.5 series with thinking capabilities
- Advanced Features: JSON mode, Google Search grounding, system instructions, conversation memory
- Full MCP Protocol: Standard stdio communication for seamless integration with any MCP client
- Self-Documenting: Built-in help system - no external docs needed
- TypeScript & ESM: Modern, type-safe implementation
Supported Models
| Model | Context | Features | Best For |
|---|---|---|---|
| gemini-2.5-pro | 2M tokens | Thinking, JSON, Grounding | Complex reasoning |
| gemini-2.5-flash ⭐ | 1M tokens | Thinking, JSON, Grounding | General use |
| gemini-2.5-flash-lite | 1M tokens | Thinking, JSON | Fast responses |
| gemini-2.0-flash | 1M tokens | JSON, Grounding | Standard tasks |
| gemini-1.5-pro | 2M tokens | JSON | Legacy support |
Quick Start
-
Get Gemini API Key
- Visit Google AI Studio
- Create a new API key
- IMPORTANT: Keep your API key secure and never commit it to version control
-
Configure Your MCP Client
安装
npx -y github:aliargun/mcp-server-gemini配置
{
"mcpServers": {
"gemini": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:aliargun/mcp-server-gemini"],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}
}
}