Grok MCP
Routes chat, code reviews, consultations, and adversarial checks to xAI Grok through MCP.
Install Grok MCP
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"grok-mcp": {
"command": "npx",
"args": [
"-y",
"grok-cli-mcp"
],
"env": {
"XAI_API_KEY": "YOUR_VALUE_HERE",
"GROK_MCP_TIMEOUT": "YOUR_VALUE_HERE",
"GROK_MCP_PATH_SECRET": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
Automated check passed— started and listed 4 tools correctly (6d ago).
Overview
Use cases
- Review a Git diff before opening a pull request
- Challenge code for races, edge cases, and security issues
- Consult Grok on an implementation or architecture decision
- Gate CI changes with machine-readable review output
Key features
- Direct xAI API and Grok CLI backends
- Structured diff reviews with scored dimensions
- Stateless multi-turn consultations
- Severity-ranked adversarial code analysis
- Local stdio and remote Streamable HTTP modes
- JSON output for automated review gates
Tools4
What Grok MCP lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
What it can do
From the 4 tools this server returned when we ran it.
Observed 2026-10-21 in an isolated sandbox. A description of reach, not a security audit.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 3d ago via OSV.dev · grok-cli-mcp (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Grok MCP works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Grok MCP
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/grok-mcp)<a href="https://allmcps.com/mcp/grok-mcp"><img src="https://allmcps.com/api/badge/grok-mcp?style=directory" alt="Grok MCP on AllMCPs" /></a>