OPA MCP
Author, validate, debug, and explain OPA Rego policies through any MCP-compatible client.
Documentation & Preview
{ "mcpServers": { "mcp-opa-mcp-422fc4882033f34be29b": { "command": "npx", "args": [ "-y", "--package", "@orygn/opa-mcp@0.12.0", "opa-mcp" ], "env": { "OPA_URL": "${ENV_OPA_URL}", "OPA_TOKEN": "${ENV_OPA_TOKEN}", "OPA_BINARY": "${ENV_OPA_BINARY}", "REGAL_BINARY": "${ENV_REGAL_BINARY}", "CONFTEST_BINARY": "${ENV_CONFTEST_BINARY}", "OPA_MCP_ALLOWED_PATHS": "${ENV_OPA_MCP_ALLOWED_PATHS}", "GITHUB_TOKEN": "${ENV_GITHUB_TOKEN}" } } }, "setup": { "fields": [ { "id": "ENV_OPA_URL", "label": "OPA_URL", "description": "Base URL of a running OPA server. Required only for opa_* runtime tools, not for rego_* language tools.", "required": false, "secret": false, "default": "http://localhost:8181" }, { "id": "ENV_OPA_TOKEN", "label": "OPA_TOKEN", "description": "Bearer token for OPA running with --authentication=token.", "required": false, "secret": true, "default": "" }, { "id": "ENV_OPA_BINARY", "label": "OPA_BINARY", "description": "Path to the opa binary. Defaults to 'opa' on PATH.", "required": false, "secret": false, "default": "opa" }, { "id": "ENV_REGAL_BINARY", "label": "REGAL_BINARY", "description": "Path to the regal binary (optional; used by rego_lint, rego_security_audit and rego_fix). Defaults to 'regal' on PATH.", "required": false, "secret": false, "default": "regal" }, { "id": "ENV_CONFTEST_BINARY", "label": "CONFTEST_BINARY", "description": "Path to the conftest binary (optional, used by conftest_* tools). Defaults to 'conftest' on PATH.", "required": false, "secret": false, "default": "conftest" }, { "id": "ENV_OPA_MCP_ALLOWED_PATHS", "label": "OPA_MCP_ALLOWED_PATHS", "description": "Comma-separated list of root directories tools may read/write. When unset, file-based tools refuse to access the disk.", "required": false, "secret": false, "default": "" }, { "id": "ENV_GITHUB_TOKEN", "label": "GITHUB_TOKEN", "description": "GitHub personal access token with the \"gist\" scope. Required only for rego_playground_share.", "required": false, "secret": true, "default": "" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.OrygnsCode/opa-mcp", "registryVersion": "0.12.0", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.OrygnsCode%2Fopa-mcp/versions/0.12.0", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "@orygn/opa-mcp", "version": "0.12.0", "integrity": "sha512-UOpF91v17X/jS6uBodRHAJt8tAHAr9GAmLhcmy4kp7M0esVYds5PtixVMq/BcS899oT2mSadZx3k8U5vL/hq6A==", "registryNameMatched": "io.github.OrygnsCode/opa-mcp", "checkedAt": "2026-11-29T23:19:45.218Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }