MCP - Model Context Protocol server for OPA #697
Replies: 2 comments 3 replies
-
Initial implementation of fastMCP 2.0 for MCP server for enforcing policies. It's just using hard coded policy file and haven't implemented OPA yet. |
Beta Was this translation helpful? Give feedback.
-
Hi there @TangoIndiaPapa, thanks for taking the time to look into this. I am not aware of any ongoing work on this topic. OPA is typically used where the results of policy evaluation must be verifiably correct. For example, if someone is granted access to something they should not have been granted access to, we need to be able to review that decision in future and understand why it happened. This is a requirement of various legal and compliance requirements OPA users commonly face. That said, I can see that this something interesting for decisions where this is not required, and where performance of external API calls is unproblematic. It might be something we could feature on https://www.openpolicyagent.org/ecosystem when you've had more time to look into the project. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, any plan or anyone writing official MCP server for OPA?
I'm starting to investigate MCP server for policy enforcement and don't want to reinvent the wheel if someone is already working on it.
I just started to investigate the following url: https://github.com/modelcontextprotocol/python-sdk
My plan is to have a "Policy MCP Server" that uses OPA to check before it allows further action.
Currently, I'm just using a yaml file that list some key policies like "do not print PII data in log" but could imagine that a large company may need to use RAG to get entire company's policy statement or use some combination that list key policies in yaml file that gets loaded during the init and the rest is searched against RAG based on some key words.
Beta Was this translation helpful? Give feedback.
All reactions