# gpt-image-mcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/runapi-ai/gpt-image-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 845  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gpt-image-mcp

## Description
RunAPI MCP server for GPT Image: create tasks, poll status, and check pricing.

## Tools
Capabilities this server exposes over MCP:

- **login** — Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
- **edit_image** — Create a GPT Image task on RunAPI (edit image). Returns a task id, status, and output URLs.
- **text_to_image** — Create a GPT Image task on RunAPI (text to image). Returns a task id, status, and output URLs.
- **get_task** — Fetch the current status and latest result payload for a gpt-image task.
- **check_pricing** — Look up RunAPI pricing for the gpt-image model line.

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

```json
"mcpServers": {
  "gpt-image-mcp": {
    "command": "npx",
    "args": ["-y","@runapi.ai/gpt-image-mcp"],
    "env": {
      "RUNAPI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `RUNAPI_API_KEY` — 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 RunAPI's GPT Image capabilities through the Model Context Protocol. It focuses on one model line and supports image generation and image editing, along with task tracking and pricing inspection. The supported model variant is `gpt-image-1.5` for both image operations.

The server is suited to assistants that need to create an image task, return its identifier and results, or submit work without waiting for completion. It keeps the available scope narrower than RunAPI's general MCP package, which is intended for assistants working across the wider model catalog.

## How it works

Image operations are asynchronous RunAPI tasks. An assistant can call `text_to_image` or `edit_image`, choose whether to wait for a terminal status, and receive the task ID, status, and output URLs. When a task is submitted with waiting disabled, `get_task` can retrieve its current status and latest payload later.

`check_pricing` looks up current pricing for a GPT Image model and endpoint and can be used before authentication or task creation. Model availability may change between package releases, so pricing lookup or the GPT Image model page provides the current catalog view.

## Setup and configuration

Install the package through `npx` and register it with an MCP host using the stdio command `npx -y @runapi.ai/gpt-image-mcp`. Claude Code can add it at user or project scope; other supported hosts can use the same command and argument configuration.

Authenticated operations resolve credentials in this order:

1. `RUNAPI_API_KEY`, useful for headless environments and CI.
2. `~/.config/runapi/config.json`, which can be created by the RunAPI login flow.
3. No credentials, which still permits `check_pricing`.

A headless configuration can contain an `apiKey` value in the RunAPI config file. Keep real keys out of source control. The package includes configuration examples for Claude, Cursor, Windsurf, VS Code, and Roo Code.

## Tools and capabilities

- `text_to_image` creates a GPT Image text-to-image task and can wait for completion.
- `edit_image` creates a GPT Image editing task and can wait for completion.
- `get_task` checks an existing task and returns its latest status and payload.
- `check_pricing` retrieves pricing for a GPT Image model and endpoint without authentication.

The creation tools return task identifiers, status information, and output URLs. Natural-language requests can combine pricing inspection with task creation, or submit a task first and check it later.

## Limitations and notes

The server is scoped to GPT Image rather than the complete RunAPI catalog. Both creation tools use the `gpt-image-1.5` model variant listed for the package. Image creation and status retrieval require authentication, while pricing lookup does not. The MCP host must support stdio server configuration, and model availability can change between releases.

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

