Gemini MCP 服务器
模型上下文协议 (MCP) 服务器实现,使 Claude Desktop 能够与 Google 的 Gemini AI 模型进行交互。
特征
全面支持 MCP 协议
实时响应流
安全 API 密钥处理
可配置模型参数
TypeScript 实现
快速入门
获取 Gemini API 密钥
创建新的 API 密钥
配置 Claude 桌面
找到您的配置文件:
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json添加 Gemini 配置:
{ "mcpServers": { "gemini": { "command": "npx", "args": ["-y", "github:aliargun/mcp-server-gemini"], "env": { "GEMINI_API_KEY": "your_api_key_here" } } } }
重启Claude桌面
文档
Claude 桌面设置指南- 详细设置说明
示例和用法- 使用示例和高级配置
实施说明- 技术实施细节
开发指南- 开发人员指南
故障排除指南- 常见问题和解决方案
本地开发
# Clone repository
git clone https://github.com/aliargun/mcp-server-gemini.git
cd mcp-server-gemini
# Install dependencies
npm install
# Start development server
npm run dev
贡献
欢迎贡献!请参阅我们的贡献指南。
常见问题
安全
API 密钥仅通过环境变量处理
没有记录或存储任何敏感数据
定期安全更新
执照
麻省理工学院
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
模型上下文协议 (MCP) 服务器实现,使 Claude Desktop 能够与 Google 的 Gemini AI 模型进行交互。
Related MCP Servers
- AsecurityAlicenseAqualityA server that enables Claude Desktop to generate images using Google's Gemini AI models through the Model Context Protocol (MCP).Last updated -82214MIT License
- -security-license-qualityAn MCP server implementation that allows using Google's Gemini AI models (specifically Gemini 1.5 Pro) through Claude or other MCP clients via the Model Context Protocol.Last updated -1
- -securityFlicense-qualityA Model Context Protocol server that enables Claude Desktop to interact with Google's Gemini 2.5 Pro Experimental AI model, with features like Google Search integration and token usage reporting.Last updated -3
- -securityAlicense-qualityA Model Context Protocol (MCP) server implementation for the Google Gemini language model. This server allows Claude Desktop users to access the powerful reasoning capabilities of Gemini-2.0-flash-thinking-exp-01-21 model.Last updated -1MIT License