Back to MCP directory
publicPublicdnsLocal runtime

mcp-server-gemini

一个实现Claude Desktop与Google Gemini AI模型交互的MCP服务器项目

article

README

🚀 金星MCP服务器

金星MCP服务器实现了支持Claude Desktop与Google Gemini AI模型交互的Model Context Protocol(MCP)协议,为用户提供了便捷、安全的AI交互体验。

🚀 快速开始

准备工作

  1. 获取Gemini API密钥
  2. 配置Claude Desktop
    • 找到你的配置文件:
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": "你的API密钥"
            }
        }
    }
}
  1. 重启Claude Desktop

本地开发

# 克隆仓库
git clone https://github.com/aliargun/mcp-server-gemini.git
cd mcp-server-gemini

# 安装依赖项
npm install

# 启动开发服务器
npm run dev

✨ 主要特性

  • 协议支持:完全支持MCP协议。
  • 实时响应:实时响应流式传输。
  • 安全保障:安全的API密钥处理。
  • 灵活配置:可配置的模型参数。
  • 技术实现:采用TypeScript实现。

📚 详细文档

❓ 常见问题

连接问题

API密钥问题

  • 确认API密钥正确。
  • 检查权限设置。
  • 参阅安装指南

🔒 安全

  • API密钥仅通过环境变量处理。
  • 不存储或记录任何敏感数据。
  • 定期安全更新。

🤝 贡献指南

欢迎贡献!请参阅我们的贡献指南

📄 许可证

本项目采用MIT许可证。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client