MCP server for Open Policy Agent (OPA) and the Rego policy language. Wraps the OPA CLI and Regal linter with 32 tools for authoring, evaluating, and debugging Rego policies through any MCP-compatible client.
Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.
Install from
M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.
process.env. You'll be asked to provide them before it can run.CONFTEST_BINARY— conftest (on PATH) Path to the conftest binary. Only required by conftest_ tools. Returns CONFTEST_NOT_FOUND if absent.GITHUB_TOKENOPA_BINARY— "": "/usr/local/bin/opa",OPA_MCP_ALLOWED_PATHS— "": "/path/to/your/policies"OPA_MCP_DOCKER_SMOKEOPA_MCP_HTTP_TIMEOUT_MS— 15000 Timeout for HTTP requests to the OPA REST API.OPA_MCP_LOG_FILE— tmpdir>/orygn-opa-mcp.log Path the server appends logs to. The server never writes to stdout; that channel is reserved for the MCP protocol.OPA_MCP_LOG_LEVEL— info One of debug, info, warn, error.OPA_MCP_MAX_RESPONSE_BYTES— 100000 Hard cap on a single tool response. Larger payloads are truncated with a __truncated: true marker.OPA_MCP_NO_TELEMETRYOPA_MCP_TIMEOUT_MS— 30000 Hard timeout for any spawned subprocess (opa, regal). After this, the child gets SIGTERM and then SIGKILL.OPA_TOKEN— _(unset)_ Bearer token for OPA, if your instance requires auth. Treated as a secret. Never echoed in logs or tool responses.OPA_URL— "": "http://localhost:8181",REGAL_BINARY— "": "/usr/local/bin/regal",[](https://m8ven.ai/mcp/orygnscode-opa-mcp-server-17a4lz)