Skip to main content
Glama

grok-mcp-bridge

Zero-dependency Model Context Protocol (MCP) stdio server (JSON-RPC 2.0) that brings xAI Grok (grok-4-latest) directly into terminal and IDE coding agents for independent second-opinion diff audits and systems architecture verification.

Features

  • grok_review_diff: Feed staged or branch git diff patches to Grok for an adversarial security, race-condition, and schema-migration audit before merging.

  • grok_reason_architecture: Consult Grok on distributed state machines, database indexing, and multi-agent failure modes from any MCP-compatible editor or CLI.

  • Zero Dependencies: Pure Node.js 20+ ESM over stdin/stdout.

Related MCP server: UniGrok

MCP Configuration

{
  "mcpServers": {
    "grok": {
      "command": "node",
      "args": ["/path/to/grok-mcp-bridge/src/cli.mjs"],
      "env": {
        "XAI_API_KEY": "xai-..."
      }
    }
  }
}

Run Tests

node --test tests/*.test.mjs

License

MIT © James Weyme (@kinchuan_)

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      A local Grok MCP server and gateway that every coding agent on your machine shares, self-routing across xAI's API and Grok CLI subscription with per-call cost tracking while keeping your API key server-side.
      47
      24
      MIT
    • F
      license
      B
      quality
      B
      maintenance
      Local stdio MCP bridge that delegates coding work to the Grok CLI agent via isolated git worktrees and typed receipts. Provides MCP tools for interacting with the Grok CLI across stdio, WebSocket, and legacy transports.
      24
      2
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP-compatible agents like ChatGPT and Claude to securely access a Grok Bot workstation's folder-scoped files, shell, and Git tools over HTTPS+OAuth or local stdio, and to orchestrate specialized Grok Bot agents via a message bridge.
      2
      MIT