Back to Browse

Grok MCP Server

Developer ToolsUse Caution4.2MCP RegistryLocalRemote
Free

Server data from the Official MCP Registry

MCP server for Grok Imagine AI video generation

About

MCP server for Grok Imagine AI video generation

Remote endpoints: streamable-http: https://grok.mcp.acedata.cloud/mcp

Security Report

4.2
Use Caution4.2High Risk

This is a well-structured MCP server for Grok video generation with proper authentication via OAuth2 and API token handling. The codebase demonstrates good security practices around credential management and error handling. Minor code quality observations include broad exception handling in some areas and limited input validation on some parameters, but these do not introduce security vulnerabilities. Permissions are appropriate for the server's purpose of calling external APIs and managing async video generation tasks. Supply chain analysis found 7 known vulnerabilities in dependencies (0 critical, 5 high severity). Package verification found 1 issue (1 critical, 0 high severity).

7 files analyzed · 12 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

Unverified package source

We couldn't verify that the installable package matches the reviewed source code. Proceed with caution.

What You'll Need

Set these up before or after installing:

API token from Ace Data Cloud (https://platform.acedata.cloud)Required

Environment variable: ACEDATACLOUD_API_TOKEN

How to Install & Connect

Available as Local & Remote

This plugin can run on your machine or connect to a hosted endpoint. during install.

Documentation

View on GitHub

From the project's GitHub README.

GrokMCP

PyPI version Python License: MIT

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.5 / Grok 4 / Grok 3 models, with image input and tool calling
  • Text 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

Tools

ToolDescription
grok_chat_completionsChat completion (reasoning / vision / tool calling) with Grok chat models.
grok_text_to_videoGenerate a video from a text prompt (any model except grok-imagine-video-1.5:official).
grok_image_to_videoGenerate a video from an input image (+ optional motion prompt).
grok_get_taskQuery the status/result of a single generation task.
grok_get_tasks_batchQuery the status/result of multiple tasks at once.
grok_list_modelsList available models and their capabilities.
grok_list_actionsList all tools and example workflows.
grok_get_prompt_guideTips for writing effective video prompts.

Models

Chat (grok_chat_completions)

ModelNotes
grok-4.5Default — latest flagship reasoning model
grok-4Previous flagship reasoning model
grok-3Earlier-generation model

Video

ModelText→VideoImage→VideoNotes
grok-imagine-video-1.5-fast:reverseDefault. Fastest & cheapest. 6-30s, duration-banded billing.
grok-imagine-video:reverseStandard. 1-15s, billed per output second.
grok-imagine-video:officialOfficial endpoint, higher fidelity. 1-15s, per second.
grok-imagine-video-1.5:officialOfficial image-to-video only (requires image_url). Up to 1080p, per second.

Parameters

ParameterApplies toValues
promptbothText description (required for text-to-video)
image_urlimage-to-videoInput image URL (required for -1.5-preview)
reference_image_urlsimage-to-videoOptional list of style/content reference images
aspect_ratioboth1:1, 16:9 (default), 9:16, 4:3, 3:4, 3:2, 2:3
resolutionboth480p (default), 720p, 1080p
durationbothgrok-imagine-video-1.5-fast:reverse: 630s; other models: 115s (default 6)
callback_urlbothOptional async webhook

Installation

Via uvx (recommended)

uvx mcp-grok

Via pip

pip install mcp-grok
mcp-grok

Configuration

Set your AceDataCloud API token (get one at https://platform.acedata.cloud):

export ACEDATACLOUD_API_TOKEN=your_api_token_here

Claude 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/mcp

Environment Variables

VariableDescriptionDefault
ACEDATACLOUD_API_TOKENAPI token (required)
ACEDATACLOUD_API_BASE_URLAPI base URLhttps://api.acedata.cloud
GROK_DEFAULT_MODELDefault modelgrok-imagine-video-1.5-fast:reverse
GROK_REQUEST_TIMEOUTRequest timeout (seconds)180
MCP_SERVER_NAMEMCP server namegrok
MCP_TRANSPORTTransport mode (stdio/http)stdio
LOG_LEVELLogging levelINFO

Usage Notes

  • Generation is asynchronous: the generation tools return a task_id quickly. Poll with grok_get_task(task_id) until the state is succeeded and the video_url is available.
  • Generation typically takes ~30 seconds to a few minutes.
  • Keep resolution at 480p and duration short for faster, cheaper iterations.

Development

pip install -e ".[dev,test]"
pytest --cov=core --cov=tools
ruff check .

Documentation

Documentation

License

MIT — see LICENSE.

Reviews

No reviews yet

Be the first to review this server!