Integrate xAI's Grok models into your workflow for multi-model collaboration. Get Grok's perspective on questions, code analysis, explanations, and creative tasks.
/plugin marketplace add mortenbrudvik/ClaudeGrokMcp/plugin install mortenbrudvik-grok-mcp@mortenbrudvik/ClaudeGrokMcpThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Integrate xAI's Grok models into your workflow for multi-model collaboration. Get Grok's perspective on questions, code analysis, explanations, and creative tasks.
Use this skill when users want to:
Activate this skill when you see phrases like:
Query Grok with a question or prompt.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The question or prompt to send to Grok |
model | string | No | Model alias or ID (default: "auto") |
context | string | No | System context to guide the response |
max_tokens | integer | No | Maximum response tokens (default: 4096) |
temperature | number | No | Sampling temperature 0-2 (default: 0.7) |
Model Aliases:
| Alias | Best For | Model ID |
|---|---|---|
auto | General queries | grok-4 |
fast | Quick responses, cost-effective | grok-4-fast |
smartest | Complex reasoning | grok-4 |
code | Code generation, agentic tasks | grok-code-fast-1 |
reasoning | Extended thinking, chain-of-thought | grok-4.1-fast |
cheap | Budget-conscious queries | grok-4-fast |
List available Grok models with capabilities and pricing.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
refresh | boolean | No | Force refresh from API (default: false) |
Choose the right model for the task:
Quick question or simple task?
└─ Use "fast" - cheapest, fastest response
Code analysis or generation?
└─ Use "code" - optimized for programming tasks
Complex reasoning or multi-step analysis?
└─ Use "reasoning" - extended thinking, 2M context
Vision or image understanding?
└─ Use "auto" (grok-4) - supports image input
Not sure?
└─ Use "auto" - intelligent default selection
User: "Ask Grok what the best practices are for error handling in TypeScript"
Action: Use grok_query with:
- query: "What are the best practices for error handling in TypeScript?"
- model: "auto"
User: "Have Grok review this function for potential bugs"
Action: Use grok_query with:
- query: "Review this function for potential bugs: [code]"
- model: "code"
- context: "You are a code reviewer focused on finding bugs and edge cases"
User: "Ask Grok to think through this architecture decision step by step"
Action: Use grok_query with:
- query: "Think through this architecture decision: [details]"
- model: "reasoning"
- temperature: 0.3 (lower for more focused reasoning)
User: "I want both your opinion and Grok's on this approach"
Action:
1. Provide your (Claude's) perspective first
2. Use grok_query to get Grok's perspective
3. Synthesize both viewpoints, noting agreements and differences
When presenting Grok's response alongside your own analysis:
**Claude's Analysis:**
[Your perspective]
**Grok's Analysis:**
[Grok's response]
**Synthesis:**
Both Claude and Grok agree that [common points]. However, Grok additionally suggests [unique insight], while Claude emphasizes [different aspect].
**Recommendation:** Based on both perspectives, [actionable guidance].
When Claude and Grok disagree:
Grok API calls have associated costs. The response includes cost estimates:
For cost-sensitive work, prefer the "fast" or "cheap" aliases.
The Grok MCP server requires:
XAI_API_KEY: Your xAI API key (required)GROK_CACHE_ENABLED: Enable response caching (default: true)GROK_COST_LIMIT_USD: Session cost limit (default: $10)context parameter helps guide Grok's response stylegrok_models to see current availability and pricing/grok command - Direct Grok queries from the command linegrok_models tool - Check available models and pricingThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.