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 and local image manipulation. Connect your agents to Google's Nano Banana models or process images locally with Node.js.

img-mcp is an open-source Model Context Protocol (MCP) server that lets AI agents generate and manipulate images. It connects any MCP-compatible host to Google's Nano Banana image-generation models (Gemini Flash Image) through the Gemini API, and runs fast local operations with sharp and Node.js.
Because img-mcp speaks the standard MCP protocol, you can add image generation and manipulation to Claude, Cursor, Windsurf, Kimi, OpenCode, or the OpenAI Codex CLI with a single configuration block.
For local image manipulation, no API key is needed:
npx -y img-mcpFor AI image generation, set a Google API key first:
export GOOGLE_API_KEY="your-google-api-key"
npx -y img-mcpThen add the server to your MCP host and ask your agent to resize, convert, or generate an image.