mheers
MCP Servermheerspublic

opa mcp

Exposes a rego language server (from OpenPolicyAgent/OPA) for MCP

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Open Policy Agent
Language
-
License

About This Server

Exposes a rego language server (from OpenPolicyAgent/OPA) for MCP

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

OPA MCP

Exposes a rego language server for MCP

Pre-requisites

Install mcp language server:

go install github.com/isaacphi/mcp-language-server@latest

Install regal from github.com/StyraInc/regal

Code Guidelines

This project follows the coding guidelines specified in .github/copilot-instructions.md. These guidelines ensure consistent code generation and AI-assisted development practices across the codebase.

Demo queries

  • whats the definition of amount_allowed?
  • give me diagnostics of the simple.rego file
  • display the metadata and documentation of amount_allowed

Problems

  • rename all symbols from "allow" to "allowed"
    • method not supported: textDocument/references (code: -32601)
  • give me all references of the "user" function
    • method not supported: textDocument/references (code: -32601)

Quick Start

1

Clone the repository

git clone https://github.com/mheers/opa-mcp
2

Install dependencies

cd opa-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownermheers
Repoopa-mcp
LanguageOpen Policy Agent
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation