Skip to main content

xAI Grok

Search the web, search X, generate images, generate video. All from one tool. Sensor: search_web, search_x … turns questions into knowledge. Actuator: generate_image, edit_image, generate_video … turns prompts into media. Zero dependencies. Four interfaces: CLI, Module, Connection Point, Skill.

Install

Open your AI and say:
Your AI will read the repo, explain the tool, and walk you through integration interactively.

API Key

Get your xAI API key from https://console.x.ai/ The tool resolves your key automatically:
  1. 1Password (preferred) … op://Agent Secrets/X API/api key. No env vars needed.
  2. Environment variableexport XAI_API_KEY="your-key" as a fallback.

Usage

CLI

As a Module

Connection Point

Add to your .mcp.json:
Exposes 6 tools: grok_search_web, grok_search_x, grok_imagine, grok_edit_image, grok_generate_video, grok_poll_video.

Functions

Actuator (Generate)

Attribution

Search functions ported from castanley/grok v1.0.3 by Christopher Stanley on ClawHub.

License

MIT