Skip to content

img-mcpDocumentation

Open-source MCP server for AI image generation. Connect your agents to Google's Nano Banana models in minutes.

Abstract illustration of AI image generation

What is img-mcp?

img-mcp is an open-source Model Context Protocol (MCP) server that lets AI agents generate images. It connects any MCP-compatible host to Google's Nano Banana image-generation models (Gemini Flash Image) through the Gemini API.

Because img-mcp speaks the standard MCP protocol, you can add image generation to Claude, Cursor, Windsurf, Kimi, OpenCode, or the OpenAI Codex CLI with a single configuration block.

Quick start

bash
export GOOGLE_API_KEY="your-google-api-key"
npx -y img-mcp

Then add the server to your MCP host and ask your agent to generate an image.

Learn more

Released under the MIT License.