Skip to content
Windsurf

OPA MCP for Windsurf

io.github.orygnscode/opa-mcp

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

client:Windsurf transport:stdio runtime:npm

Install OPA MCP in Windsurf

~/.codeium/windsurf/mcp_config.json · windows: %USERPROFILE%\.codeium\windsurf\mcp_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>"
      }
    }
  }
}

Global only — Windsurf has no per-project MCP config. Refresh Cascade after saving. Windsurf docs

OPA MCP in other clients