MCP directory
MO

Mcp Opa Authz

by github.com/kanywst · v0.7.0 · updated Nov 17, 2026

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

Docker

Run it locally

Install the package and point your AI client at it.

Docker

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

Environment variables

  • AUTHZEN_PDP_URL

    Default AuthZEN Access Evaluation endpoint, e.g. https://pdp.example.com/access/v1/evaluation. Only evaluate_policy works without it.

  • AUTHZEN_PDP_TOKENsecret

    Authorization header value for the PDP. A value with no scheme is sent as "Bearer <token>".

  • AUTHZEN_PDP_TIMEOUT

    Per-request timeout for PDP calls, as a Go duration. Default 10s.

  • MCP_OPA_EVAL_TIMEOUT

    Wall-clock limit on a single Rego evaluation, as a Go duration. Default 5s.

  • MCP_OPA_ALLOW_NETWORK_BUILTINS

    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.

More MCP servers