OPA MCP
Author, validate, debug, and explain OPA Rego policies through any MCP-compatible client.
Install OPA MCP in your MCP client
OPA MCP is a Model Context Protocol server. Add it to your MCP client config once, restart, and the server's tools become available to your AI assistant. The same JSON snippet below works across all four major clients — only the config file path differs.
- Locate your client's MCP config file.
- Cursor:
~/.cursor/mcp.json - Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.json - Claude Desktop (Windows):
%APPDATA%\Claude\claude_desktop_config.json - VS Code:
Settings → Extensions → MCP - Windsurf:
Settings → MCP Servers
- Cursor:
- Add OPA MCP to the mcpServers map — paste the snippet below into your config file. If you already have other MCP servers, merge the entry into the existing
mcpServersobject. - Restart your client so it picks up the new server.
- Verify — ask the assistant to list available tools; OPA MCP's tools should appear.
{
"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>",
"OPA_MCP_ALLOWED_PATHS": "<your-opa-mcp-allowed-paths>"
}
}
}
}Install OPA MCP in Cursor
Open ~/.cursor/mcp.json in your editor, paste the snippet above into mcpServers, save, and restart Cursor. OPA MCP will show up in the assistant's tool list on next launch.
Install OPA MCP in Claude Desktop (macOS)
Open ~/Library/Application Support/Claude/claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (macOS). OPA MCP will show up in the assistant's tool list on next launch.
Install OPA MCP in Claude Desktop (Windows)
Open %APPDATA%\Claude\claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (Windows). OPA MCP will show up in the assistant's tool list on next launch.
Install OPA MCP in VS Code
Open Settings → Extensions → MCP in your editor, paste the snippet above into mcpServers, save, and restart VS Code. OPA MCP will show up in the assistant's tool list on next launch.
npm package: @orygn/opa-mcp
Required environment variables
OPA MCP needs the following environment variables set before it can run. Add them to the env block of your mcpServers entry, or export them in your shell before launching the client.
OPA_URLOPA_TOKENOPA_BINARYREGAL_BINARYOPA_MCP_ALLOWED_PATHS
Transport
OPA MCP supports the following MCP transports. Most AI clients use stdio by default for locally-installed servers.
More build.protocol_tooling.mcp MCP servers
Other Model Context Protocol servers in the same space as OPA MCP. Each one adds different capabilities to your AI assistant — pick based on the data sources or workflows you need.
x402-extract
Pay-per-call MCP server. $0.01 USDC extracts schema.org/Product JSON from any URL via x402.
l402-kit
MCP server for L402-protected APIs via Bitcoin Lightning. Pay-per-call AI tools in sats.
TOP GUN GEO-Lens
Brand visibility auditing across LLMs, AI search, and answer engines with GEO reports and scores.
Ikenga iyke (control bridge)
Drive a running Ikenga desktop app from MCP clients — DOM, click, type, navigate, screenshot.
gread
An MCP server that gives your AI access to the source code and docs of all public github repos
toml-yaml-json-mcp
Parse, format, and convert configs across TOML, YAML, and JSON.
timezone-mcp
IANA timezone conversions with real DST rules.
sqlfmt-mcp
Deterministic SQL formatting across 19 dialects (postgres, mysql, snowflake, bigquery, etc.).
Browse the full MCP server directory or use Stork's one-line install to let your agent pick the right server automatically.