Integrate xAI's Grok models into Claude Code for multi-model collaboration
Collaboratively debug an issue using both Claude and Grok's perspectives.
Collaboratively debug an issue using both Claude and Grok's perspectives.
Deploy the Grok MCP plugin from the development directory to the installed plugin cache.
Get multi-model perspective on architectural decisions, technology choices, or design trade-offs.
Get multi-model perspective on architectural decisions, technology choices, or design trade-offs.
Admin access level
Server config contains admin-level keywords
Requires secrets
Needs API keys or credentials to function
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Claude Code plugin that integrates xAI's Grok models for multi-model collaboration.
/query, /review, /debug, /design for quick Grok queries# Add the plugin marketplace
/plugin marketplace add mortenbrudvik/ClaudeGrokMcp
# Install the plugin
/plugin install grok-mcp@grok-mcp-dev
# Restart Claude Code
Add to your environment or Claude Code settings:
macOS/Linux (bash/zsh):
export XAI_API_KEY=xai-your-key-here
Windows PowerShell:
$env:XAI_API_KEY = "xai-your-key-here"
Windows Command Prompt:
set XAI_API_KEY=xai-your-key-here
Or configure in Claude Code (works on all platforms):
/config set PLUGIN_ENV_XAI_API_KEY=xai-your-key-here
Just ask Claude to use Grok:
"Ask Grok what the best practices are for error handling in TypeScript"
"Have Grok analyze this function for bugs"
"What does Grok think about this architecture?"
# Simple query
/grok What is the time complexity of merge sort?
# Specify model
/grok --model fast Explain what a mutex is
# Code analysis
/grok --model code Review this function: function add(a,b) { return a-b }
# Extended reasoning
/grok --model reasoning Think through microservices vs monolith trade-offs
| Alias | Model | Best For | Pricing (per 1M tokens) |
|---|---|---|---|
auto | grok-4 | General queries | $3.00 / $15.00 |
fast | grok-4-fast | Quick responses | $0.20 / $0.50 |
smartest | grok-4 | Complex analysis | $3.00 / $15.00 |
code | grok-code-fast-1 | Programming tasks | $0.20 / $1.50 |
reasoning | grok-4-1-fast-reasoning | Multi-step thinking (2M context) | $0.20 / $0.50 |
cheap | grok-4-fast | Budget-conscious | $0.20 / $0.50 |
vision | grok-4 | Image/vision analysis | $3.00 / $15.00 |
Query Grok with a question or prompt. Supports vision/image analysis.
{
query: string, // Required: The question to ask
model?: string, // Model alias or ID (default: "auto")
context?: string, // System context to guide response
max_tokens?: number, // Max response tokens (default: 4096)
temperature?: number, // Sampling temperature 0-2 (default: 0.7)
image_url?: string, // Image URL or base64 data URI for vision
image_detail?: string // Detail level: "auto", "low", "high"
}
Analyze code for bugs, performance issues, security vulnerabilities, and style problems.
{
code: string, // Required: The code to analyze
language?: string, // Programming language (auto-detected)
analysis_type?: string, // "performance", "bugs", "security", "style", "all"
context?: string, // Additional context about the code
model?: string // Model to use (default: grok-code-fast-1)
}
Perform extended reasoning and deep thinking on complex problems.
{
query: string, // Required: The problem to reason through
effort?: string, // "low", "medium", "high" (default: "medium")
show_thinking?: boolean, // Include reasoning trace (default: true)
context?: string, // Additional context
model?: string // Model to use (default: grok-4-1-fast-reasoning)
}
Estimate the cost of a Grok query before execution.
{
query: string, // Required: The query to estimate
model?: string, // Model to use (default: auto)
context?: string, // Additional context
max_tokens?: number // Expected output tokens
}
Execute Python code server-side for calculations and testing.
{
code: string, // Required: Python code to execute
description?: string, // What the code should accomplish
include_output?: boolean,// Include stdout/stderr (default: true)
max_turns?: number, // Max iterations 1-10 (default: 3)
model?: string // Model to use (default: grok-4-1-fast)
}
Search X/Twitter and web using Grok agentic search.
npx claudepluginhub mortenbrudvik/claudegrokmcpControl Enify workspaces and boards from Claude
Google Gemini AI model integration via MCP
Your ChatGPT Plus/Pro account (chat, deep research, image gen, code, agent mode) as 25 MCP tools — reuses your codex login. Requires the gpt2agent CLI on PATH (pipx install gpt2agent).
AI-to-AI collaboration — review code, brainstorm ideas, and debate plans across Codex, Antigravity, Ollama, and Gemini
Run any model with an Anthropic- or OpenAI-compatible API (e.g. DeepSeek, GLM, Kimi, Qwen, MiniMax) — even your Codex subscription — as real Claude Code workflows, agent-team teammates, or one-shot subagents, driven exactly like native ones. Your main session's own auth is untouched (OAuth subscription or API key, either works); API-key providers bill the provider key via apiKeyHelper, while a Codex subscription bills through a local OAuth daemon — each worker receives its credential on demand, never through its env or argv. Requires the `cc-fleet` binary on PATH, installed separately.
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Unified capability management center for Skills, Agents, and Commands.