OPA MCP
io.github.OrygnsCode/opa-mcp
v0.10.0Updated Nov 17, 2026stdio · npmstdio · Docker
Author, validate, debug, and explain OPA Rego policies through any MCP-compatible client.
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add opa-mcp -e OPA_URL=http://localhost:8181 -e OPA_BINARY=opa -e REGAL_BINARY=regal -e CONFTEST_BINARY=conftest -- npx -y @orygn/[email protected]Configuration
7 settings.
OPA_TOKENEnv var· optional· secretBearer token for OPA running with --authentication=token.GITHUB_TOKENEnv var· optional· secretGitHub personal access token with the "gist" scope. Required only for rego_playground_share.OPA_URLEnv var· optionalBase URL of a running OPA server. Required only for opa_* runtime tools, not for rego_* language tools.Default:http://localhost:8181OPA_BINARYEnv var· optionalPath to the opa binary. Defaults to 'opa' on PATH.Default:opaREGAL_BINARYEnv var· optionalPath to the regal binary (optional; used by rego_lint, rego_security_audit and rego_fix). Defaults to 'regal' on PATH.Default:regalCONFTEST_BINARYEnv var· optionalPath to the conftest binary (optional, used by conftest_* tools). Defaults to 'conftest' on PATH.Default:conftest
Show 1 moreShow fewer
OPA_MCP_ALLOWED_PATHSEnv var· optionalComma-separated list of root directories tools may read/write. When unset, file-based tools refuse to access the disk.
Links
Listed in the official MCP Registry since Nov 17, 2026. Mirrored daily; last checked Nov 26, 2026.