MCP.Market

Opa Authz MCP server

by kanywst·io.github.kanywst/mcp-opa-authz·v0.6.2·1 stars

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

B73/100grade B
What users say
No reviews yet
Be the first
Safety scan
B73/100

not scanned yet

Adoption
New

1 stars

Reviews

Write one

Nobody has reviewed Opa Authz yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Opa Authz tools

No tool declarations could be read from the package source. They show once the server is installed.

Not scanned yet. New listings are scanned within a day or two of arriving.

How Opa Authz compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
73/100
higher than 38% of 48,243 servers
GitHub stars
1
more than 65% of 28,706 servers

Release history: 5 versions in the registry since 2026-09-11, latest 2026-10-25, typically one every 17 days.

Install Opa Authz in Claude Code, Cursor or VS Code

claude mcp add mcp-opa-authz -- docker run -i --rm ghcr.io/kanywst/mcp-opa-authz:0.6.2
Add to Cursor

What the publisher says

From the Opa Authz repository's README, as published. We do not edit it. Read it on GitHub

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

Use evaluatepolicy while authoring or debugging a policy you have the source of. Use authzenevaluate 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. permitonfirst_permit legitimately returns fewer decisions than you sent. Zipping the arrays would attach a decision to the wrong resource.

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\"]",
      …
    ]
  }

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Opa Authz: common questions

Is Opa Authz MCP server safe?
Mostly: it is graded B (73/100). Read the Opa Authz safety report
How do I install Opa Authz?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Opa Authz need an API key?
Yes. The registry entry asks for AUTHZEN_PDP_TOKEN.
Is Opa Authz maintained?
The last commit was 23 days ago (2026-10-13). The latest release is v0.6.2.
What can I use instead of Opa Authz?
Servers from other publishers that do the same job: Ask Jev MCP server.
How does Opa Authz compare with other MCP servers?
safety score 73/100 (higher than 38% of 48,243 servers); github stars 1 (more than 65% of 28,706 servers). Full comparison.

Alternatives to Opa Authz

Same job from other publishers: the closest match first, then the best rated.

  • Ask Jev
    Evaluate state with typed choice, score, and probability questions.
    A