Skip to content
Grok

cli2mcp for Grok

io.github.ronieneubauer/cli2mcp

Wrap any CLI as a Model Context Protocol server - schema auto-inferred from --help.

client:Grok transport:stdio runtime:npm

Install cli2mcp in Grok

.mcp.json (in your project root)

{
  "mcpServers": {
    "cli2mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "cli2mcp"
      ]
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

cli2mcp in other clients