Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

ask-grok

local MCP server

Installation

Terminal

claude mcp add ask-grok -e XAI_API_KEY=... -e ASK_GROK_HARNESS=... -e ASK_GROK_MODEL=... -e ASK_GROK_REASONING_EFFORT=... -e ASK_GROK_MAX_OUTPUT_TOKENS=... -e ASK_GROK_TIMEOUT_MS=... -e GMCPT_LOG_LEVEL=... -- npx -y @ask-llm/grok-mcp

Run in your project folder. Add --scope user to use it everywhere.

Claude Desktop, Cursor & other clients

Add to claude_desktop_config.json or .cursor/mcp.json.

{
  "mcpServers": {
    "ask-grok": {
      "command": "npx",
      "args": [
        "-y",
        "@ask-llm/grok-mcp"
      ],
      "env": {
        "XAI_API_KEY": "...",
        "ASK_GROK_HARNESS": "...",
        "ASK_GROK_MODEL": "...",
        "ASK_GROK_REASONING_EFFORT": "...",
        "ASK_GROK_MAX_OUTPUT_TOKENS": "...",
        "ASK_GROK_TIMEOUT_MS": "...",
        "GMCPT_LOG_LEVEL": "..."
      }
    }
  }
}

Fill in the environment variables with your own credentials.

Summary

Consult Grok through xAI's metered API with exact model selection and no fallback

Questions

ask-grok is a local MCP server distributed as the npm package @ask-llm/grok-mcp.

Run: claude mcp add ask-grok -e XAI_API_KEY=... -e ASK_GROK_HARNESS=... -e ASK_GROK_MODEL=... -e ASK_GROK_REASONING_EFFORT=... -e ASK_GROK_MAX_OUTPUT_TOKENS=... -e ASK_GROK_TIMEOUT_MS=... -e GMCPT_LOG_LEVEL=... -- npx -y @ask-llm/grok-mcp

Run: codex mcp add ask-grok --env XAI_API_KEY=... --env ASK_GROK_HARNESS=... --env ASK_GROK_MODEL=... --env ASK_GROK_REASONING_EFFORT=... --env ASK_GROK_MAX_OUTPUT_TOKENS=... --env ASK_GROK_TIMEOUT_MS=... --env GMCPT_LOG_LEVEL=... -- npx -y @ask-llm/grok-mcp

Similar MCP servers

NameStars
  1. ha-mcpio.github.homeassistant-ai/ha-mcp4,868
  2. Opik MCP Serverio.github.comet-ml/opik-mcp221
  3. kkjdaniel-bgg-mcpai.smithery/kkjdaniel-bgg-mcp53
  4. Bhived MCPio.github.ArtKeyAi/bhived-mcp35
  5. Marzban MCPio.github.Ilmar7786/marzban-mcp26
  6. Delimit — Keep the state. Change the model.io.github.delimit-ai/delimit-mcp-server24
  7. GitHubio.github.github/github-mcp-server33K
  8. OpenWork MCP Gatewaycom.openworklabs/openwork24K
Buy me a coffee