grok2-image-mcp-server

Grok2 Image MCP Server

Grok image generation and editing are available to MCP clients through text-driven tools, with controls for output size, proportions, and batch count. Users can edit images from URLs, encoded data, or local files; the old package is deprecated in favor of grok-image-mcp.

Server facts

grok2-image-mcp-server

Project

Author
fl0w1nd
License
Not specified

Tech

Runtime / language
node
Transports
stdio
Remote available
No
Authentication
Not specified

Activity

GitHub stars
29
Last commit
Data as of

Overview

Text prompts drive both image creation and revision through xAI’s Grok image model. The generate_image tool accepts a description and lets users choose an aspect ratio, 1k or 2k resolution, and an output count from 1–10. For revisions, edit_image combines written instructions with 1–3 input images supplied through URLs, base64 data URIs, or paths on the local filesystem. Local inputs are read and encoded by the server. Editing can retain the first source image’s proportions or use an explicit aspect ratio instead. Both tools return image links formatted as Markdown; generated-image links are temporary and should be saved or processed promptly.

The project serves MCP users who want these image workflows within their clients. It runs on Node over stdio and requires an xAI API key. Optional configuration supports an alternate API endpoint, an HTTP/HTTPS request proxy, and a replacement domain for returned image links when access is restricted. The README also describes a Cloudflare Worker reverse-proxy approach. The former grok2-image-mcp-server package is deprecated, with grok-image-mcp identified as its replacement.

grok2-image-mcp-server setup notes

  • grok2-image-mcp-server records stdio only; confirm a network transport upstream before planning remote access.
  • grok2-image-mcp-server has no recorded license; confirm reuse terms in its repository.

Related MCP servers