policy-generator
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
AI Policy & Compliance Generator
An AI-powered tool that auto-generates tailored security framework reports, compliance documentation, IAM access policies, and KPI dashboards based on a specified industry, regulatory framework, and target audience. Built with the Model Context Protocol (MCP) SDK, Gemma 4 via Ollama, and Python.
Features
Generate full security policy documents (ISO 27001, NIST CSF, SOC 2, CIS Controls)
Produce IAM governance reports and access management policies by org type
Output stakeholder-ready formats: Markdown reports, PowerPoint slide decks, and HTML dashboards
Runs fully locally via Ollama — no cloud API keys required
MCP server integration allows Claude Desktop to invoke generation via natural language
Related MCP server: Security Context MCP Server
Architecture
User Prompt (Claude Desktop / CLI)
│
▼
MCP Server (mcp_server.py)
│
▼
Generator Engine (generator.py)
│
┌────┴────┐
▼ ▼
Ollama Report Builder
(Gemma 4) (report_builder.py)
│
┌────────┼────────┐
▼ ▼ ▼
.md .pptx dashboard
report slides (HTML)Requirements
Python 3.10+
Ollama installed and running locally
Gemma 4 model pulled:
ollama pull gemma2:9bMCP SDK:
pip install mcp
Installation
git clone https://github.com/charlie-netdevops/ai-policy-compliance-generator.git
cd ai-policy-compliance-generator
pip install -r requirements.txt
ollama pull gemma2:9bUsage
CLI Mode
python main.py \
--framework ISO27001 \
--industry healthcare \
--audience "IT Security Team" \
--output reportMCP Mode (Claude Desktop)
Add to your claude_desktop_config.json:
{
"mcpServers": {
"policy-generator": {
"command": "python",
"args": ["/path/to/ai-policy-compliance-generator/mcp_server.py"]
}
}
}Then in Claude Desktop:
"Generate an ISO 27001 access control policy for a pharma company targeting the CISO"
Sample Output
Framework : ISO 27001 — Access Control (A.9)
Industry : Pharmaceutical
Audience : CISO / Compliance Team
Generated : 2025-11-14
POLICY: Access Control and Identity Management
----------------------------------------------
1. Purpose
Ensure that access to information systems is authorized, monitored,
and revoked in a timely manner to protect confidentiality, integrity,
and availability of organizational data assets.
2. Scope
Applies to all employees, contractors, and third-party users with
access to [Organization] information systems and networks.
3. Policy Statements
3.1 All user accounts must follow the principle of least privilege.
3.2 Access requests must be approved by the data owner and documented.
3.3 User access reviews must be conducted quarterly...
[truncated — see outputs/sample_iso27001_report.md]Project Structure
ai-policy-compliance-generator/
├── main.py # CLI entry point
├── mcp_server.py # MCP server for Claude Desktop
├── requirements.txt
├── config/
│ └── config.yaml # Model and output settings
├── src/
│ ├── generator.py # Core LLM generation logic
│ ├── report_builder.py # Markdown / PPTX / HTML output
│ └── dashboard.py # KPI dashboard renderer
├── templates/
│ ├── iso27001_template.md
│ ├── iam_policy_template.md
│ └── nist_csf_template.md
├── outputs/
│ └── sample_iso27001_report.md
└── tests/
└── test_generator.pyFrameworks Supported
Framework | Status |
ISO 27001 | ✅ |
NIST CSF | ✅ |
SOC 2 Type II | ✅ |
CIS Controls v8 | ✅ |
PIPEDA (Canada) | ✅ |
Custom | ✅ |
Author
Yash Patel — IT Analyst | Cybersecurity & IAM
LinkedIn | Portfolio
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Compliance frameworks (SOC 2, ISO 27001, CMMC, NIST, more) delivered to AI agents as MCP tools.
Your audit methodology inside Claude: findings, risks, controls and workpapers in your team format.
HIPAA compliance AI agent — scan, grade, SRA, and generate compliance docs.
Governance maturity assessment, compliance gap analysis, and evidence-linked briefs for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceBridges Llama models with Claude Desktop through Ollama, enabling privacy-first local AI operations with 10+ built-in tools for file operations, web search, calculations, and custom model deployment. Features streaming support, hybrid intelligence workflows, and extensive Python ecosystem integration for research, development, and enterprise applications.MIT
- AlicenseAqualityDmaintenanceProvides instant access to authoritative security documentation from organizations like OWASP, NIST, and major cloud providers through natural language semantic search. It enables users to retrieve security best practices, frameworks, and vulnerability information directly from a locally cached knowledge base.41MIT
- AlicenseNot gradedqualityBmaintenanceTurn Claude into an ISO 27001 compliance assistant - controls, risk register, policies, evidence tracking, SoA generation, and full audit workflows in one local encrypted MCP server.112 npm37MIT
- FlicenseNot gradedqualityDmaintenanceEnables natural-language security operations by connecting Wazuh SIEM to Claude Desktop via MCP, allowing querying of alerts, agents, vulnerabilities, and generating security reports with Slack integration.1-