Skip to main content
Glama
Grok Imagine Image MCP Server

Grok Imagine Image MCP Server

by ex-takashima

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEBUGNoSet to `true` for debug logging.
OUTPUT_DIRNoDefault output directory for images.
XAI_API_KEYYesYour xAI API key (required). Get one from console.x.ai.
XAI_IMAGE_THUMBNAILNoSet to `true` to include thumbnails in MCP responses.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageB

Generate a new image from a text prompt using xAI Grok Imagine Image API. Models: grok-imagine-image ($0.02/image at 1k or 2k), grok-imagine-image-pro ($0.05/image at 1k, $0.07/image at 2k), grok-imagine-image-2.0 (latest, $0.04-$0.08/image depending on resolution and quality). Supports aspect ratios: 1:1, 3:4, 4:3, 3:2, 2:3, 2:1, 1:2, 9:16, 16:9, 19.5:9, 9:19.5, 20:9, 9:20, auto. Can generate multiple images at once (up to 10).

edit_imageA

Edit an existing image using xAI Grok Imagine Image API. Models: grok-imagine-image ($0.02/image + $0.002/input image), grok-imagine-image-pro ($0.05/image at 1k or $0.07 at 2k + $0.01/input image), grok-imagine-image-2.0 ($0.04-$0.08/image + $0.01/input image). Provide a source image via file path, base64, or URL along with a prompt describing the desired changes. Supports up to 3 input images via image_paths/image_base64s/image_urls arrays.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 2 tools

Disambiguation5/5

generate_image and edit_image target clearly distinct operations: one creates from a text prompt, the other modifies supplied source images. There is no plausible way an agent would confuse the two given the descriptions.

Naming Consistency5/5

Both tools follow a strict verb_noun snake_case pattern (generate_image, edit_image) that reads predictably and maps one-to-one to the underlying actions.

Tool Count3/5

Two tools is thin for a general-purpose server, but it matches the narrow scope of wrapping a generation/editing API. Still, it sits at the borderline where the surface feels minimal, with no utility operations offered.

Completeness4/5

The core lifecycle of creating and editing images is fully covered, including model selection, aspect ratios, batch generation, and multiple input images. Minor gaps remain, such as no model/price listing tool or separate upscale/variation operation, but these are workable.

Maintenance

ActivitySlowing
ResponsivenessNo recent community issues