xAI MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| XAI_API_KEY | Yes | Your xAI API key from x.ai/api (starts with 'xai-'). |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_imageB | Generate images from text descriptions using xAI's Grok Imagine model. Returns image URLs or base64 data. |
| chatB | Chat with xAI's Grok models. Send messages and receive AI-generated responses. |
| analyze_imageC | Analyze images using xAI's vision-capable Grok models. Describe, extract text, or answer questions about images. |
| live_searchB | Perform real-time web search using xAI's Grok. Search web, news, or X/Twitter for current information. |
| generate_videoB | Generate videos from text descriptions using xAI. Can also animate images or edit existing videos. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
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/joemccann/xai-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server