Prototipo · Versión preliminar: todos los servidores del registro oficial, sincronizados cada 30 minutos. Las reseñas y las cuentas llegarán en una etapa posterior.
PopNx MCPServidores MCP para quienes usan IA · explicados con palabras sencillas

MCP Opa Authz

de kanywstversión 0.6.2i★ –iSe ejecuta en tu computadora
Nombre en el registroio.github.kanywst/mcp-opa-authz

Instalar

Resumen

Descripción del creador (original en inglés)

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

Los tres pilares de PopNx MCP

Estos tres nunca se combinan en una sola puntuación: las opiniones, las mediciones y la popularidad son cosas distintas.

Qué puedes hacer con él

Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.

  • Conexión: Se ejecuta en tu computadora
  • Transporte: stdio
  • Categoría: Herramientas para desarrolladores
  • Debes completar: AUTHZEN_PDP_TOKEN

Instalación

Elige la app de IA que usas y copia la configuración.

Antes de instalar

  • Revisiones básicas: 1 de 1 superadas
  • Se ejecuta en tu computadora con los permisos de tu usuario (archivos, red, apps).
  • Debes completar tú: AUTHZEN_PDP_URL, AUTHZEN_PDP_TOKEN, AUTHZEN_PDP_TIMEOUT, MCP_OPA_EVAL_TIMEOUT, MCP_OPA_ALLOW_NETWORK_BUILTINS

Los valores marcados como secretos son llaves de tu cuenta. Nunca los compartas ni los pegues en un chat.

Necesitas

¿Qué app usas?

Elige tu app arriba. La recordamos, así que la próxima vez el botón dirá “Instalar en …”.

Abre Claude Desktop → Settings → Developer → Edit Config y pega esto en claude_desktop_config.json

{
  "mcpServers": {
    "opa-authz": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "AUTHZEN_PDP_URL",
        "-e",
        "AUTHZEN_PDP_TOKEN",
        "-e",
        "AUTHZEN_PDP_TIMEOUT",
        "-e",
        "MCP_OPA_EVAL_TIMEOUT",
        "-e",
        "MCP_OPA_ALLOW_NETWORK_BUILTINS",
        "ghcr.io/kanywst/mcp-opa-authz:0.6.2"
      ],
      "env": {
        "AUTHZEN_PDP_URL": "your-value",
        "AUTHZEN_PDP_TOKEN": "your-value",
        "AUTHZEN_PDP_TIMEOUT": "your-value",
        "MCP_OPA_EVAL_TIMEOUT": "your-value",
        "MCP_OPA_ALLOW_NETWORK_BUILTINS": "your-value"
      }
    }
  }
}

Ejecuta esto en tu terminal

claude mcp add opa-authz --env AUTHZEN_PDP_URL=your-value --env AUTHZEN_PDP_TOKEN=your-value --env AUTHZEN_PDP_TIMEOUT=your-value --env MCP_OPA_EVAL_TIMEOUT=your-value --env MCP_OPA_ALLOW_NETWORK_BUILTINS=your-value -- docker run -i --rm -e AUTHZEN_PDP_URL -e AUTHZEN_PDP_TOKEN -e AUTHZEN_PDP_TIMEOUT -e MCP_OPA_EVAL_TIMEOUT -e MCP_OPA_ALLOW_NETWORK_BUILTINS ghcr.io/kanywst/mcp-opa-authz:0.6.2

Completa los valores vacíos antes de ejecutarlo.

Abrir en Cursor

O copia la configuración tú

Pégalo en .cursor/mcp.json de tu proyecto, o en ~/.cursor/mcp.json

{
  "mcpServers": {
    "opa-authz": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "AUTHZEN_PDP_URL",
        "-e",
        "AUTHZEN_PDP_TOKEN",
        "-e",
        "AUTHZEN_PDP_TIMEOUT",
        "-e",
        "MCP_OPA_EVAL_TIMEOUT",
        "-e",
        "MCP_OPA_ALLOW_NETWORK_BUILTINS",
        "ghcr.io/kanywst/mcp-opa-authz:0.6.2"
      ],
      "env": {
        "AUTHZEN_PDP_URL": "your-value",
        "AUTHZEN_PDP_TOKEN": "your-value",
        "AUTHZEN_PDP_TIMEOUT": "your-value",
        "MCP_OPA_EVAL_TIMEOUT": "your-value",
        "MCP_OPA_ALLOW_NETWORK_BUILTINS": "your-value"
      }
    }
  }
}

Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.

Abrir en VS Code

O copia la configuración tú

Pégalo en .vscode/mcp.json de tu proyecto

