xai-grok

Access xAI Grok APIs via MCP server for image, chat, vision, search, and video.

1|3|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/joemccann/xai-mcp-server --skill xai-grok-joemccann
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xai-grok
Source: https://github.com/joemccann/xai-mcp-server/tree/main/skill
Command: npx skills add https://github.com/joemccann/xai-mcp-server --skill xai-grok-joemccann

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides unified access to xAI's Grok APIs (image generation, chat, vision, live search, and video) via the MCP server, enabling seamless AI-powered workflows without separate API management.

Core Features & Use Cases

  • Image Generation: create images with Grok Imagine from natural language prompts.
  • Chat: converse with Grok models (grok-3, grok-4, grok-3-mini) for explanations, brainstorming, and guidance.
  • Image Analysis: describe and analyze visual content using Grok Vision.
  • Live Search: perform web, news, and X/Twitter searches in real time.
  • Video Generation: generate short videos from text prompts.

Quick Start

Ask Grok to generate an image, chat with Grok, or analyze a photo and the MCP server will route to the appropriate tool.

Frequently Asked Questions about xai-grok

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate xAI Grok image generation and chat into my Claude Code sessions?

You can integrate xAI Grok APIs by using this MCP server skill, which routes natural language prompts to specific Grok models for image generation, chat, and analysis directly within Claude Code. It exposes five dedicated tools to handle these tasks.

Can I use Grok Vision to analyze images and perform live web searches simultaneously?

Yes, Grok Vision analyzes visual content while the live search tool performs real-time web, news, and X/Twitter searches. The MCP server maps these to distinct triggers, allowing you to execute both image analysis and live search within the same workflow.

What Grok models are available for chat completions and text-based brainstorming?

The chat tool supports conversational interactions using grok-3, grok-4, and grok-3-mini models. You can use these models for explanations, brainstorming, and guidance by simply asking Grok to chat within your Claude Code session.

How do I generate short videos from text prompts using the Grok API?

You can generate short videos from text prompts by invoking the generate_video tool exposed by this MCP server. The server automatically routes your natural language video generation requests to the appropriate Grok video generation API.

Does this skill require separate API key management for each Grok tool?

No, this skill provides unified access to xAI's Grok APIs via the MCP server, eliminating the need for separate API management. It seamlessly handles routing for image generation, chat, vision, live search, and video generation.

What is the best way to create images with Grok Imagine from natural language descriptions?

To create images with Grok Imagine, simply ask Grok to generate an image using your natural language prompt. The MCP server automatically routes the request to the generate_image tool, which handles the Grok-powered media creation without separate API calls.