Skip to main content

MCP server for Gemini AI image processing - 基于 Gemini 2.5 Flash 的图片处理 MCP 服务

Project description

Gemini MCP

基于 Gemini 2.5 Flash 的图片处理 MCP 服务器,支持与 Claude Desktop、Cursor 等 MCP 客户端集成。

快速开始

使用 uvx 运行(推荐)

# 无需安装,直接运行
GEMINI_API_KEY=your-api-key uvx gemini-mcp

通过 pip 安装

pip install gemini-mcp
GEMINI_API_KEY=your-api-key gemini-mcp

配置客户端

Claude Desktop

编辑 ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "gemini": {
      "command": "uvx",
      "args": ["gemini-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}

Cursor

编辑 ~/.cursor/mcp.json:

{
  "mcpServers": {
    "gemini": {
      "command": "uvx",
      "args": ["gemini-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}

功能

  • 🖼️ 支持本地文件、URL 和 Base64 图片
  • 🚀 使用 uvx 无需安装即可运行
  • 🔄 流式响应处理
  • 📦 自动保存生成的图片
  • 🌐 支持 SOCKS5 代理

使用示例

在 Claude Desktop 中:

分析这张图片:/path/to/image.jpg
描述 https://example.com/image.png 的内容

环境变量

  • GEMINI_API_KEY: Gemini API 密钥(必需)
  • OUTPUT_DIR: 输出目录(默认:./outputs
  • ALL_PROXY: SOCKS5 代理(如:socks5://127.0.0.1:1080

命令行参数

gemini-mcp --help              # 查看帮助
gemini-mcp --mode http         # HTTP 模式
gemini-mcp --debug             # 调试模式

许可证

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_mcp-0.2.1.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_mcp-0.2.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file gemini_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: gemini_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for gemini_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e0d280d3482dd934bef1f2878ca01d5b6ef5e41b8c93aeec87b5569ed9cabceb
MD5 c3a264e7f93ef639371d37c45e529e40
BLAKE2b-256 d42c181fb54ff1570fb594ec900e4f4a0aafac05d160067c87cfbd6aa658ffe9

See more details on using hashes here.

Provenance

The following attestation bundles were made for gemini_mcp-0.2.1.tar.gz:

Publisher: publish.yml on Ceeon/gemini-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gemini_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: gemini_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for gemini_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 478a0fb9d08a3f522d7713d21345a43be9e0f354b1afe0bbf108eb97eda6f7d9
MD5 3657894e255fa67804d57bfbbd6e36c6
BLAKE2b-256 65dbf1cd6c615d554fd45a5cc80d4c3a62c146726d6df8d636d85cdc3e2b02b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for gemini_mcp-0.2.1-py3-none-any.whl:

Publisher: publish.yml on Ceeon/gemini-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page