Skip to main content

MCP Opa Authz

io.github.kanywst/mcp-opa-authz

v0.7.0Updated Nov 17, 2026stdio · Docker

Authorization answers from real policy code: evaluate Rego locally, or ask an AuthZEN 1.0 PDP.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add mcp-opa-authz -- docker run -i --rm ghcr.io/kanywst/mcp-opa-authz:0.7.0

Configuration

5 settings.

  • AUTHZEN_PDP_TOKEN
    Env var· optional· secret
    Authorization header value for the PDP. A value with no scheme is sent as "Bearer <token>".
  • AUTHZEN_PDP_URL
    Env var· optional
    Default AuthZEN Access Evaluation endpoint, e.g. https://pdp.example.com/access/v1/evaluation. Only evaluate_policy works without it.
  • AUTHZEN_PDP_TIMEOUT
    Env var· optional
    Per-request timeout for PDP calls, as a Go duration. Default 10s.
  • MCP_OPA_EVAL_TIMEOUT
    Env var· optional
    Wall-clock limit on a single Rego evaluation, as a Go duration. Default 5s.
  • MCP_OPA_ALLOW_NETWORK_BUILTINS
    Env var· optional
    Re-enable http.send, net.lookup_ip_addr and opa.runtime inside evaluated policies. Off by default: policy source evaluated here comes from a model and runs inside the server process.

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