ask grok for Claude Desktop
io.github.lykhoyda/ask-grok
Consult Grok through xAI's metered API with exact model selection and no fallback
client:Claude Desktop
transport:stdio
runtime:npm
Install ask grok in Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"ask-grok": {
"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>"
}
}
}
}
Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs