Imagen 4 MCP logo

Imagen 4 MCP

Creates and monitors RunAPI Imagen 4 image tasks, retrieves output URLs, and checks model pricing.

Install Imagen 4 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": {
    "imagen-4-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@runapi.ai/imagen-4-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 imagen-4-mcp -- npx -y @runapi.ai/imagen-4-mcp

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

Automated check passed— started and listed 5 tools correctly ().

Overview

imagen-4-mcp exposes RunAPI’s Imagen 4 image generation endpoints through MCP over a standard stdio command. It can submit text-to-image and image-remix tasks, optionally wait for completion, retrieve task status, and inspect pricing without authentication. Use it when an agent needs a focused Imagen 4 integration rather than the full RunAPI model catalog. Authentication comes from RunAPI login credentials or the RUNAPI_API_KEY environment variable.

Use cases

  • Generate images from text prompts
  • Remix existing images with Imagen 4
  • Submit image tasks without waiting for completion
  • Poll task status and retrieve output URLs
  • Check Imagen 4 pricing before generation

Key features

  • RunAPI Imagen 4 text-to-image tasks
  • Run Imagen 4 remix tasks
  • Optionally wait for terminal task status
  • Retrieve task payloads and output URLs
  • Check model and endpoint pricing
  • Support stdio MCP host configuration

Tools5

What Imagen 4 MCP lets your agent do. Expand a tool for its parameters.

Verified live~850 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 82d

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 age132 days
Maintainers1

Observed 2026-11-03 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/imagen-4-mcp (npm)

Adoption & maintenance

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

npm downloads526Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.

How Imagen 4 MCP works

What imagen-4-mcp does

imagen-4-mcp connects MCP-compatible assistants to the Imagen 4 model line on RunAPI. It covers two image-generation workflows: creating an image from a text prompt and remixing an existing image. The server also exposes task tracking and pricing lookup, keeping the integration limited to Imagen 4 rather than the broader RunAPI catalog.

Four model variants are available across the supported operations. text_to_image accepts imagen-4, imagen-4-fast, and imagen-4-ultra; remix_image uses imagen-4-pro-remix-image. Model availability may change, so pricing lookup or the Imagen 4 model page should be used for the current catalog.

How it works

The server runs as an MCP process launched with npx -y @runapi.ai/imagen-4-mcp. MCP clients send tool calls over stdio, and the server submits the corresponding operation to RunAPI.

Image creation tools return a task identifier and status. Both creation tools support an option to wait for a terminal result. When waiting is enabled, the response can include the final status and output URLs; when disabled, the task ID can be saved and checked later with get_task. That tool retrieves the current state and latest task payload for an existing task.

check_pricing looks up pricing for an Imagen 4 model and endpoint. It does not require sign-in, which makes it suitable for checking cost before submitting an authenticated generation task.

Setup and configuration

Install the server in Claude Code with:

Terminal
claude mcp add imagen-4 -s user -- npx -y @runapi.ai/imagen-4-mcp

For other MCP hosts, configure the command as npx with -y and @runapi.ai/imagen-4-mcp as its argument. The same stdio configuration works with Codex, Cursor, Windsurf, VS Code, Roo Code, and other MCP-compatible hosts.

For authenticated operations, ask the assistant to call the login tool. Browser-based login stores credentials in ~/.config/runapi/config.json, which is also used by runapi login. Headless or CI environments can instead set RUNAPI_API_KEY before starting the MCP host. A pre-provisioned configuration file may contain an apiKey field. Real credentials should not be committed to source control.

Tools and capabilities

  • text_to_image: submits an Imagen 4 text-to-image task and can wait for completion.
  • remix_image: submits an Imagen 4 remix task and can wait for completion.
  • get_task: retrieves the latest status and payload for a task ID.
  • check_pricing: checks pricing for a selected Imagen 4 model and endpoint without authentication.

The generation tools return task IDs, statuses, and output URLs when available. Natural-language requests can be used to have an assistant check pricing first, create a task, or submit work without waiting.

Limitations and notes

Authenticated access is needed for task creation and status polling; pricing lookup remains available without a key. The server is intentionally scoped to Imagen 4 and does not provide discovery across all RunAPI model families. Model availability can change between package releases, so clients should use check_pricing or the canonical Imagen 4 catalog when selecting a model.

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 Imagen 4 MCP

imagen-4-mcp is an MCP server that connects AI assistants to RunAPI's Imagen 4 model line. Its main tools create text-to-image and remix tasks, retrieve task status, and check model pricing. It supports asynchronous execution, optional waiting for terminal results, and returns task IDs and output URLs.

Install it with `npx -y @runapi.ai/imagen-4-mcp` as the command in your MCP client configuration. Claude Code users can run `claude mcp add imagen-4 -s user -- npx -y @runapi.ai/imagen-4-mcp`; other stdio-compatible hosts use the same command and argument.

Authenticate by calling the MCP `login` tool or by setting `RUNAPI_API_KEY` before starting the host. The login flow opens a browser and stores credentials in `~/.config/runapi/config.json`; task creation and status polling require authentication, while pricing checks do not.

Yes, imagen-4-mcp works with Cursor through its standard stdio MCP configuration. Set the command to `npx` and pass `-y` and `@runapi.ai/imagen-4-mcp` as arguments, then provide RunAPI authentication for task creation and polling.

Use the `get_task` tool with the task ID returned by `text_to_image` or `remix_image`. It fetches the current status and latest payload; alternatively, set the creation tool's wait option when you want it to wait for a terminal result.

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 PreviewImagen 4 MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/imagen-4-mcp?style=directory)](https://allmcps.com/mcp/imagen-4-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/imagen-4-mcp"><img src="https://allmcps.com/api/badge/imagen-4-mcp?style=directory" alt="Imagen 4 MCP on AllMCPs" /></a>