Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
XAI_API_KEYYesxAI API key
GROK_VIDEO_MODELNoModel (grok-imagine-video-1.5 = 1080p)grok-imagine-video
GROK_VIDEO_OUTPUT_DIRNoWhere clips are saved~/.grok-video-mcp/output
GROK_VIDEO_TIMEOUT_MSNoMax wait for a generation900000
GROK_VIDEO_POLL_MAX_MSNoMax poll interval (×1.5 backoff)30000
GROK_VIDEO_POLL_BASE_MSNoInitial poll interval5000

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_videoA

Submit a Grok video generation from a text prompt. Returns a requestId to poll with get_generation and download with get_video. Generation takes 1-5 minutes. ~$0.005/sec.

get_generationA

Poll the status of a Grok video generation by requestId. Returns PENDING, COMPLETED, or FAILED with progress when available.

get_videoA

Download a completed Grok video generation to disk. Returns the file path. Requires the generation to be COMPLETED.

generate_and_waitA

Submit a Grok video generation, poll until complete (up to timeoutSeconds), and return the downloaded file path. The one-call convenience for agents.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/pongsakornp/grok-video-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server