Skip to main content
Glama

Gemini MCP 服务器

模型上下文协议 (MCP) 服务器实现,使 Claude Desktop 能够与 Google 的 Gemini AI 模型进行交互。

特征

  • 全面支持 MCP 协议

  • 实时响应流

  • 安全 API 密钥处理

  • 可配置模型参数

  • TypeScript 实现

Related MCP server: Gemini MCP Server

快速入门

  1. 获取 Gemini API 密钥

  2. 配置 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" } } } }
  3. 重启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

贡献

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

常见问题

  1. 连接问题

  2. API 密钥问题

安全

  • API 密钥仅通过环境变量处理

  • 没有记录或存储任何敏感数据

  • 定期安全更新

执照

麻省理工学院

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aliargun/mcp-server-gemini'

If you have feedback or need assistance with the MCP directory API, please join our Discord server