Why I built this
I use Claude Code as my primary dev environment. Code, review, deploy — almost everything happens inside Claude Code. But there was one thing that kept pulling me out: generating images.
Every time I needed a diagram or an illustration, I'd switch to Google AI Studio, rewrite the prompt without the original context, and manually save the result back into my project. About 30 times a day.
So I built mcp-imagenate, an MCP server that brings image generation directly into Claude Code and Claude Desktop. It hit 1,000 downloads on npm within 4 days of release.
Note: This is an alpha release, built as a personal project. Use at your own risk.
Use Cases
Here are three ways I actually use this daily.
1. Generate system architecture diagrams from Claude Code
After designing and implementing a system in Claude Code, I just say "generate an architecture diagram for this system." Claude Code already understands the full project context, so it constructs a solid prompt and generates the diagram via Gemini's nano-banana-2. The image is saved directly into the project directory.
2. Turn daily journaling into illustrated entries
I keep a daily journal using Claude and the Notion MCP. With mcp-imagenate added, Claude now generates illustrations for each entry automatically. Combined with Claude Code's Skills feature, I can iterate on image prompts without ever leaving the conversation — proper prompt engineering, right inside the chat.
3. Generate images on the fly during frontend development
While building a frontend in Claude Code, I can ask it to generate and insert images on the spot. Need a cute apologetic cat illustration for an error page? Claude Code generates it, saves it to the right directory, and references it in the code. No context switch needed.
These are just my workflows — I'm sure there are plenty more possibilities with MCP.
Supported Providers
| Provider | Model |
|---|---|
| Google Gemini | nano-banana-2, nano-banana-pro |
| OpenAI | gpt-image-1.5 |
| BFL FLUX | flux-2-klein, flux-2-pro, flux-2-max |
Claude constructs the image generation prompt and picks the model. You can also configure resolution, aspect ratio, and output directory. Google models additionally support image editing with an input image.
Why This Matters
Mix and match chat models with image generation models.
Chat with Claude while generating images with Gemini's nano-banana-2. Or FLUX. Or OpenAI. Pick the best chat model and the best image model independently. You no longer need to choose Gemini just because it can generate images.
One interface for everything.
Gemini, GPT, FLUX — all callable from Claude Code or Claude Desktop. No more opening browser tabs and copy-pasting context between platforms.
Prompt engineering, context, and image generation in one flow.
While developing in Claude Code, you think "I need an icon here" — and it's generated, saved to the right directory, and referenced in your code. Claude Code understands the system design, constructs the image prompt, generates the image, and embeds it in documentation. No context is lost.
Getting Started
Set your API keys as environment variables and add the server config to Claude Desktop or Claude Code. That's it.
See the README for setup instructions.
Note for Claude Desktop users
Due to a limitation in the Claude Desktop app, generated images cannot be displayed inline. Claude will output the file path — open it from your terminal with open <path> (macOS) or your file manager.
Links
- npm: mcp-imagenate
- GitHub: mimo-3/mcp-imagenate
- Author: @aconitine_LD50
If you try it out, I'd love to hear your feedback on X or GitHub Issues.

Top comments (0)