Model Context Protocol server for Open Policy Agent (OPA). Author, validate, debug, and explain Rego policies through any MCP-compatible client.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"opa": {
"env": {
"OPA_URL": "http://localhost:8181",
"OPA_BINARY": "/usr/local/bin/opa",
"REGAL_BINARY": "/usr/local/bin/regal",
"OPA_MCP_ALLOWED_PATHS": "/path/to/your/policies"
},
"args": [
"-y",
"@orygn/opa-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol (MCP) server that turns any MCP-compatible client (Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Zed, and others) into a first-class Open Policy Agent and Rego authoring
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@orygn/opa-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @orygn/opa-mcp against OSV.dev.
Click any tool to inspect its schema.
OPA built-in function catalogReference for OPA built-in functions
Rego style guideOfficial Rego style guide formatted for LLMs
Pattern libraryCurated pattern library covering RBAC, ABAC, Kubernetes admission, IaC gates, API authz, and rate limiting
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml
Dynamic problem-solving through sequential thought chains
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
An autonomous agent that conducts deep research on any data using any LLM providers
MCP Security Weekly
Get CVE alerts and security updates for Opa Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.