Authorization answers from real policy code: evaluate Rego locally, or ask an AuthZEN 1.0 PDP.
Connect Runs on your machine
claude mcp add mcp-opa-authz -e AUTHZEN_PDP_URL=<AUTHZEN_PDP_URL> -e AUTHZEN_PDP_TOKEN=<AUTHZEN_PDP_TOKEN> -e AUTHZEN_PDP_TIMEOUT=<AUTHZEN_PDP_TIMEOUT> -e MCP_OPA_EVAL_TIMEOUT=<MCP_OPA_EVAL_TIMEOUT> -e MCP_OPA_ALLOW_NETWORK_BUILTINS=<MCP_OPA_ALLOW_NETWORK_BUILTINS> -- docker run -i --rm ghcr.io/kanywst/mcp-opa-authz:0.6.2
{
"mcpServers": {
"mcp-opa-authz": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kanywst/mcp-opa-authz:0.6.2"
],
"env": {
"AUTHZEN_PDP_URL": "<AUTHZEN_PDP_URL>",
"AUTHZEN_PDP_TOKEN": "<AUTHZEN_PDP_TOKEN>",
"AUTHZEN_PDP_TIMEOUT": "<AUTHZEN_PDP_TIMEOUT>",
"MCP_OPA_EVAL_TIMEOUT": "<MCP_OPA_EVAL_TIMEOUT>",
"MCP_OPA_ALLOW_NETWORK_BUILTINS": "<MCP_OPA_ALLOW_NETWORK_BUILTINS>"
}
}
}
}
{
"mcpServers": {
"mcp-opa-authz": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kanywst/mcp-opa-authz:0.6.2"
],
"env": {
"AUTHZEN_PDP_URL": "<AUTHZEN_PDP_URL>",
"AUTHZEN_PDP_TOKEN": "<AUTHZEN_PDP_TOKEN>",
"AUTHZEN_PDP_TIMEOUT": "<AUTHZEN_PDP_TIMEOUT>",
"MCP_OPA_EVAL_TIMEOUT": "<MCP_OPA_EVAL_TIMEOUT>",
"MCP_OPA_ALLOW_NETWORK_BUILTINS": "<MCP_OPA_ALLOW_NETWORK_BUILTINS>"
}
}
}
}
{
"servers": {
"mcp-opa-authz": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kanywst/mcp-opa-authz:0.6.2"
],
"env": {
"AUTHZEN_PDP_URL": "<AUTHZEN_PDP_URL>",
"AUTHZEN_PDP_TOKEN": "<AUTHZEN_PDP_TOKEN>",
"AUTHZEN_PDP_TIMEOUT": "<AUTHZEN_PDP_TIMEOUT>",
"MCP_OPA_EVAL_TIMEOUT": "<MCP_OPA_EVAL_TIMEOUT>",
"MCP_OPA_ALLOW_NETWORK_BUILTINS": "<MCP_OPA_ALLOW_NETWORK_BUILTINS>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
AUTHZEN_PDP_URLOptional | Default AuthZEN Access Evaluation endpoint, e.g. https://pdp.example.com/access/v1/evaluation. Only evaluate_policy works without it. |
AUTHZEN_PDP_TOKENOptional, secret | Authorization header value for the PDP. A value with no scheme is sent as "Bearer <token>". |
AUTHZEN_PDP_TIMEOUTOptional | Per-request timeout for PDP calls, as a Go duration. Default 10s. |
MCP_OPA_EVAL_TIMEOUTOptional | Wall-clock limit on a single Rego evaluation, as a Go duration. Default 5s. |
MCP_OPA_ALLOW_NETWORK_BUILTINSOptional | 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. |
Details
| Package | ghcr.io/kanywst/mcp-opa-authz:0.6.2 (OCI, stdio) |
| First published | 25 Oct 2026 |
| Last updated | 25 Oct 2026 |
| Registry name | io.github.kanywst/mcp-opa-authz |
More security servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
