Text-to-image
Generate images from natural-language prompts with controls for aspect ratio, resolution, and output format.
Open-source MCP server for AI image generation. Connect your agents to Google's Nano Banana models in minutes.

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.
export GOOGLE_API_KEY="your-google-api-key"
npx -y img-mcpThen add the server to your MCP host and ask your agent to generate an image.