Gpt Image 2 MCP logo

Gpt Image 2 MCP

Run GPT Image 2 generation and editing tasks through MCP, track results, and check RunAPI pricing.

Install Gpt Image 2 MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "gpt-image-2-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@runapi.ai/gpt-image-2-mcp"
      ],
      "env": {
        "RUNAPI_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env RUNAPI_API_KEY=YOUR_VALUE_HERE --transport stdio gpt-image-2-mcp -- npx -y @runapi.ai/gpt-image-2-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y @runapi.ai/gpt-image-2-mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

gpt-image-2-mcp MCP server connects MCP-compatible assistants to RunAPI's GPT Image 2 model. It creates text-to-image and image-editing tasks, optionally waits for completion, and returns task details with output URLs. Separate tools retrieve task status and inspect pricing without authentication. Use it when an agent needs a narrowly scoped GPT Image 2 interface rather than the full RunAPI model catalog.

Use cases

  • Generate images from natural-language prompts
  • Edit images through GPT Image 2
  • Submit image tasks without waiting for completion
  • Poll existing RunAPI tasks by ID
  • Check GPT Image 2 pricing before submission

Key features

  • GPT Image 2 text-to-image tasks
  • GPT Image 2 image-editing tasks
  • Optional waiting for terminal task status
  • Task status and payload retrieval
  • Unauthenticated pricing lookup
  • RunAPI API-key or login-based authentication

Tools5

What Gpt Image 2 MCP lets your agent do. Expand a tool for its parameters.

Verified live~920 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 83d

What it can do

From the 5 tools this server returned when we ran it.

Handles credentials · 1Makes network requests · 1Read-only tools · 5
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age131 days
Maintainers1

Observed 2026-11-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @runapi.ai/gpt-image-2-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads900Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed5Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Gpt Image 2 MCP works

What gpt-image-2-mcp does

gpt-image-2-mcp exposes RunAPI access to the GPT Image 2 model through the Model Context Protocol. Its scope is limited to GPT Image 2 rather than the broader RunAPI catalog, making it suitable when an assistant should work with one image model and its supported operations.

The server supports two task-creation workflows: generating an image from text and editing an existing image. Both return a task identifier, status information, and output URLs when available. The creation tools can either wait for a terminal result or submit the task for later inspection.

How it works

The server runs as a standard stdio MCP process. MCP hosts start it with npx, and an assistant invokes the exposed tools through its normal tool-calling interface. A task can be submitted with waiting disabled, then checked later using its task ID and get_task.

Authentication is needed for task creation and status retrieval. The server can use a RunAPI API key from the environment or credentials stored in RunAPI's configuration file. The MCP login flow opens a browser-based login and stores credentials at ~/.config/runapi/config.json; the same file can also be managed by runapi login. Pricing lookup is available without signing in.

Setup and configuration

For Claude Code, the package can be registered with:

Terminal
claude mcp add gpt-image-2 -s user -- npx -y @runapi.ai/gpt-image-2-mcp

Use project scope instead when sharing the MCP registration with a repository. Other supported hosts can use the same stdio command with npx and the @runapi.ai/gpt-image-2-mcp package as its argument.

Headless or CI environments can provide RUNAPI_API_KEY before starting the MCP host. Alternatively, a pre-provisioned configuration file can contain an apiKey value. API keys should not be committed to source control.

Tools and capabilities

  • text_to_image submits a GPT Image 2 text-to-image task. It can wait for completion and returns the task ID, status, and output URLs.
  • edit_image submits an image-editing task with the same optional waiting behavior and result fields.
  • get_task retrieves the latest status and payload for an existing task.
  • check_pricing looks up pricing for a GPT Image 2 model and endpoint without authentication.

Both image-generation tools use the gpt-image-2 model variant. An assistant can check pricing before creating a task, submit work without waiting, and retrieve it later with the returned identifier.

Limitations and notes

This package is intended for GPT Image 2 and does not provide the complete RunAPI model catalog. Model availability can change between package releases, so pricing lookup or the GPT Image 2 model page should be used for the current catalog view.

Task creation and status polling require RunAPI authentication, while pricing checks do not. The server returns output URLs when the relevant task result makes them available; submitting with waiting disabled returns the task ID for later polling instead of waiting for a terminal status.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gpt Image 2 MCP

gpt-image-2-mcp is an MCP server that connects AI assistants to RunAPI's GPT Image 2 model. Its main tools create text-to-image and image-editing tasks, retrieve task status, and check pricing. Image tasks can wait for completion or return a task ID for later polling.

Install it by registering `npx -y @runapi.ai/gpt-image-2-mcp` as a stdio MCP server. Claude Code can use the `claude mcp add` command, while Cursor, Windsurf, VS Code, Roo Code, Codex, and other MCP hosts can use the same command and package in their MCP configuration.

Authenticate with the MCP `login` flow or set `RUNAPI_API_KEY` before starting the host. Browser login stores credentials in `~/.config/runapi/config.json`, while the environment variable is suited to headless and CI use. Pricing checks work without authentication.

Set the image creation tool's `wait` option to `false`. The server returns the task ID, and you can later call `get_task` to obtain the current status and latest payload.

Yes, `check_pricing` looks up pricing for a GPT Image 2 model and endpoint without requiring sign-in. An assistant can use it before submitting a text-to-image or image-editing task.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGpt Image 2 MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gpt-image-2-mcp?style=directory)](https://allmcps.com/mcp/gpt-image-2-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/gpt-image-2-mcp"><img src="https://allmcps.com/api/badge/gpt-image-2-mcp?style=directory" alt="Gpt Image 2 MCP on AllMCPs" /></a>