Skip to main content

OPA MCP

io.github.OrygnsCode/opa-mcp

v0.10.0Updated Nov 17, 2026stdio · npmstdio · Docker

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

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add opa-mcp -e OPA_URL=http://localhost:8181 -e OPA_BINARY=opa -e REGAL_BINARY=regal -e CONFTEST_BINARY=conftest -- npx -y @orygn/[email protected]

Configuration

7 settings.

  • OPA_TOKEN
    Env var· optional· secret
    Bearer token for OPA running with --authentication=token.
  • GITHUB_TOKEN
    Env var· optional· secret
    GitHub personal access token with the "gist" scope. Required only for rego_playground_share.
  • OPA_URL
    Env var· optional
    Base URL of a running OPA server. Required only for opa_* runtime tools, not for rego_* language tools.Default: http://localhost:8181
  • OPA_BINARY
    Env var· optional
    Path to the opa binary. Defaults to 'opa' on PATH.Default: opa
  • REGAL_BINARY
    Env var· optional
    Path to the regal binary (optional; used by rego_lint, rego_security_audit and rego_fix). Defaults to 'regal' on PATH.Default: regal
  • CONFTEST_BINARY
    Env var· optional
    Path to the conftest binary (optional, used by conftest_* tools). Defaults to 'conftest' on PATH.Default: conftest
Show 1 more
  • OPA_MCP_ALLOWED_PATHS
    Env var· optional
    Comma-separated list of root directories tools may read/write. When unset, file-based tools refuse to access the disk.

Listed in the official MCP Registry since Nov 17, 2026. Mirrored daily; last checked Nov 26, 2026.