GrokMCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GrokMCPGenerate a 15-second video of a golden retriever running on a beach"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GrokMCP
A Model Context Protocol (MCP) server for Grok (xAI) — chat/reasoning/vision and Grok Imagine video generation, powered by the AceDataCloud API.
Chat with Grok models, or generate short AI videos from a text prompt or a still image — directly from any MCP-compatible client (Claude Desktop, Claude Code, Cursor, etc.).
Features
Chat / Reasoning / Vision — Talk to Grok 4 / Grok 3 family models, including vision (
grok-2-vision) and tool callingText to Video — Generate a video clip from a text description
Image to Video — Animate a reference image into a video
Async task tracking — Submit a job, poll for the result, single or batch
stdio & HTTP transports — Local stdio for desktop clients, HTTP for remote hosting
Related MCP server: Grok MCP
Tools
Tool | Description |
| Chat completion (reasoning / vision / tool calling) with Grok chat models. |
| Generate a video from a text prompt (model |
| Generate a video from an input image (+ optional motion prompt). |
| Query the status/result of a single generation task. |
| Query the status/result of multiple tasks at once. |
| List available models and their capabilities. |
| List all tools and example workflows. |
| Tips for writing effective video prompts. |
Models
Chat (grok_chat_completions)
Model | Notes |
| Flagship reasoning model |
| Default — fast, capable |
| Fast, no reasoning trace |
| Previous-gen flagship |
| Smaller/cheaper; supports |
| Vision-capable (image understanding) |
Video
Model | Text→Video | Image→Video | Notes |
| ✅ | ✅ | Default. Lower price. Up to 30s, duration-banded billing. |
| ❌ | ✅ | Image-to-video only (requires |
Parameters
Parameter | Applies to | Values |
| both | Text description (required for text-to-video) |
| image-to-video | Input image URL (required for |
| image-to-video | Optional list of style/content reference images |
| both |
|
| both |
|
| both |
|
| both | Optional async webhook |
Installation
Via uvx (recommended)
uvx mcp-grokVia pip
pip install mcp-grok
mcp-grokConfiguration
Set your AceDataCloud API token (get one at https://platform.acedata.cloud):
export ACEDATACLOUD_API_TOKEN=your_api_token_hereClaude Desktop / Claude Code
Add to your MCP config (claude_desktop_config.json or .mcp.json):
{
"mcpServers": {
"grok": {
"command": "uvx",
"args": ["mcp-grok"],
"env": {
"ACEDATACLOUD_API_TOKEN": "your_api_token_here"
}
}
}
}Remote (HTTP)
A hosted Streamable HTTP endpoint is available at:
https://grok.mcp.acedata.cloud/mcpEnvironment Variables
Variable | Description | Default |
| API token (required) | — |
| API base URL |
|
| Default model |
|
| Request timeout (seconds) |
|
| MCP server name |
|
| Transport mode ( |
|
| Logging level |
|
Usage Notes
Generation is asynchronous: the generation tools return a
task_idquickly. Poll withgrok_get_task(task_id)until the state issucceededand thevideo_urlis available.Generation typically takes ~30 seconds to a few minutes.
Keep
resolutionat480panddurationshort for faster, cheaper iterations.
Development
pip install -e ".[dev,test]"
pytest --cov=core --cov=tools
ruff check .License
MIT — see LICENSE.
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AceDataCloud/GrokMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server