What API key is required and where do I get it?
You need a Google AI Studio API key. Get one free at [Google AI Studio](https://aistudio.google.com/apikey) by signing in with your Google account.
@Junhan2
基本信息
MCP server for Google Gemini 2.5 Flash Image preview (text-to-image, editing, composition)
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"gemini-nanobanana-mcp": {
"command": "npx",
"args": [
"gemini-nanobanana-mcp@latest"
],
"env": {
"GEMINI_API_KEY": "your-api-key",
"AUTO_SAVE": "true",
"DEFAULT_SAVE_DIR": "~/Pictures/AI-Images",
"LOG_LEVEL": "debug"
}
}
}
}Generate an image from a text prompt using Gemini 2.5 Flash Image
Edit an image using a prompt. Provide one input image via base64 or file path.
Compose a new image using multiple input images and a guiding prompt.
Transfer style from a style image to a base image, guided by an optional prompt.
Gemini Nanobanana Mcp is a beginner-friendly Model Context Protocol (MCP) server that brings Google’s Gemini 2.5 Flash image generation directly into Claude conversations. It enables text-to-image generation, image editing, multi-image composition, and style transfer—all through natural language prompts.
Configure the server in Claude Desktop, Claude Code, or Cursor by adding a JSON entry with the npx command and your GEMINI_API_KEY environment variable. After restarting your client, simply ask Claude to generate, edit, or compose images. Images are auto-saved to ~/Downloads/gemini-images/ by default, and you can specify a custom path in your prompt.
AUTO_SAVE=falseYou need a Google AI Studio API key. Get one free at [Google AI Studio](https://aistudio.google.com/apikey) by signing in with your Google account.
Open Terminal and run the one‑line command provided in the README that writes the configuration JSON to `~/Library/Application Support/Claude/claude_desktop_config.json`, replacing `YOUR_API_KEY` with your actual key.
The API key is missing or incorrectly set. Double‑check your config file or environment variable, ensure there are no extra spaces, and restart your Claude client.
Yes. Set `DEFAULT_SAVE_DIR` to a custom path, or set `AUTO_SAVE` to `false` to only save images when you explicitly request a path.
Supported formats: PNG, JPEG, WebP, and GIF. For instant preview in Claude Code, install the provided hooks from the repository—generated images will open automatically in Quick Look.

MCP server for the Pocket Network agentic marketplace: search our catalog of data services and utilities and call them, paying per request in USDC on Base with x402. No account or API key. Search and describe are free; p

Give an agent access to your YouSpot CRM: contacts, companies, notes, files, and your connected Gmail, Calendar, HubSpot, LinkedIn, Slack and X.
NetFoundry MCP Gateway enables secure, isolated access to Model Context Protocol (MCP) tools across distributed systems without exposing public endpoints. Zero trust gateway for MCP servers. Aggregate, filter, and secure
TruVerifAI's Panel Review is the guardian agent for AI's highest-stakes coding decisions: four frontier models argue over an AI coding agent's riskiest designs, diffs, and commits before they execute, with local review g
HeyLead: AI agent for LinkedIn outreach. Finds the right people, writes in your voice, follows up and handles replies, from Claude Code, Cursor, any MCP client or a web dashboard.
评论