grok-quorum-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@grok-quorum-mcpAsk Grok to review my migration plan for potential race conditions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
grok-quorum-mcp
An MCP server that lets Claude query Grok as a quorum peer — enabling two AI systems to debate architecture, review code, and reason together before presenting solutions to the user.
Why a Quorum?
Single-AI workflows have blind spots. When Claude can consult Grok as an equal peer, you get:
Stronger code review — Two AI perspectives catch more bugs than one
Better architecture — Claude proposes, Grok challenges (or vice versa), you decide
Live research — Grok searches the web and X/Twitter in real-time for current information
Cost control — Four modes from cheap quick answers to expensive deep multi-agent analysis
Privacy & Security
Runs 100% locally — no telemetry, no analytics, no data collection
Your API key never leaves your machine except in direct calls to
api.x.aiConversation history is in-memory only, cleared when the process exits
You supply your own xAI API key — we never see it
Installation
npm install -g grok-quorum-mcpAPI Key Setup
You need an xAI API key. Get one at console.x.ai.
Option 1: Environment variable (recommended)
export XAI_API_KEY="xai-your-key-here"Option 2: Key file
echo "xai-your-key-here" > ~/.xai_api_key
chmod 600 ~/.xai_api_keySecurity note: Always use
chmod 600on the key file. The server will warn you if permissions are too open.
Configuration
Claude Code
Add to your ~/.mcp.json:
{
"mcpServers": {
"grok-quorum": {
"command": "grok-quorum-mcp",
"env": {
"XAI_API_KEY": "xai-your-key-here"
}
}
}
}Claude Desktop
Add to your Claude Desktop MCP config:
{
"mcpServers": {
"grok-quorum": {
"command": "npx",
"args": ["-y", "grok-quorum-mcp"],
"env": {
"XAI_API_KEY": "xai-your-key-here"
}
}
}
}Modes
Mode | Model | Use Case | Input/Output per 1M | Timeout |
| grok-4-1-fast-reasoning | Quick answers, simple questions | $0.20 / $0.50 | 60s |
| grok-4.20-0309-reasoning | Precise code review with reasoning | $2.00 / $6.00 | 2min |
| grok-4.20-multi-agent-0309 | Multi-agent reasoning, architecture | $2.00 / $6.00 | 5min |
| grok-4.20-multi-agent-0309 | Maximum depth multi-agent analysis | $2.00 / $6.00 | 10min |
All models support 2M token context (2,000,000 tokens input) and 4M TPM rate limits.
Cost guidance: fast is 10x cheaper than the others. Use it for quick questions. code/deep/deep16 all use 4.20-class models at the same per-token rate — the difference is reasoning depth and multi-agent orchestration.
Tools
Tool | Description |
| Query Grok with mode selection, optional context, and live search |
| Clear conversation history (use when switching topics) |
| View conversation state and approximate token usage |
| Recover raw API response — cost protection if parsing fails |
Usage Examples
Quick question:
grok_query(message: "What's the best way to handle WebSocket reconnection?", mode: "fast")Code review with context:
grok_query(
message: "Review this for security issues and race conditions",
context: "<file contents here>",
mode: "code"
)Architecture debate:
grok_query(
message: "We're choosing between PostgreSQL and DynamoDB for our event store. Challenge my assumptions.",
mode: "deep",
new_conversation: true
)Live research:
grok_query(
message: "What are the latest MCP server best practices?",
mode: "fast",
search: "web"
)Advanced Configuration
Override models via environment variables:
Variable | Description | Default |
| xAI API key (required) | — |
| Model for fast mode |
|
| Model for code mode |
|
| Model for deep/deep16 modes |
|
| Custom system prompt | (built-in) |
Troubleshooting
Issue | Fix |
"No xAI API key found" | Set |
Empty responses | Run |
Timeouts on deep mode | Try |
Model access errors | Check your xAI plan supports the requested model |
Built by Xega
This project is built and maintained by Xega.ai — an AI company building intelligent systems that evolve with your essence.
We built this because we believe the best AI workflows involve multiple perspectives. Claude and Grok as equals, with the human as the final decision-maker.
Contributing
Issues and PRs welcome at github.com/flycory/grok-quorum-mcp.
License
MIT — see LICENSE.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/flycory/grok-quorum-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server