PluginBench
MCP Server
Active
MIT

OPA MCP MCP Server

io.github.OrygnsCode/opa-mcp

RepositoryRegistry
How to choose

What this kind of tool is for

  • Automate a build, test, or deployment step you repeat by hand.
  • Review or refactor code in an existing repository without leaving your agent.
  • Bridge an internal service or CLI into the agent toolset.

How to compare servers like this

Scope of control:
Repos and CI are hard to undo; prefer tools that ask before anything irreversible.
Environment fit:
Match the runtime it expects (Node, Python, a container) to what you actually run.
Maintenance signal:
Check the last-commit date — dev tooling that lags upstream breaks first.
Config surface:
Prefer tools whose environment-variable or config keys are documented plainly.

This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.

What is the OPA MCP MCP server?

Author, validate, debug, and explain OPA Rego policies through any MCP-compatible client.

How to install OPA MCP

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • OPA_URL

    Base URL of a running OPA server. Required only for opa_* runtime tools, not for rego_* language tools.

  • OPA_TOKEN
    secret

    Bearer token for OPA running with --authentication=token.

  • OPA_BINARY

    Path to the opa binary. Defaults to 'opa' on PATH.

  • REGAL_BINARY

    Path to the regal binary (optional; used by rego_lint, rego_security_audit and rego_fix). Defaults to 'regal' on PATH.

  • CONFTEST_BINARY

    Path to the conftest binary (optional, used by conftest_* tools). Defaults to 'conftest' on PATH.

  • OPA_MCP_ALLOWED_PATHS

    Comma-separated list of root directories tools may read/write. When unset, file-based tools refuse to access the disk.

  • GITHUB_TOKEN
    secret

    GitHub personal access token with the "gist" scope. Required only for rego_playground_share.

~/Library/Application Support/Claude/claude_desktop_config.json
JSON config
{
  "mcpServers": {
    "opa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/opa-mcp"
      ],
      "env": {
        "OPA_URL": "<YOUR_OPA_URL>",
        "OPA_TOKEN": "<YOUR_OPA_TOKEN>",
        "OPA_BINARY": "<YOUR_OPA_BINARY>",
        "REGAL_BINARY": "<YOUR_REGAL_BINARY>",
        "CONFTEST_BINARY": "<YOUR_CONFTEST_BINARY>",
        "OPA_MCP_ALLOWED_PATHS": "<YOUR_OPA_MCP_ALLOWED_PATHS>",
        "GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
      }
    }
  }
}

Related MCP servers

Discord server management MCP for AI agents: chat, moderation, admin, and full server building.

1
TypeScript
View repository →

Author, edit and run Bruno collections as files: HTTP, WebSocket, gRPC, per-request pass/fail.

3
TypeScript
MIT
View repository →

Open-source OTA update framework for Capacitor apps—ship web updates without app store reviews.

99
TypeScript
MIT
View repository →
OVovecc logo

ovecc

Active

Architecture guardrails for AI-written code: dependency graph, impact, dead code, CI gate

3
Rust
MPL-2.0
View repository →

Cited reports on any company or person, credential checks and mention scans for your AI

Teaches AI to write HTML email that renders in Outlook, Gmail, and Apple Mail. 19 rules, 6 comps.

0
MDX
MIT
View repository →