gpt-image-mcp

v0.2.2
io.github.youbotapi/gpt-image-mcp Checked 4 days ago Published 2 months ago

Generate and edit images with GPT Image 2.5 for $0.029 — free key, 50 credits, no card.

Values you need

VariableWhat it is
YOUBOT_API_KEYrequired secret API key from you.bot — NOT an OpenAI key. Free at https://you.bot, 50 credits (~17 images) on signup, no credit card. Keys start with sk-live-.
YOUBOT_IMAGE_DIRoptional Optional. If set, every generated image is also saved to this folder.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add gpt-image-mcp -e 'YOUBOT_API_KEY=<YOUBOT_API_KEY>' -- npx -y gpt-image-2-5-mcp@0.2.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "gpt-image-mcp": {
      "args": [
        "-y",
        "gpt-image-2-5-mcp@0.2.2"
      ],
      "command": "npx",
      "env": {
        "YOUBOT_API_KEY": "<YOUBOT_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "gpt-image-mcp": {
      "args": [
        "-y",
        "gpt-image-2-5-mcp@0.2.2"
      ],
      "command": "npx",
      "env": {
        "YOUBOT_API_KEY": "<YOUBOT_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "YOUBOT_API_KEY",
      "id": "youbot-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "gpt-image-mcp": {
      "args": [
        "-y",
        "gpt-image-2-5-mcp@0.2.2"
      ],
      "command": "npx",
      "env": {
        "YOUBOT_API_KEY": "${input:youbot-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.gpt-image-mcp]
command = "npx"
args = ["-y", "gpt-image-2-5-mcp@0.2.2"]
env = { "YOUBOT_API_KEY" = "<YOUBOT_API_KEY>" }

For AI agents

  1. Ask the user for: YOUBOT_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: generate_image, edit_image, check_credits.
  5. 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