MCP Image Generator
Lets your AI agent generate and edit images with Gemini, OpenAI or Seedream, improving short prompts first.
187 stars on GitHubby shinprLicense MITUpdated 19 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add image -- npx -y mcp-image
What to fill in
| Name | What it is | Required |
|---|---|---|
IMAGE_PROVIDER | Image provider to use: 'gemini' (default), 'openai', or 'seedream' | No |
GEMINI_API_KEY | Google Gemini API key for image generation when IMAGE_PROVIDER=gemini (get from https://aistudio.google.com/apikey) | No |
OPENAI_API_KEY | OpenAI API key for image generation when IMAGE_PROVIDER=openai. Requires OpenAI organization verification to access GPT Image 2.6 (https://platform.openai.com/settings/organization/general) | No |
ARK_API_KEY | BytePlus ModelArk AP region API key required when IMAGE_PROVIDER=seedream | No |
IMAGE_OUTPUT_DIR | Absolute or working-directory-relative path where generated images will be saved (defaults to ./output) | No |
IMAGE_QUALITY | Default quality preset: 'fast' (default), 'balanced', or 'quality' | No |
SKIP_PROMPT_ENHANCEMENT | Set to 'true' to disable automatic prompt optimization and use direct prompts | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Generate a product photo of a ceramic coffee mug on a wooden desk.
Edit /path/to/image.jpg so the person is facing right.
What it is
This server sends your image requests to Gemini, OpenAI GPT Image or BytePlus Seedream and saves the result to a folder on your computer. Before generating, it rewrites short requests into more detailed prompts, such as adding lighting or layout, while keeping your text. You can also edit an existing image by giving its path.
What it can do
generate_image: create an image from a promptgenerate_imagewith input image paths: edit an existing image- Quality presets: fast, balanced or quality
- Choose the provider per request: Gemini, OpenAI or Seedream
- Set aspect ratio and image size (1K, 2K, 4K where supported)
- Keep a character consistent across images
When to use
- βΊWhen you need a product photo, poster or illustration without opening an image tool
- βΊWhen you want to change an existing picture, such as turning a person to face right
- βΊWhen you want to compare providers by switching between Gemini, OpenAI and Seedream
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
image-generationLets your agent generate or edit images from a text prompt, such as an illustration, icon, poster, or photo.image-generatorHelps your agent create and edit images. It's useful when you need visuals, logos, product mockups, or any image generation/editing task.imagegenHelps your agent create or edit bitmap images such as photos, illustrations, sprites, mockups and transparent cutouts, using the built-in image generator.Frequently asked questions
Is it free?
The server is MIT licensed. The image providers charge their own fees, and higher quality settings can cost more.
Which providers work?
Gemini (default), OpenAI and BytePlus Seedream. Set IMAGE_PROVIDER or pass a provider on each request.
Where are images saved?
In IMAGE_OUTPUT_DIR, or ./output if unset. Use an absolute path in your MCP configuration.
Can I turn off the prompt rewriting?
Yes. Set SKIP_PROMPT_ENHANCEMENT=true to send your prompt unchanged.
What image files can I edit?
PNG, JPEG or WebP, up to 10 MiB each. Seedream editing accepts PNG and JPEG only.
Any provider limits?
Google Search grounding works with Gemini only, Seedream does not support 4K, and OpenAI may need organization verification.
If it does not work
- βΊIf you see API key not found, check that the key for the chosen provider is in the server environment, then restart your client.
- βΊFor input image not found, use absolute paths and make sure the server can read the file.
- βΊIf a provider rejects a request, check the size options and your account quota or organization settings.
5 new skills a week. 1 minute to read.