LocalFree server, account needed

OPA MCP server

OrygnsCode/opa-mcp-server

OPA and Rego policy toolkit wrapping the OPA CLI and Regal: format, lint, evaluate, test and benchmark policies, manage the OPA REST API and explain decisions.

8 GitHub stars1 forks

Install OPA in Claude Code

npm

Claude Code
claude mcp add opa -- npx -y @orygn/opa-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "opa": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/opa-mcp"
      ]
    }
  }
}

Docker

Claude Code
claude mcp add opa -- docker run -i --rm docker.io/orygn/opa-mcp:0.9.1
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "opa": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/orygn/opa-mcp:0.9.1"
      ]
    }
  }
}

Frequently asked questions

What does the OPA MCP server do?

OPA and Rego policy toolkit wrapping the OPA CLI and Regal: format, lint, evaluate, test and benchmark policies, manage the OPA REST API and explain decisions.

Is the OPA MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does OPA run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add OPA to Claude Code?

Run: claude mcp add opa -- npx -y @orygn/opa-mcp

More security & identity MCP servers

View all