Grok-MCP
If you are the rightful owner of Grok-MCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A server that connects to the xAI/Grok image generation API.
The Grok AI Image Generation MCP Server is designed to interface with the xAI/Grok image generation API, providing robust image creation capabilities. It features error handling with lazy API key initialization, allowing the server to start even if the API key is not initially set. The server supports generating up to 10 images at a time and offers different response formats, including URL and base64 JSON. Additionally, the server can be containerized using Docker, with a Dockerfile that includes a dummy API key, which can be overridden at runtime. This setup ensures efficient builds through proper layer caching.
Features
- Connects to xAI/Grok image generation API.
- Supports generating up to 10 images simultaneously.
- Offers response formats in URL or base64 JSON.
- Includes Docker support with efficient layer caching.
- Handles API key management gracefully.
Tools
generate_image
Generate images using the Grok-2-image model.
set_api_key
Set the xAI API key at runtime if not provided via environment variable.