Grok Image MCP
About
MCP server for Grok image generation and editing
Details
- Author
- codechap
- Categories
- Design
Jump to
Setup
Install Grok Image MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/codechap/mcp-server-grok-image
Follow the installation instructions in the repository README, then restart your MCP client.
An MCP (Model Context Protocol) server for xAI's Grok image generation API. Built in Rust, exposes image generation and editing as MCP tools.
Communicates via stdio using JSON-RPC 2.0, like all MCP servers.
Generate an image from a text description.
When a style is set, the prompt is wrapped in the style's template. For example, withstyle: "watercolor"andprompt: "a cat on a roof", the API receives"a cat on a roof, as a watercolor painting". Avoid including style language in the prompt itself when using this parameter.
The response includes the resolved prompt so you can see exactly what was sent to the API.
Edit an existing image using natural language instructions.
Note: Thestyleparameter is intentionally not available onedit_image-- edit prompts are instructions (e.g. "remove the background"), not descriptions, so wrapping them in style templates would produce nonsense.
Returns all available image styles with their name, description, and prompt template. No parameters.
- Rust (edition 2024)
- An xAI API key fromconsole.x.ai
mkdir -p ~/.config/mcp-server-grok-image
Create~/.config/mcp-server-grok-image/config.toml:
Add custom styles to your config file. Custom styles with the same name as a built-in will override it.
api_key = "xai-..." [[styles]] name = "my-style" description = "My custom look" template = "{prompt}, in my custom style" [[styles]] name = "watercolor" description = "My watercolor variant" template = "{prompt}, as a loose expressive watercolor with ink outlines"
Templates must contain the{prompt}placeholder. Any custom style missing it will be skipped with a warning at startup.
This producestarget/release/mcp-server-grok-image.
cargo build # debug build cargo run # run in dev mode RUST_LOG=debug cargo run # run with debug logging
Add to your Claude Desktop config (~/.config/Claude/claude_desktop_config.json):
{ "mcpServers": { "grok-image": { "command": "/path/to/mcp-server-grok-image" } } }
src/ main.rs - everything: config, styles, API types, MCP server, tool definitions
A lightweight MCP (Model Context Protocol) server for Blender. It offers a natural language interface with Blender’s Python API, improving access to documentation, and allowing users to explore and understand complex setups.
The Lottie Creator MCP brings your AI assistant directly into your animation workflow — giving it full access to LottieFiles Creator so it can build and edit Lottie animations on your behalf through natural language.
AI Video, Image & Audio Generation with over 150 models
Rive MCP let AI handle repetitive tasks, like creating complex View Models, State Machines with hundreds of states/layers, Layouts, Shapes, and more.
Create, edit, and export SVGator animations (SVG, Lottie, GIF, video) from your AI assistant, and keep an editable project you can open in the editor anytime.
You're agent can Chain 60+ AI image and video models on one workflow canvas
Real interaction references and motion recipes for AI coding agents.
Search 1,145 real website designs by style, font, colour, section and measured design tokens.
Render, verify, describe, and safely edit Mermaid diagrams through MCP.
MCP bridge between an AI agent and a live Aseprite session, same machine or agent-in-a-VM
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