{
  "servers": {
    "opa-authz": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "AUTHZEN_PDP_URL",
        "-e",
        "AUTHZEN_PDP_TOKEN",
        "-e",
        "AUTHZEN_PDP_TIMEOUT",
        "-e",
        "MCP_OPA_EVAL_TIMEOUT",
        "-e",
        "MCP_OPA_ALLOW_NETWORK_BUILTINS",
        "ghcr.io/kanywst/mcp-opa-authz:0.6.2"
      ],
      "env": {
        "AUTHZEN_PDP_URL": "your-value",
        "AUTHZEN_PDP_TOKEN": "your-value",
        "AUTHZEN_PDP_TIMEOUT": "your-value",
        "MCP_OPA_EVAL_TIMEOUT": "your-value",
        "MCP_OPA_ALLOW_NETWORK_BUILTINS": "your-value"
      }
    }
  }
}

Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.

Este se ejecuta en tu computadora, y ChatGPT solo puede conectarse a servidores en internet. Elige otra app.

Tu elección se guarda en una cookie en este dispositivo; no necesitas cuenta.

Valores que debes completar

  • AUTHZEN_PDP_URL env
    Default AuthZEN Access Evaluation endpoint, e.g. https://pdp.example.com/access/v1/evaluation. Only evaluate_policy works without it.
  • AUTHZEN_PDP_TOKEN secreto env
    Authorization header value for the PDP. A value with no scheme is sent as "Bearer ".
  • AUTHZEN_PDP_TIMEOUT env
    Per-request timeout for PDP calls, as a Go duration. Default 10s.
  • MCP_OPA_EVAL_TIMEOUT env
    Wall-clock limit on a single Rego evaluation, as a Go duration. Default 5s.
  • MCP_OPA_ALLOW_NETWORK_BUILTINS env
    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.

Esta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.

Qué puede hacer

Se ejecuta en tu computadora; la lista de herramientas aparece en tu app de IA después de instalarlo.

Revisiones básicasi

Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 7 nov 2026

  • ✓ Superada

    El creador coincide con el repo

    El nombre en el registro se verificó con la cuenta de GitHub kanywst, dueña del repo

  • … Aún sin revisar

    Sigue en mantenimiento

    Todavía no hemos leído este repo en GitHub

  • … Aún sin revisar

    Tiene licencia

    Todavía no hemos leído este repo en GitHub

  • – No aplica

    El endpoint responde

    Este se ejecuta en tu computadora; no hay endpoint en internet

  • – No aplica

    Inicio de sesión con OAuth

    Se ejecuta en tu computadora y usa ajustes locales en su lugar

  • … Aún sin revisar

    Sin instrucciones ocultas en las descripciones de herramientas

    Se ejecuta en tu computadora; solo podemos leer listas de herramientas de endpoints en internet

Comparado con otros en Herramientas para desarrolladoresi

  • Más estrellas que el 0% de los otros 4907 servidores de esta categoría
  • Publicado en el registro más recientemente que el 73% de los otros 4907 servidores de esta categoría
  • Revisiones básicas iguales o mejores que el 100% de los otros 4907 servidores de esta categoría

Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.

Preguntas frecuentes

¿Es seguro MCP Opa Authz?

Superó 1 de 1 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.

¿Qué claves o códigos necesita?

Debes completar: AUTHZEN_PDP_TOKEN

¿Se ejecuta en mi computadora o en la nube?

Se ejecuta en tu computadora. Tu app de IA lo inicia cuando hace falta, y los datos no pasan por los servidores del creador (a menos que el propio servidor llame a un servicio en línea).

¿Sigue en mantenimiento?

El repo de GitHub cambió por última vez –, y la última versión (0.6.2) llegó al registro hace 13 días.

¿Qué apps pueden usarlo?

Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. También necesitas Docker en tu computadora.

¿Qué puedo usar en su lugar?

En la misma categoría: GitHub, Desktop Commander, Cloudflare MCP

Alternativas

Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.

Cómo leer una tarjeta:★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi

GitHub

de github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

Computadora o nube★ 34.245MITActualizado hace 4 días
Instalar

Desktop Commander

de wonderwhy-er

MCP server for terminal commands, file operations, and process management

Se ejecuta en tu computadora★ 10.225MITActualizado hace 16 días
Instalar

Cloudflare MCP

de cloudflare

Cloudflare MCP servers

Se ejecuta en la nube★ 4446Apache-2.0Actualizado hace 14 meses
Instalar

README del creador

Abrir el README

Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.

mcp-opa-authz

Stop letting your agent guess at authorization. This is an MCP server that answers "is this allowed?" from real policy code — either Rego you hand it, or the OpenID AuthZEN 1.0 PDP that actually governs your system.

Ask a model whether Alice may delete that document and it will produce a confident, plausible, unfalsifiable answer. Give it these tools and the answer comes from the policy.

