mcp-image

v0.19.0
io.github.shinpr/mcp-image Checked 2 hours ago Published 26 days ago

AI image generation and editing with prompt optimization and quality presets

Values you need

VariableWhat it is
IMAGE_PROVIDERoptional Image provider to use: 'gemini' (default), 'openai', or 'seedream'
GEMINI_API_KEYoptional secret Google Gemini API key for image generation when IMAGE_PROVIDER=gemini (get from https://aistudio.google.com/apikey)
OPENAI_API_KEYoptional secret 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)
ARK_API_KEYoptional secret BytePlus ModelArk AP region API key required when IMAGE_PROVIDER=seedream
IMAGE_OUTPUT_DIRoptional Absolute or working-directory-relative path where generated images will be saved (defaults to ./output)
IMAGE_QUALITYoptional Default quality preset: 'fast' (default), 'balanced', or 'quality'
SKIP_PROMPT_ENHANCEMENToptional Set to 'true' to disable automatic prompt optimization and use direct prompts

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-image -- npx -y mcp-image@0.19.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-image": {
      "args": [
        "-y",
        "mcp-image@0.19.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-image": {
      "args": [
        "-y",
        "mcp-image@0.19.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-image": {
      "args": [
        "-y",
        "mcp-image@0.19.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-image]
command = "npx"
args = ["-y", "mcp-image@0.19.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: generate_image.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json