L'Agora
MCPLocal

OPA MCP

io.github.OrygnsCode/opa-mcp

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

Repository
github.com/OrygnsCode/opa-mcp-server
Website
orygn.tech/products/opa-mcp
Version
0.11.2
Author
OrygnsCode (namespace verified by the registry)
Source
Official MCP registry (updated Nov 28, 2026)

How to install it

Variables to fill in: OPA_URL, OPA_TOKEN, OPA_BINARY, REGAL_BINARY, CONFTEST_BINARY, OPA_MCP_ALLOWED_PATHS, GITHUB_TOKEN.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add opa-mcp -e OPA_URL=YOUR_OPA_URL -e OPA_TOKEN=YOUR_OPA_TOKEN -e OPA_BINARY=YOUR_OPA_BINARY -e REGAL_BINARY=YOUR_REGAL_BINARY -e CONFTEST_BINARY=YOUR_CONFTEST_BINARY -e OPA_MCP_ALLOWED_PATHS=YOUR_OPA_MCP_ALLOWED_PATHS -e GITHUB_TOKEN=YOUR_GITHUB_TOKEN -- npx -y @orygn/[email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "opa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/[email protected]"
      ],
      "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"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "opa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/[email protected]"
      ],
      "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"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "opa-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@orygn/[email protected]"
      ],
      "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"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.OrygnsCode/opa-mcp on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.OrygnsCode/opa-mcp on L’Agora](https://lagora.dev/badge/io.github.orygnscode/opa-mcp.svg?lang=en)](https://lagora.dev/en/entry/io.github.orygnscode/opa-mcp)

HTML

<a href="https://lagora.dev/en/entry/io.github.orygnscode/opa-mcp"><img src="https://lagora.dev/badge/io.github.orygnscode/opa-mcp.svg?lang=en" alt="io.github.OrygnsCode/opa-mcp on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

Discord MCP Local

Report this entry