brew install kanywst/tap/mcp-opa-authz

or, without Homebrew:

go install github.com/kanywst/mcp-opa-authz@latest

claude mcp add opa-authz -- mcp-opa-authz

That is enough for evaluate_policy. Point it at a PDP to get the rest:

claude mcp add opa-authz \

--env AUTHZEN_PDP_URL=http://localhost:8181/access/v1/evaluation \ -- mcp-opa-authz

Two layers, same question

ToolAnswersNeeds
evaluate_policy"What does this Rego say?" Evaluated in-process by OPA.Nothing external
authzen_evaluate"What does the PDP that governs this system say?"A reachable PDP
authzen_evaluate_batchThe same, over a list — which of these may the subject touch?A reachable PDP
authzen_search"Who may…", "which resources may…", "what may…" — the PDP lists what is permitted.A PDP with the Search APIs
authzen_discover"Which endpoints does this PDP offer?"A reachable PDP

Use evaluate_policy while authoring or debugging a policy you have the source of. Use authzen_evaluate when the decision has to come from production, not from a policy pasted into the chat. The server's MCP instructions tell the model the same thing, so it usually picks correctly on its own.

What makes this different from opa eval in a shell tool

An agent given shell access can already run opa eval. What it cannot do is get an answer it is allowed to trust:

  • Undefined is not false. A Rego query with no matching rule and no default returns []. Every model reads that as a deny. evaluate_policy returns defined alongside value, so "the policy denied" and "the policy has no opinion" stop being the same answer.
  • A PDP that did not answer is not a deny. AuthZEN makes decision a required member. A response missing it decodes into a Go bool as false — a broken PDP would look like a strict one. This server treats a missing decision as a failure, never as a deny. Same for a 401: that means *this server* failed to authenticate, not that the subject was denied, and the error says so.
  • The policy runs in a sandbox. Rego handed to an MCP server was written by a model, from text that may have come from a web page. OPA's http.send would let that policy make arbitrary HTTP requests from your laptop, and opa.runtime() would hand it your environment. Both are compiled out. See Security.
  • Batch decisions carry their index. permit_on_first_permit legitimately returns fewer decisions than you sent. Zipping the arrays would attach a decision to the wrong resource.
  • An empty search is not a failed search. results: [] means nothing is permitted; a response with no results member, or a result of the wrong entity type, is an error.

Demo

Debugging a policy that is denying when it should not:

> Why is bob getting denied on doc-1? Here's the policy and the input.

evaluate_policy(rego=…, query="data.rbac.allow", input_json=…, trace=true)

{ "defined": true, "value": false, "printed": ["checking roles for", "bob"], "trace": [ "Enter data.rbac.allow", "| Eval some role in roles[input.user]", "| Fail roles[\"bob\"]", … ] }

Bob has no entry in roles at all — the rule never reaches the permission check. Adding "bob": {"viewer"} fixes it.

Then confirming against the PDP that actually runs:

> Does production agree?

authzen_evaluate(subject={"type":"user","id":"bob"}, …)

{ "decision": false, "context": { "reason": "no role binding" }, "request_id": "3f9c…", "pdp_url": "https://pdp.internal/access/v1/evaluation" }

Tools

evaluate_policy
ParamRequiredDescription
regoyesRego source with a package declaration.
queryyesRego query, e.g. data.example.allow.
input_jsonnoJSON-encoded input document.
data_jsonnoJSON-encoded base document for the data namespace.
rego_versionnov1 (default) or v0 for pre-OPA-1.0 syntax.
tracenoReturn a pretty-printed evaluation trace. Verbose; bounded at 4000 events, 200 lines, 1 KiB per line.

Returns defined, value, the raw OPA result_set (omitted with result_set_omitted past 256 KiB encoded), any print() output (200 lines of 1 KiB), and the trace when asked for.

authzen_evaluate
ParamRequiredDescription
subjectyesJSON object. AuthZEN requires type and id.
actionyesJSON object. AuthZEN requires name.
resourceyesJSON object. AuthZEN requires type and id.
contextnoJSON object with runtime context (IP, time, MFA strength).
pdp_urlnoOverride AUTHZEN_PDP_URL for this call.

Returns decision, the PDP's context if any, the pdp_url that answered, and the request_id sent as X-Request-ID — so a decision in a transcript can be found in the PDP's logs.

authzen_evaluate_batch

Same arguments, plus evaluations (a JSON array whose entries override the top-level defaults) and evaluations_semantic (execute_all, deny_on_first_deny, permit_on_first_permit). Capped at 100 entries per call. Without pdp_url, the endpoint is the access_evaluations_endpoint the PDP advertises in its metadata, or /access/v1/evaluations under the root of AUTHZEN_PDP_URL when it advertises none — the same resolution, cache and same-origin rule as authzen_search. endpoint_source in the result says which was used.

