OPA MCP server
io.github.OrygnsCode/opa-mcp·v0.9.1·8 starsAuthor, validate, debug, and explain OPA Rego policies through any MCP-compatible client.
not scanned yet
8 stars
Reviews
Write oneNobody has reviewed OPA MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
OPA MCP tools
No tool declarations could be read from the package source. They show once the server is installed.
How OPA MCP compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 75/100
- higher than 45% of 48,243 servers
- GitHub stars
- 8
- more than 86% of 28,706 servers
Release history: 5 versions in the registry since 2026-09-07, latest 2026-10-23, typically one every 17 days.
Install OPA MCP in Claude Code, Cursor or VS Code
Runs npx -y @orygn/opa-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add opa-mcp -- npx -y @orygn/opa-mcp
What the publisher says
From the OPA MCP repository's README, as published. We do not edit it. Read it on GitHub
OPA MCP Server
A Model Context Protocol (MCP) server that turns any MCP-compatible client (Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Zed, and others) into a first-class Open Policy Agent and Rego authoring environment.
+--------------------+ MCP/stdio +-----------------+ spawn/HTTP +---------------------+
| Claude · Cursor · |----------> | @orygn/opa-mcp |----------> | opa · regal |
| VS Code · ... |<---------- | |<---------- | conftest · REST API |
+--------------------+ 52 tools +-----------------+ +---------------------+Status: v0.6.0. Tool surface, error codes, and
environment variables follow SemVer from
v0.1.0 forward.
Upgrading to 0.6.0: rego_bench reports iterations, nsPerOp,
allocsPerOp and bytesPerOp. The fields opa prints (N, T, Bytes,
MemAllocs, MemBytes, Extra) were top-level and now sit under raw
for a single run, so anything that read them from the top level has to
look there. With count above one, raw is omitted: every document is in
runs, and fastest indexes the one the top-level figures come from.
Upgrading to 0.4.0: subprocesses no longer inherit the server's
environment. A policy that read a variable through opa.runtime().env
will no longer see it; name the variable in OPAMCPPASSTHROUGH_ENV if
it is genuinely needed. See the security section for why.
Upgrading to 0.3.0: the bundled OPA is now 1.19, so Rego v0 policies
no longer parse (if is required before a rule body, contains before a
partial set). Run regomigratev1 to convert them. If you supply your own
binary via OPA_BINARY or PATH, nothing changes.
Table of contents
- What you can do with it
- Why this MCP
- Install
- Configuration
- Tool reference
- Prompts
- Resources
- Cookbook
- Architecture
- Security
- Troubleshooting
- Development
What you can do with it
Once an MCP client is connected, an agent can:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
OPA MCP: common questions
- Is OPA MCP server safe?
- Mostly: it is graded B (75/100). Read the OPA MCP safety report
- How do I install OPA MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does OPA MCP need an API key?
- Yes. The registry entry asks for
OPA_TOKEN,GITHUB_TOKEN. - Is OPA MCP maintained?
- The last commit was 30 days ago (2026-10-06). The latest release is v0.9.1.
- How does OPA MCP compare with other MCP servers?
- safety score 75/100 (higher than 45% of 48,243 servers); github stars 8 (more than 86% of 28,706 servers). Full comparison.