grok2api-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GROK_BASE_URL | Yes | Grok API base URL (e.g., https://api.x.ai). | |
| GROK_API_TOKEN | Yes | Your Grok API authentication token. | |
| GROK_IMAGE_MODEL | No | Model for image generation. | grok-imagine-1.0 |
| GROK_VIDEO_MODEL | No | Model for video generation. | grok-imagine-1.0-video |
| GROK_SEARCH_MODEL | No | Model for search tools. | grok-4.20-beta |
| GROK_IMAGE_TIMEOUT_MS | No | Timeout for the image_generation tool. Defaults to the global timeout. | |
| GROK_VIDEO_TIMEOUT_MS | No | Timeout for the video_generation tool. Defaults to the global timeout. | |
| GROK_REQUEST_TIMEOUT_MS | No | Global request timeout in milliseconds. | 120000 |
| GROK_X_SEARCH_TIMEOUT_MS | No | Timeout for the x_search tool. Defaults to the global timeout. | |
| GROK_GENERAL_SEARCH_TIMEOUT_MS | No | Timeout for the general_search tool. Defaults to the global timeout. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| x_searchC | Search and summarize X (Twitter)-oriented information using grok-4.20-beta. |
| general_searchC | Run general web-style search and summarization using grok-4.20-beta. |
| image_generationC | Generate images via /v1/images/generations using grok-imagine-1.0. |
| video_generationC | Generate videos via /v1/chat/completions using grok-imagine-1.0-video. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
The four tools cover distinct modalities: X search, general search, image generation, and video generation. The two search tools could be slightly confused when a query spans X and the broader web, but the descriptions make the intended source clear.
All tool names use consistent snake_case with a clear [scope/modality]_[action] pattern: x_search, general_search, image_generation, video_generation. The convention is predictable across the whole set.
Four tools is well-scoped for this API wrapper, with each tool representing a distinct capability. There is no obvious bloat or missing basic operation in the count itself.
The surface covers search plus image/video generation, but there are notable gaps: no general text/chat completion tool and no explicit status or retrieval operation for potentially asynchronous video generation. These gaps could force workarounds for some workflows.