Skip to content
Claude Desktop

OPA MCP for Claude Desktop

io.github.orygnscode/opa-mcp

Author, validate, debug, and explain OPA Rego policies through any MCP-compatible client.

client:Claude Desktop transport:stdio runtime:npm

Install OPA MCP in Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json

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

{
  "mcpServers": {
    "opa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/opa-mcp"
      ],
      "env": {
        "OPA_URL": "<OPA_URL>",
        "OPA_TOKEN": "<OPA_TOKEN>",
        "OPA_BINARY": "<OPA_BINARY>",
        "REGAL_BINARY": "<REGAL_BINARY>",
        "CONFTEST_BINARY": "<CONFTEST_BINARY>",
        "OPA_MCP_ALLOWED_PATHS": "<OPA_MCP_ALLOWED_PATHS>",
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}

Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs

OPA MCP in other clients