MCP directory
OM

OPA MCP

by github.com/OrygnsCode · v0.10.0 · updated Nov 17, 2026

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

npmDocker

Run it locally

Install the package and point your AI client at it.

npm

npx -y @orygn/[email protected]

Environment variables

  • OPA_URL

    Base URL of a running OPA server. Required only for opa_* runtime tools, not for rego_* language tools.

  • OPA_TOKENsecret

    Bearer token for OPA running with --authentication=token.

  • OPA_BINARY

    Path to the opa binary. Defaults to 'opa' on PATH.

  • REGAL_BINARY

    Path to the regal binary (optional; used by rego_lint, rego_security_audit and rego_fix). Defaults to 'regal' on PATH.

  • CONFTEST_BINARY

    Path to the conftest binary (optional, used by conftest_* tools). Defaults to 'conftest' on PATH.

  • OPA_MCP_ALLOWED_PATHS

    Comma-separated list of root directories tools may read/write. When unset, file-based tools refuse to access the disk.

  • GITHUB_TOKENsecret

    GitHub personal access token with the "gist" scope. Required only for rego_playground_share.

Docker

docker run -i --rm docker.io/orygn/opa-mcp:0.10.0

Environment variables

  • OPA_URL

    Base URL of a running OPA server.

  • OPA_TOKENsecret

    Bearer token for OPA authentication.

  • GITHUB_TOKENsecret

    GitHub personal access token with the "gist" scope. Required only for rego_playground_share.

More from github.com/OrygnsCode

More MCP servers