MCP Opa Authz
● Activeio.github.kanywst/mcp-opa-authz
Authorization answers from real policy code: evaluate Rego locally, or ask an AuthZEN 1.0 PDP.
Connect this server
One click to install, or copy the config below. Suits: Claude Desktop · Cursor.
Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):
{
"mcpServers": {
"mcp-opa-authz": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kanywst/mcp-opa-authz:0.7.0"
],
"env": {
"AUTHZEN_PDP_TOKEN": "<your AUTHZEN_PDP_TOKEN>"
}
}
}
}claude mcp add --env AUTHZEN_PDP_TOKEN='<your AUTHZEN_PDP_TOKEN>' --transport stdio mcp-opa-authz -- docker run -i --rm ghcr.io/kanywst/mcp-opa-authz:0.7.0codex mcp add mcp-opa-authz --env AUTHZEN_PDP_TOKEN='<your AUTHZEN_PDP_TOKEN>' -- docker run -i --rm ghcr.io/kanywst/mcp-opa-authz:0.7.0code --add-mcp '{"name":"mcp-opa-authz","type":"stdio","command":"docker","args":["run","-i","--rm","ghcr.io/kanywst/mcp-opa-authz:0.7.0"],"env":{"AUTHZEN_PDP_TOKEN":"<your AUTHZEN_PDP_TOKEN>"}}'Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.
- AUTHZEN_PDP_TOKENsecretAuthorization header value for the PDP. A value with no scheme is sent as "Bearer <token>".
A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.
- Category
- Security & Identity
- Version
- 0.7.0
- Registry
- active
- Published
- 11/17/2026
Is it safe? Is it maintained?
Serverdex check: Nov 19, 2026Looks healthy: MCP Opa Authz is maintained, open source.
- Maintained
- Active
- Last commit 5 days ago (Nov 17, 2026), 0 open issues.
- Official registry
- Active
- Published as io.github.kanywst/mcp-opa-authz in the official MCP registry, version 0.7.0.
- Source
- Open source, MIT
- Public repository under the MIT licence, 1 stars, 0 forks.
- Runs
- On your machine
- A local Docker package started by your client; it can reach whatever your user account can.
- Credentials
- 1 required
- Declared environment variables: AUTHZEN_PDP_TOKEN. They stay on your machine; the config on this page shows where each goes.
- Owner
- Unclaimed
- Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.
Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself.
On GitHub
read Nov 18, 2026- Stars
- 1
- Forks
- 0
- Last push
- Nov 17, 2026
- License
- MIT
Goauthorizationauthzenclaudegolangllm-toolsmcpmodel-context-protocolopapolicy-as-coderego
From the README
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. That is enough for evaluate_policy. Point it at a PDP to get the rest: 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.…
Read the full README on GitHub →Alternatives to MCP Opa Authz
All MCP Opa Authz alternatives →Best Security & Identity servers →The most-starred Security & Identity servers in the index, with their live-check result.
| Server | Stars | Last push | Live check |
|---|---|---|---|
| Handsy AI | 5,215 | Nov 2026 | Local / not checked |
| HOL Guard | 1,118 | Nov 2026 | Local / not checked |
| SonarQube MCP Server | 689 | Nov 2026 | Local / not checked |
| MCP Ssh Manager | 545 | Nov 2026 | Local / not checked |
| Security Detections | 529 | Nov 2026 | Local / not checked |
MCP Opa Authz: questions people ask
- Is MCP Opa Authz a remote or a local MCP server?
- According to its entry in the official MCP registry, MCP Opa Authz ships as a local package (Docker) that your client starts on your machine.
- Does MCP Opa Authz need an API key?
- Its registry entry declares one required environment variable: AUTHZEN_PDP_TOKEN. The config on this page shows where each goes.
- Is MCP Opa Authz safe to use?
- Looks healthy: MCP Opa Authz is maintained, open source. In detail — maintained: Active; official registry: Active; source: Open source, MIT; runs: On your machine; credentials: 1 required. Serverdex check of Nov 19, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
- Is MCP Opa Authz still maintained?
- Active: the repository's last commit 5 days ago. Last push Nov 17, 2026, 1 GitHub stars, MIT licence. Read from GitHub on Nov 18, 2026.
- How do I add MCP Opa Authz to Claude, Cursor or VS Code?
- Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
More Security & Identity servers
Browse all Security & Identity →Kastell
kastelldev
Server security audit (413 checks), hardening, and fleet management across 4 cloud providers.
Cybersim Pro
kayembahamid
Cybersecurity training, simulation, and incident response MCP server
CollectSEA
kelvin-ling
Find real software, security and AI-agent failures that resemble your design, with safeguards.
FedRAMP 20x Requirements
KevinRabun
An MCP server that provides access to FedRAMP 20x security requirements and controls.
Rogue Binary MCP
kirkderp
Rust MCP server for binary analysis and reverse engineering.
Provenza
kironovlaziz-del
AI governance & security gateway for MCP: approved tools, policy-checked calls, signed audit proofs
Add the badge to your site
Show visitors that MCP Opa Authz is listed here — it’s also the link we check for a free listing.
HTML — for your website
<a href="https://serverdex.io/server/io-github-kanywst-mcp-opa-authz?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="MCP Opa Authz — listed on Serverdex" width="123" height="40" loading="lazy"></a>Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.
Markdown — for your README
[](https://serverdex.io/server/io-github-kanywst-mcp-opa-authz?utm_source=badge)Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.
Install buttons — for your README
[](https://serverdex.io/install/cursor/io-github-kanywst-mcp-opa-authz) [](https://serverdex.io/install/vscode/io-github-kanywst-mcp-opa-authz) [](https://serverdex.io/install/claude-code/io-github-kanywst-mcp-opa-authz)One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.
Install buttons — HTML for your docs
<a href="https://serverdex.io/install/cursor/io-github-kanywst-mcp-opa-authz"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/io-github-kanywst-mcp-opa-authz"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/io-github-kanywst-mcp-opa-authz"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>Same buttons as plain links for a docs page or website.
Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).