OPA MCP
An open-source Model Context Protocol server that provides over 50 tools for authoring, validating, debugging, and explaining Open Policy Agent (OPA) Rego policies. It integrates with MCP-compatible clients like Claude, Cursor, and VS Code, bundling the OPA binary for ease of use without separate installation.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
Checks and signals
Each line is separate evidence, not a trust score.
- Popularity 8 GitHub stars
What you can do with it
- Author and validate Rego policies
- Debug policy evaluation errors
- Explain policy decisions and traces
- Run Conftest configuration tests
Source and maintenance
- Last repository push
- Latest release
- v0.9.1
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
docker.io/orygn/opa-mcp:0.9.1
{
"transport": "stdio",
"identifier": "docker.io/orygn/opa-mcp:0.9.1",
"registryType": "oci",
"environmentVariables": [
{
"name": "OPA_URL",
"default": "http://localhost:8181",
"description": "Base URL of a running OPA server."
},
{
"name": "OPA_TOKEN",
"description": "Bearer token for OPA authentication."
},
{
"name": "GITHUB_TOKEN",
"description": "GitHub personal access token with the \"gist\" scope. Required only for rego_playground_share."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"opa-mcp-0-9-1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"OPA_URL=<YOUR_OPA_URL>",
"-e",
"OPA_TOKEN=<YOUR_OPA_TOKEN>",
"-e",
"GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>",
"docker.io/orygn/opa-mcp:0.9.1"
],
"env": {
"OPA_URL": "<YOUR_OPA_URL>",
"OPA_TOKEN": "<YOUR_OPA_TOKEN>",
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Cline
{
"mcpServers": {
"opa-mcp-0-9-1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"OPA_URL=<YOUR_OPA_URL>",
"-e",
"OPA_TOKEN=<YOUR_OPA_TOKEN>",
"-e",
"GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>",
"docker.io/orygn/opa-mcp:0.9.1"
],
"env": {
"OPA_URL": "<YOUR_OPA_URL>",
"OPA_TOKEN": "<YOUR_OPA_TOKEN>",
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}VS Code
{
"servers": {
"opa-mcp-0-9-1": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"OPA_URL=<YOUR_OPA_URL>",
"-e",
"OPA_TOKEN=<YOUR_OPA_TOKEN>",
"-e",
"GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>",
"docker.io/orygn/opa-mcp:0.9.1"
],
"env": {
"OPA_URL": "<YOUR_OPA_URL>",
"OPA_TOKEN": "<YOUR_OPA_TOKEN>",
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"opa-mcp-0-9-1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"OPA_URL=<YOUR_OPA_URL>",
"-e",
"OPA_TOKEN=<YOUR_OPA_TOKEN>",
"-e",
"GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>",
"docker.io/orygn/opa-mcp:0.9.1"
],
"env": {
"OPA_URL": "<YOUR_OPA_URL>",
"OPA_TOKEN": "<YOUR_OPA_TOKEN>",
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Let your agent find its tools
Find servers like OPA MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.