MCP Image
Generates and edits images with Gemini, OpenAI or Seedream after enhancing the prompt
MCP Image is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- Version
- 0.19.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-image --env GEMINI_API_KEY='<GEMINI_API_KEY>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env ARK_API_KEY='<ARK_API_KEY>' -- npx -y mcp-imageAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-image": {
"command": "npx",
"args": [
"-y",
"mcp-image"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"OPENAI_API_KEY": "<OPENAI_API_KEY>",
"ARK_API_KEY": "<ARK_API_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp-image": {
"command": "npx",
"args": [
"-y",
"mcp-image"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"OPENAI_API_KEY": "<OPENAI_API_KEY>",
"ARK_API_KEY": "<ARK_API_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-image": {
"command": "npx",
"args": [
"-y",
"mcp-image"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"OPENAI_API_KEY": "<OPENAI_API_KEY>",
"ARK_API_KEY": "<ARK_API_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"mcp-image": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-image"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"OPENAI_API_KEY": "<OPENAI_API_KEY>",
"ARK_API_KEY": "<ARK_API_KEY>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add mcp-image --env GEMINI_API_KEY='<GEMINI_API_KEY>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env ARK_API_KEY='<ARK_API_KEY>' -- npx -y mcp-imageOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-image]
command = "npx"
args = ["-y", "mcp-image"]
env = { GEMINI_API_KEY = "<GEMINI_API_KEY>", OPENAI_API_KEY = "<OPENAI_API_KEY>", ARK_API_KEY = "<ARK_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-image": {
"command": "npx",
"args": [
"-y",
"mcp-image"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"OPENAI_API_KEY": "<OPENAI_API_KEY>",
"ARK_API_KEY": "<ARK_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mcp-image": { "command": "npx", "args": [ "-y", "mcp-image" ], "env": { "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENAI_API_KEY": "<OPENAI_API_KEY>", "ARK_API_KEY": "<ARK_API_KEY>" } } } }Or run: gemini mcp add -s user -e GEMINI_API_KEY='<GEMINI_API_KEY>' -e OPENAI_API_KEY='<OPENAI_API_KEY>' -e ARK_API_KEY='<ARK_API_KEY>' mcp-image npx -- -y mcp-image
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mcp-image": { "command": "npx", "args": [ "-y", "mcp-image" ], "env": { "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENAI_API_KEY": "<OPENAI_API_KEY>", "ARK_API_KEY": "<ARK_API_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "mcp-image": { "command": "npx", "args": [ "-y", "mcp-image" ], "env": { "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENAI_API_KEY": "<OPENAI_API_KEY>", "ARK_API_KEY": "<ARK_API_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "mcp-image": { "command": "npx", "args": [ "-y", "mcp-image" ], "env": { "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENAI_API_KEY": "<OPENAI_API_KEY>", "ARK_API_KEY": "<ARK_API_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "mcp-image": { "command": "npx", "args": [ "-y", "mcp-image" ], "env": { "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENAI_API_KEY": "<OPENAI_API_KEY>", "ARK_API_KEY": "<ARK_API_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcp-image": { "command": "npx", "args": [ "-y", "mcp-image" ], "env": { "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENAI_API_KEY": "<OPENAI_API_KEY>", "ARK_API_KEY": "<ARK_API_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mcp-image": { "command": "npx", "args": [ "-y", "mcp-image" ], "env": { "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENAI_API_KEY": "<OPENAI_API_KEY>", "ARK_API_KEY": "<ARK_API_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mcp-image": { "command": "npx", "args": [ "-y", "mcp-image" ], "env": { "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENAI_API_KEY": "<OPENAI_API_KEY>", "ARK_API_KEY": "<ARK_API_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
IMAGE_PROVIDERImage provider to use: 'gemini' (default), 'openai', or 'seedream'GEMINI_API_KEYGoogle Gemini API key for image generation when IMAGE_PROVIDER=gemini (get from https://aistudio.google.com/apikey)OPENAI_API_KEYOpenAI 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)ARK_API_KEYBytePlus ModelArk AP region API key required when IMAGE_PROVIDER=seedreamIMAGE_OUTPUT_DIRAbsolute or working-directory-relative path where generated images will be saved (defaults to ./output)IMAGE_QUALITYDefault quality preset: 'fast' (default), 'balanced', or 'quality'SKIP_PROMPT_ENHANCEMENTSet to 'true' to disable automatic prompt optimization and use direct prompts
About MCP Image
Before an image is sent to the model, short requests are rewritten into more specific prompts that fit the stated purpose, such as lighting and camera angle for a photo or layout for a poster. Text you want in the image stays as written, in your language, and setting SKIP_PROMPT_ENHANCEMENT turns the rewriting off.
It supports three providers with your own keys: Gemini by default, OpenAI, and BytePlus Seedream, switchable per request. A single generate_image tool takes a prompt, quality preset (fast, balanced or quality), aspect ratios from 1:1 to 21:9 and 8:1, image sizes of 1K to 4K depending on the provider, input image paths for editing, character consistency and blending options. Google Search grounding is Gemini-only, and OpenAI may need organisation verification.
Images are saved to a configured folder and returned to the assistant as an MCP resource. Node.js 22 or later is required. The package is MIT licensed.
Tools this server provides (1)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 name doesn't say.
From the server's own tool labels and tool names; not verified by us.
- generate_image
- Generates or edits an image from a prompt with provider and quality options.
What it does
- Prompt enhancement
- Expands short requests with purpose-aware visual detail.
- Three providers
- Gemini, OpenAI or Seedream.
- Image editing
- Edit images from absolute paths.
- Quality presets
- fast, balanced or quality.
- Aspect ratios
- Many ratios including 21:9.
- Character consistency
- Keep a subject's look across images.
Good for
- Generate a product photo for a website
- Edit a photo's pose or composition
- Create a poster layout from a brief
- Produce wide cinematic landscapes
Pricing
Open source
Free MIT package; image provider costs apply
MCP Image FAQ
Which keys do I need?
One for your chosen provider: GEMINI_API_KEY, OPENAI_API_KEY or ARK_API_KEY.
Can I turn off prompt rewriting?
Yes, set SKIP_PROMPT_ENHANCEMENT to true.
Where are images saved?
In IMAGE_OUTPUT_DIR, default ./output.
What licence?
MIT.
Is MCP Image free?
Yes. MCP Image is open source, so you can use and self-host it for free.
How do I add MCP Image to Claude Code?
Run this command in your terminal: claude mcp add mcp-image --env GEMINI_API_KEY='<GEMINI_API_KEY>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env ARK_API_KEY='<ARK_API_KEY>' -- npx -y mcp-image
What are the best alternatives to MCP Image?
The closest alternatives to MCP Image are HyperFrames by HeyGen, headroom, omniget, ffmpeg-skill and next-ai-draw-io.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.



