A

Ask Grok

MCP server · by Lykhoyda

Developer Tools npm v0.3.0

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

View source ↗ Generate config for multiple servers More servers

Install

registry version 0.3.0

npm
npx -y @ask-llm/grok-mcp

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "ask-grok": {
      "command": "npx",
      "args": [
        "-y",
        "@ask-llm/grok-mcp"
      ],
      "env": {
        "XAI_API_KEY": "<YOUR_XAI_API_KEY>"
      }
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • XAI_API_KEY required secret — xAI API key used only for requests to https://api.x.ai
  • ASK_GROK_HARNESS — Explicit harness: xai-api (default) or grok-cli; no automatic failover
  • ASK_GROK_MODEL — Exact selected-harness model override (API default grok-4.7; CLI default grok-4.7; no fallback)
  • ASK_GROK_REASONING_EFFORT — Reasoning effort: low, medium, high, or xhigh (default: high)
  • ASK_GROK_MAX_OUTPUT_TOKENS — xAI API output-token ceiling to bound accidental spend (default: 16384)
  • ASK_GROK_TIMEOUT_MS — Timeout for xAI API requests in milliseconds (default: 600000)
  • GMCPT_LOG_LEVEL — Log verbosity: debug, info, warn, error (default: warn)

GitHub

⭐ 18 stars · 最近更新于 29 天前 · MIT license

These star and push figures are for the shared repository — 6 listings on this site point at the same repository.

About this server

Ask LLM Second opinions for coding agents. Get a second opinion on your code or plan, inside your coding assistant, using the model subscriptions you already have. For individual developers and small teams who already use a coding assistant and pay for another model subscription: ask a different ven…

Summary from the project README — github.com/Lykhoyda/ask-llm

Distributed as npm, listed under Developer Tools. Review our MCP security guide before granting access to real data.

Frequently asked questions

What does the Ask Grok MCP server do?

Ask LLM Second opinions for coding agents. Get a second opinion on your code or plan, inside your coding assistant, using the model subscriptions you already have. For individual developers and small teams who already use a coding assistant and pay for another model subscription: ask a different ven

How do I install Ask Grok?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is Ask Grok free to use?

The MCP server itself is free to install. The source is public on https://github.com/Lykhoyda/ask-llm. Any third-party service it calls may require its own API key and account.

Which clients support Ask Grok?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/ask-grok.svg)](https://mcpnav.net/server/ask-grok/)

HTML

<a href="https://mcpnav.net/server/ask-grok/"><img src="https://mcpnav.net/badge/ask-grok.svg" alt="Listed on MCPNav" height="20"></a>