Gemini MCP
基于 Gemini 2.5 Flash 的图片处理 MCP 服务器,支持与 Claude Desktop、Cursor 等 MCP 客户端集成。
快速开始
使用 uvx 运行(推荐)
通过 pip 安装
配置客户端
Claude Desktop
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json
:
Cursor
编辑 ~/.cursor/mcp.json
:
功能
- 🖼️ 支持本地文件、URL 和 Base64 图片
- 🚀 使用 uvx 无需安装即可运行
- 🔄 流式响应处理
- 📦 自动保存生成的图片
- 🌐 支持 SOCKS5 代理
使用示例
在 Claude Desktop 中:
环境变量
GEMINI_API_KEY
: Gemini API 密钥(必需)OUTPUT_DIR
: 输出目录(默认:./outputs
)ALL_PROXY
: SOCKS5 代理(如:socks5://127.0.0.1:1080
)
命令行参数
许可证
MIT
This server cannot be installed
Enables image processing and analysis using Google's Gemini 2.5 Flash model. Supports local files, URLs, and Base64 images with streaming responses and automatic output saving.