Skip to content
Cursor

ask grok for Cursor

io.github.lykhoyda/ask-grok

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

client:Cursor transport:stdio runtime:npm

Install ask grok in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "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>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

ask grok in other clients