
MCP server for Google Gemini 2.5 Flash Image preview (text-to-image, editing, composition)
概览
Simply type "Draw a cute cat" and get instant AI-generated images. A beginner-friendly Model Context Protocol (MCP) server that brings Google's Gemini 2.5 Flash Image generation directly into your Claude conversations. 1. Visit Google AI Studio 2. Sign in with your Google account 3. Click "Create API key" → Copy the key 1. Open 2. Copy this code and replace YOUR_API_KEY with your actual key: 3. Save as: %APPDATA%/Claude/claude_desktop_config.json 4. 1. Open (search "Terminal" in Spotlight) 2. Run this command (replace YOUR_API_KEY): Just run this one command in your terminal (replace YOUR_API_KEY): 1. Go to Cursor Settings → MCP → Add new MCP Server 2. Fill in: - : gemini-nanobanana-mcp - : npx - : gemini-nanobanana-mcp@latest - : GEMINI_API_KEY = YOUR_API_KEY 3.
README
以下为原文 README 节选,完整内容请查看原文。
🎨 Gemini Nanobanana MCP
Generate images from text with Claude! Simply type “Draw a cute cat” and get instant AI-generated images.
A beginner-friendly Model Context Protocol (MCP) server that brings Google’s Gemini 2.5 Flash Image generation directly into your Claude conversations.
Quick Start - Just 3 Steps
1️⃣ Get Your API Key (1 minute)
- Visit Google AI Studio
- Sign in with your Google account
- Click “Create API key” → Copy the key
2️⃣ Install in Your Claude Client (2 minutes)
3️⃣ Start Creating! (0 minutes)
Try these in Claude:
- “Generate a cute puppy playing in a garden”
- “Create a beautiful sunset over mountains”
- “Draw a red sports car”
- “Make an abstract colorful painting”
Your images automatically save to ~/Downloads/gemini-images/
See It In Action
Basic Usage
You: Generate a cozy coffee shop interior
Claude: [Generating image...]
安装
npx gemini-nanobanana-mcp@latest配置
{
"mcpServers": {
"gemini-nanobanana-mcp": {
"command": "npx",
"args": ["gemini-nanobanana-mcp@latest"],
"env": {
"GEMINI_API_KEY": "YOUR_API_KEY"
}
}
}
}