Policy MCP Server
@TangoIndiaPapa
Policy MCP Server について
Model Context Protocol Server using FastMCP 2.0 to enforce policies
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"policy-mcp-server": {
"command": "uv",
"args": [
"venv",
".venv"
]
}
}
}ツール
ツールは検出されませんでした
ツールは 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
FAQ from Policy MCP Server
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.
How do I configure the server for VS Code?
Add the server to your VS Code settings.json under `
「その他」の他のコンテンツ
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Codelf
unbugA search tool helps dev to solve the naming things problem.
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
コメント