← Back to Grok Imagine
Install Grok Imagine
Pick your client, copy the command, done.
Manual setup required. The maintainer's config contains paths only you know — edit the placeholders below before adding it to Claude Code.
1
Prepare the server locally
Run this once before adding it to Claude Code.
bun install2
Register it in Claude Code
claude mcp add grok-imagine -- bun run /path/to/grok-imagine-mcp/src/index.tsReplace any placeholder paths in the command with the real path on your machine.
Environment Variables
Set these before running Grok Imagine.
VariableDescriptionRequired
DEVSet to 'true' to run the browser in visible (non-headless) mode for debugging.NoAvailable Tools (2)
Once configured, Grok Imagine gives your AI agent access to:
authAuthenticate with Grok by providing cookies from your browser session.curl_commandgenerate_imagesGenerate images using Grok Imagine.promptquantitysaveFolderFullPathaspectRatioTry It Out
After setup, try these prompts with your AI agent:
→Generate a 16:9 image of a futuristic city skyline at sunset and save it to /Users/me/images.
→Create 3 images of a cute robot reading a book in a library.
→Generate a square image of a mountain landscape with a lake in the foreground.
→Authenticate the Grok session using the provided cURL command.
Keep this setup from going cold
Save the docs, env vars, and workflow around Grok Imagine in Conare so Claude Code, Codex, and Cursor remember it next time.