# Grok Image

> Grok Image is an open-source MCP server for design and media. MCP server giving AI clients image generation, editing and headshot tools via xAI Grok. It is available on CLI, API and self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, self-hosted
- **Repository:** https://github.com/codechap/mcp-server-grok-image
- **MCP Registry name:** io.github.codeChap/grok-image
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-18

## About

The README describes this as a Rust-built MCP server that connects AI clients to xAI's Grok image API over stdio using JSON-RPC 2.0. Instead of calling the image endpoints directly, a client can invoke named tools for generating images from text, editing one or several source images with natural language, and producing padded corporate headshots.

A notable feature is its style system. Fourteen built-in styles such as watercolor, pixel-art and noir wrap a user's prompt in a template, and users can add their own styles or override built-ins through a TOML config file. Responses echo back the resolved prompt so the sent text can be checked.

The server needs an xAI API key stored in a local config file and is set up by adding its binary path to an MCP client configuration. It suits developers and people who already use an MCP-capable assistant and want image work available inside it.

## Features

- **Text-to-image generation:** Creates images from a prompt with control over aspect ratio, resolution, quality and count.
- **Multi-image editing:** Edits one image or up to five reference images using natural language instructions.
- **Style templates:** Applies fourteen built-in styles or custom templates to generation prompts.
- **Headshot preparation:** Expands portraits to a wider canvas with white gutters without cropping the subject.
- **Flexible output:** Returns temporary URLs or base64 JSON data for each image.
- **Local config:** Reads the API key and custom styles from a TOML file in the user's config directory.

## Good for

- Generate illustrations from text inside an MCP-enabled AI assistant
- Edit a product or scene photo with instructions like removing the background
- Produce consistent artwork by applying a named style to multiple prompts
- Prepare a corporate headshot with a clean white background from an existing portrait

## Tools

- `generate_image`: Generate an image from a text prompt
- `edit_image`: Edit an existing image using natural language instructions
- `headshot`: Corporate headshot from a source portrait
- `list_styles`: List available image styles for use with generate_image

## FAQ

### Which tools does the server expose?

It exposes generate_image, edit_image, headshot and list_styles.

### Does edit_image support a style?

No. The README says the style parameter is intentionally left off edit_image because edit prompts are instructions rather than descriptions.

### How many images can be edited at once?

Up to five source images can be referenced in one edit request using the grok-imagine-image-2.0 model.

### What do I need to run it?

Rust to build it, and an xAI API key placed in a config file.

### Is Grok Image free?

Yes. Grok Image is open source, so you can use and self-host it for free.

### What are the best alternatives to Grok Image?

The closest alternatives to Grok Image are Grok Chat, Muse AI Image MCP, AI Image Editor MCP, AI Photo Editor MCP and Best AI Image Prompt MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.

## Alternatives

- [Grok Chat](https://ai-powered.com/mcp/grok-chat): Grok Chat is an open-source MCP server for ai models and llm tooling.
- [Muse AI Image MCP](https://ai-powered.com/mcp/muse-ai-image-mcp): Muse AI Image MCP is a paid MCP server for design and media.
- [AI Image Editor MCP](https://ai-powered.com/mcp/ai-image-editor-mcp): AI Image Editor MCP is a freemium MCP server for design and media.
- [AI Photo Editor MCP](https://ai-powered.com/mcp/ai-photo-editor-mcp): AI Photo Editor MCP is an open-source MCP server for design and media.
- [Best AI Image Prompt MCP](https://ai-powered.com/mcp/best-ai-image-prompt-mcp): Best AI Image Prompt MCP is a freemium MCP server for ai models and llm tooling.
- [Gpt Chat](https://ai-powered.com/mcp/gpt-chat): Gpt Chat is an open-source MCP server for ai models and llm tooling.
- [Meigen AI MCP](https://ai-powered.com/mcp/meigen-ai-mcp): Meigen AI MCP is an open-source MCP server for design and media.
- [Z-Image MCP](https://ai-powered.com/mcp/z-image-mcp): Z-Image MCP is a freemium MCP server for design and media.

---
Source: https://ai-powered.com/mcp/grok-image
