MCP.so
登录

Policy MCP Server

@TangoIndiaPapa

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

TangoIndiaPapa

关于 Policy MCP Server

Model Context Protocol Server using FastMCP 2.0 to enforce policies

Policy MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "policy-mcp-server": {
      "command": "uv",
      "args": [
        "venv",
        ".venv"
      ]
    }
  }
}

Policy MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Policy MCP Server?

A Model Context Protocol (MCP) server built with FastMCP that enforces policies via Open Policy Agent (OPA). It integrates OPA’s REST API for decision-making and is designed for AI agents or MCP-compatible clients needing compliance checks.

How to use Policy MCP Server?

Install dependencies with uv, copy .env.example to .env, then run python src/server.py. Configure it as an MCP server in VS Code settings or launch with Docker Compose for OPA. The tool enforce_policy_opa checks whether an action complies with policies defined in Rego.

Key features of Policy MCP Server

  • FastMCP compliant and modular architecture
  • Policy enforcement via OPA REST API
  • Rego‑based policy files and data
  • Easy to extend with new tools
  • XAI‑compliant and secure by design
  • Supports Docker, Dev Container, and VS Code

Use cases of Policy MCP Server

  • Enforce content policies on LLM‑generated prompts
  • Validate agent actions against organizational rules
  • Test policy rules interactively via MCP chat
  • Integrate compliance checks into AI agent workflows

常见问题

1

How do I set up OPA?

Run `docker compose -f docker-compose-opa.yaml up -d` after creating a Docker network. OPA listens on port 8181 and loads policies from `config/policy.rego` and `config/policy.json`.

2

How do I configure the server for VS Code?

Add the server to your VS Code `settings.json` under `

评论

其他 分类下的更多 MCP 服务器