Grok Imagine MCP logo

Grok Imagine MCP

Run Grok Imagine image and video tasks, poll results, and check RunAPI pricing through MCP.

Install Grok Imagine 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": {
    "grok-imagine-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@runapi.ai/grok-imagine-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 grok-imagine-mcp -- npx -y @runapi.ai/grok-imagine-mcp

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @runapi.ai/grok-imagine-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

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

The grok-imagine-mcp MCP server connects MCP-compatible assistants to RunAPI's Grok Imagine model line for image and video operations. It exposes tools for generation, editing, upscaling, video extension, segmentation, task polling, and pricing lookup. Tasks can be submitted asynchronously or waited on until a terminal status, with task IDs and output URLs returned. Reach for it when an agent needs a focused Grok Imagine integration rather than the full RunAPI model catalog.

Use cases

  • Generate images from text prompts
  • Convert images or text prompts into video
  • Edit and upscale generated images
  • Extend videos and create segment maps
  • Check pricing before submitting tasks

Key features

  • Grok Imagine image and video task creation
  • Optional waiting for terminal task status
  • Task status and payload retrieval
  • Output URL reporting
  • RunAPI pricing lookup
  • Seven focused Grok Imagine endpoints

Tools10

What Grok Imagine MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.6k 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 10 tools this server returned when we ran it.

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

Observed 2026-10-30 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/grok-imagine-mcp (npm)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
npm downloads732Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed10Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Grok Imagine MCP works

What grok-imagine-mcp does

grok-imagine-mcp provides MCP access to the Grok Imagine models available through RunAPI. It focuses on seven model endpoints instead of exposing the broader RunAPI catalog, making it suitable for assistants that should work specifically with Grok Imagine image and video workflows.

The server supports image editing, text-to-image generation, image-to-video conversion, text-to-video generation, image upscaling, video extension, and segment map creation. It also provides task inspection and pricing lookup. Creation tools return a task identifier, status information, and output URLs when available.

How it works

MCP-compatible clients start the server over standard input/output with the @runapi.ai/grok-imagine-mcp npm package. An assistant can call check_pricing before submitting a job, create a task through the operation-specific tool, and use get_task later to retrieve the latest status and payload.

Creation tools support an option to wait for a terminal status. When waiting is disabled, the assistant receives the task ID without blocking for completion and can poll the task later. Authenticated operations use RunAPI credentials, while pricing lookup can run without signing in.

The available model choices depend on the operation. Image editing accepts grok-imagine-edit-image and grok-imagine-image-2-0; image-to-video and text-to-video each expose their own Grok Imagine model choices. Segment mapping and text-to-image use supported image models, while video extension and image upscaling do not take a model parameter.

Setup and configuration

Install the server through an MCP client's standard stdio configuration. For example, the command is:

config.json
{
  "mcpServers": {
    "grok-imagine": {
      "command": "npx",
      "args": ["-y", "@runapi.ai/grok-imagine-mcp"]
    }
  }
}

Claude Code can add the same package with claude mcp add, using either user or project scope. Codex, Cursor, Windsurf, VS Code, Roo Code, and other MCP hosts can use the stdio command.

Authentication can use the RUNAPI_API_KEY environment variable, which is useful for headless and CI environments. Alternatively, the MCP login flow or runapi login stores credentials in ~/.config/runapi/config.json. A pre-provisioned configuration file can contain an apiKey property. Keep credentials out of source control.

Tools and capabilities

  • edit_image: submits an image editing task.
  • extend_video: submits a video extension task.
  • image_to_video: creates video from an image.
  • segment_map: creates a segment map task.
  • text_to_image: generates an image from text.
  • text_to_video: generates a video from text.
  • upscale_image: submits an image upscaling task.
  • get_task: retrieves the current state and latest payload for a task.
  • check_pricing: looks up pricing for a Grok Imagine model and endpoint.

All task-creation tools can optionally wait for completion and return output URLs along with task status. check_pricing is available without authentication.

Limitations and notes

The server is scoped to Grok Imagine and does not provide the full RunAPI model catalog. Model availability may change between releases, so pricing lookup or the Grok Imagine model page should be used for the current catalog. Task creation and status polling require RunAPI authentication, while pricing inspection does not.

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 Grok Imagine MCP

grok-imagine-mcp is an MCP server that connects AI assistants to RunAPI's Grok Imagine model line. Its main tools create image and video tasks, edit or upscale images, extend video, create segment maps, poll task status, and check endpoint pricing. It is designed for assistants that need Grok Imagine without the full RunAPI catalog.

Install it by configuring your MCP client to run `npx -y @runapi.ai/grok-imagine-mcp`. Claude Code can add it with `claude mcp add`; other supported clients can use the same standard stdio command in their MCP configuration.

Authenticate with `RUNAPI_API_KEY` or the RunAPI login flow. The login flow stores credentials in `~/.config/runapi/config.json`, and headless or CI environments can set the environment variable before starting the MCP host. Pricing lookup works without authentication.

Yes, grok-imagine-mcp works with Cursor through its standard MCP stdio configuration. Add an MCP server entry that runs `npx` with `-y` and `@runapi.ai/grok-imagine-mcp` as the package argument.

Call `get_task` with the task identifier returned by a creation tool. Creation tools can also wait for a terminal status; when submitted without waiting, the returned task ID can be used for later status and payload retrieval.

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