{

"subject": "{\"type\":\"user\",\"id\":\"alice\"}", "action": "{\"name\":\"read\"}", "evaluations": "[{\"resource\":{\"type\":\"doc\",\"id\":\"1\"}},{\"resource\":{\"type\":\"doc\",\"id\":\"2\"}}]" }

authzen_search

The AuthZEN Search APIs. search picks which entity is being listed; that entity carries only its type.

searchAskssubjectactionresource
subjectWho may do this to that resource?type onlyrequiredtype and id
resourceWhich resources of a type may the subject act on?type and idrequiredtype only
actionWhat may the subject do to the resource?type and idmust be omittedtype and id

context, pdp_url, page_limit and page_token are optional. Without pdp_url, the endpoint is the one the PDP advertises in its metadata (search_subject_endpoint etc.), as the specification requires, falling back to the default path (/access/v1/search/{subject,resource,action}) under the root of AUTHZEN_PDP_URL when it has no usable metadata. The metadata is cached per PDP for five minutes, and endpoint_source in the result says which one was used. An advertised endpoint has to be on the PDP's own origin, because the PDP token goes with the request; a cross-origin one is refused unless passed explicitly as pdp_url. Returns results, has_more and next_page_token; pass the token back as page_token, with every other argument unchanged, for the next page. A response whose page object has no next_token is an error even though the specification's own example has one: without it nothing says whether the list is complete.

{

"search": "resource", "subject": "{\"type\":\"user\",\"id\":\"alice\"}", "action": "{\"name\":\"read\"}", "resource": "{\"type\":\"document\"}" }

authzen_discover

Fetches /.well-known/authzen-configuration from a PDP root. pdp_url may be a root or an evaluation endpoint — the known AuthZEN path suffix is stripped. For a PDP mounted under a prefix, the well-known string goes between the host and the prefix, as RFC 8615 and the specification place it (https://gw.example.com/.well-known/authzen-configuration/pdp); the older appended form (…/pdp/.well-known/authzen-configuration) is tried if that 404s. A document whose policy_decision_point is not the root it was fetched from is rejected, as the specification requires.

Standards conformance

Implements Authorization API 1.0, approved as an OpenID Final Specification in January 2026:

SectionStatus
Access Evaluation (POST /access/v1/evaluation)authzen_evaluate
Access Evaluations, batch (POST /access/v1/evaluations)authzen_evaluate_batch
PDP Metadata (GET /.well-known/authzen-configuration)authzen_discover
Subject / Action / Resource information modelRequired members validated before the request is sent
X-Request-ID correlationSent on every call, returned in the result
Search APIs (subject / resource / action, with pagination)authzen_search

Related work worth knowing about: the AuthZEN working group's COAZ profile binds AuthZEN to MCP tool calls themselves, so a gateway can authorize tools/call with an x-authzen-mapping declared in a tool's inputSchema. That is the enforcement side of the same problem — this server is the *inspection* side, and the two compose.

Configuration

VariableDefaultDescription
AUTHZEN_PDP_URL—Default Access Evaluation endpoint.
AUTHZEN_PDP_TOKEN—Authorization header value. A value with no scheme is sent as Bearer .
AUTHZEN_PDP_TIMEOUT10sPer-request timeout.
AUTHZEN_PDP_MAX_RESPONSE_BYTES1048576Response read limit.
MCP_OPA_EVAL_TIMEOUT5sWall-clock limit on one Rego evaluation.
MCP_MAX_ARG_BYTES1048576Per-argument size limit.
MCP_OPA_ALLOW_NETWORK_BUILTINSfalseRe-enable the network built-ins. See below.

A malformed value stops the server at startup rather than being silently replaced by the default — a bound an operator believes is in place should be in place.

Security

evaluate_policy compiles and runs Rego that a model produced, inside this process. Three OPA built-ins are removed from the capability set for that reason:

Built-inWhy
http.sendArbitrary HTTP from wherever the server runs — a laptop or CI runner, inside whatever network boundary that sits behind. It is the whole SSRF surface, and it contradicts the tool's own description.
net.lookup_ip_addrEnough to exfiltrate input one DNS label at a time, with no port reachable.
opa.runtimeReturns the runtime configuration, including the process environment and every credential in it.

Time, JWT, UUID and random built-ins are untouched — those appear in real authorization policies. A policy using a removed built-in fails to compile with a message naming it, and pointing at MCP_OPA_ALLOW_NETWORK_BUILTINS for the cases where you genuinely want it.

The PDP client is constrained too: pdp_url must be an absolute http(s)

Solo se muestra el principio; lee el resto en el repo

Pregunta a PopNx