ask grok for Grok
io.github.lykhoyda/ask-grok
Consult Grok through xAI's metered API with exact model selection and no fallback
client:Grok
transport:stdio
runtime:npm
Install ask grok in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"ask-grok": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ask-llm/grok-mcp"
],
"env": {
"XAI_API_KEY": "<XAI_API_KEY>",
"ASK_GROK_HARNESS": "<ASK_GROK_HARNESS>",
"ASK_GROK_MODEL": "<ASK_GROK_MODEL>",
"ASK_GROK_REASONING_EFFORT": "<ASK_GROK_REASONING_EFFORT>",
"ASK_GROK_MAX_OUTPUT_TOKENS": "<ASK_GROK_MAX_OUTPUT_TOKENS>",
"ASK_GROK_TIMEOUT_MS": "<ASK_GROK_TIMEOUT_MS>",
"GMCPT_LOG_LEVEL": "<GMCPT_LOG_LEVEL>"
}
}
}
}
Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs