# gpt-image-mcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/youbotapi/gpt-image-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 664  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gpt-image-mcp-2

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

## Tools
Capabilities this server exposes over MCP:

- **generate_image** — Make an image from a text prompt
- **edit_image** — Change an existing image from a public URL — swap a background, add or remove objects, restyle
- **check_credits** — Show remaining balance and images left

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "gpt-image-mcp": {
    "command": "npx",
    "args": ["-y","gpt-image-2-5-mcp"],
    "env": {
      "YOUBOT_API_KEY": "",
      "YOUBOT_IMAGE_DIR": ""
    }
  }
}
```

**Requires environment variables:** `YOUBOT_API_KEY`, `YOUBOT_IMAGE_DIR` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What gpt-image-mcp does

gpt-image-mcp exposes GPT Image 2.5 image generation and editing through the Model Context Protocol. It connects to you.bot, which provides access to the model, so the required credential is a you.bot API key beginning with `sk-live-`. OpenAI API keys are not supported.

The server provides three MCP tools:

- `generate_image` creates an image from a text prompt.
- `edit_image` changes an existing image provided through a public URL. Edits can include replacing a background, adding or removing objects, or changing the visual style.
- `check_credits` reports the remaining balance and the approximate number of images that balance can purchase.

A separate setup prompt can help walk through configuration when the server is not working. Generated images are returned inline to the client after processing.

## How it works

The gpt-image-mcp MCP server is launched with `npx -y gpt-image-2-5-mcp` and communicates with an MCP client over standard input and output. Image requests are sent through you.bot, and the server polls until the result is ready. A typical generation takes 30–60 seconds.

Generation and editing each cost 2.9 credits, equivalent to $0.029 according to the repository documentation. Credit checks do not consume credits. Failed generations are refunded automatically, and the server reports the cost after an image operation.

Output is fixed at 1024 pixels, or 1K. Supported aspect ratios are `1:1`, `3:2`, `2:3`, `4:3`, `3:4`, `16:9`, `9:16`, `2:1`, `1:2`, and `21:9`. Prompts can describe the subject, setting, lighting, composition, and style. For edits, specify both the requested change and the parts that should remain unchanged.

## Setup and configuration

Create an account at you.bot, generate an API key, and provide it as `YOUBOT_API_KEY`. New accounts receive 50 credits, described as approximately 17 images, without requiring a credit card. Credits do not expire.

For Claude Desktop or Cursor, add a server entry that runs the package with `npx` and places the key in the `env` object. Claude Code can register the same command with `claude mcp add`. Other MCP clients can launch the stdio command directly with the environment variable set. Restart the client after changing its configuration.

The optional `YOUBOT_IMAGE_DIR` variable saves each generated image as a PNG in the specified directory. It is not required for inline results.

## Limitations and notes

The gpt-image-mcp MCP server requires Node.js 18 or newer and an active you.bot API key. The API key must come from you.bot; an OpenAI credential will not work. The `edit_image` tool requires the source image to be available at a public URL.

All image operations use the fixed 1K output and the documented flat per-image cost. Users who exhaust their balance must top up through you.bot. If a client does not show the tools, verify that it detected the stdio process, the environment variable is inside the MCP configuration, and the client was fully restarted.

_Full upstream README: https://allmcps.com/mcp/gpt-image-mcp-2/readme_

