RegGuard
About
AI-powered regulatory compliance checking for financial marketing content across multiple jurisdictions.
Details
- Author
- elnino0009
- Categories
- Productivity, Security, Finance, Marketing, AI, Other
- Tags
- #document
Jump to
Setup
Install RegGuard in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/elnino0009/regguard-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
AI-Enhanced Financial Marketing Compliance Server using Model Context Protocol (MCP)
RegGuard is a sophisticated MCP (Model Context Protocol) server that provides AI-powered regulatory compliance checking for financial marketing content. It leverages OpenAI's GPT-4o-mini model combined with jurisdiction-specific regulatory knowledge to detect violations across multiple financial markets.
RegGuard acts as an intelligent compliance assistant that:
- π Analyzes Marketing Content: Uses AI to scan financial marketing materials for regulatory violations
- π Multi-Jurisdiction Support: Covers Singapore (SG), Hong Kong (HK), UAE (AE), and India (IN) regulations
- β‘ Real-time Compliance Checking: Integrates seamlessly with AI assistants like Claude and Cursor
- π Automatic Disclaimer Insertion: Intelligently places required regulatory disclaimers
- π Audit Trail Generation: Maintains tamper-proof logs of all compliance checks
- π― Contextual AI Analysis: Goes beyond pattern matching to understand regulatory nuances
π§ Key Concepts & Educational Resources
Understanding MCP (Model Context Protocol)
- MCP Official Documentation- Learn about the open standard for connecting AI assistants to external systems
- MCP GitHub Repository- Technical specification and examples
- Building MCP Servers - Anthropic Guide- Step-by-step guide to creating MCP servers
- MAS Guidelines on Fair Dealing (Singapore)- Singapore's financial marketing regulations
- SFC Investment Advertisement Guidelines (Hong Kong)- Hong Kong securities marketing rules
- DFSA Conduct Rules (UAE)- Dubai financial services regulations
- SEBI Guidelines (India)- Securities and Exchange Board of India regulations
- OpenAI API Documentation- Understanding GPT-4o-mini integration
- Financial AI Compliance Overview- Industry insights on AI in finance
- RegTech Explained- Introduction to regulatory technology
- Python 3.8+(Download Python)
- OpenAI API Key(Get API Key)
- Git(Install Git)
# Clone the repository git clone https://github.com/your-username/regguard-mcp.git cd regguard-mcp # Create virtual environment (recommended) python -m venv regguard-env source regguard-env/bin/activate # On Windows: regguard-env\Scripts\activate # Install dependencies pip install -r requirements.txt
# Create .env file echo 'OPENAI_API_KEY="your-openai-api-key-here"' > .env
Important: Never commit your actual API key to GitHub!
# Test server functionality python test_server.py # Test AI integration python test_ai_client.py # Run example usage python example_usage.py
Option 1: Claude Desktop Integration (Recommended)
-Install Claude Desktop(Download here)
- Open Claude Desktop settings
- Navigate to "Developer" > "MCP Servers"
- Add the following configuration:
{ "mcpServers": { "regguard": { "command": "python", "args": ["-m", "src.regguard.server"], "cwd": "/full/path/to/regguard-mcp", "env": { "OPENAI_API_KEY": "your-openai-api-key-here" } } } }
- Start Using:
@regguard Please check this marketing copy for Singapore compliance: "Our investment product guarantees 15% annual returns with zero risk!"
Configure MCP in Workspace: Add to your Cursor workspace settings:
{ "mcp.servers": [ { "name": "regguard", "command": ["python", "-m", "src.regguard.server"], "cwd": "./regguard-mcp" } ] }
- Use in Cursor:
@regguard Analyze this financial ad for Hong Kong compliance violations
from regguard_client import RegGuardClient # Initialize client client = RegGuardClient() client.start_server() # Check compliance result = client.check_compliance( html_content="<p>Guaranteed 20% returns!</p>", jurisdiction="sg" ) print(f"Violations found: {len(result['violations'])}")
1.check_rule_violation- AI Compliance Analysis
Analyzes marketing content for regulatory violations across multiple jurisdictions.
@regguard Check this content for Singapore violations: "Join our exclusive investment club! Guaranteed profits of 25% annually with zero risk to your capital. Limited time offer - only 48 hours remaining!"
- Detailed violation descriptions
- Severity levels (Critical, High, Medium, Low)
- Matched content highlights
- Regulatory references
- Actionable recommendations
2.auto_insert_disclaimer- Smart Disclaimer Placement
Automatically inserts jurisdiction-appropriate disclaimers in optimal locations.
@regguard Add appropriate disclaimers for this Singapore investment ad: <div> <h2>Investment Opportunity</h2> <p>High potential returns available.</p> <button>Invest Now</button> </div>
3.export_audit_trail- Compliance Audit Logs
Generates comprehensive audit reports for compliance teams.
Checks server health and AI capability status.
5.list_supported_markets- Available Jurisdictions
Returns:["sg", "hk", "ae", "in"]
regguard-mcp/ βββ src/regguard/ # Core server code β βββ server.py # Main MCP server β βββ rules_engine.py # AI compliance engine β βββ audit_writer.py # Audit trail management βββ rules/ # Jurisdiction-specific rules β βββ sg.yml # Singapore (MAS) β βββ hk.yml # Hong Kong (SFC) β βββ ae.yml # UAE (DFSA) β βββ in.yml # India (SEBI) βββ audits/ # Compliance audit logs βββ tests/ # Test files βββ example_usage.py # Usage examples βββ requirements.txt # Python dependencies βββ README.md # This file
# 1. Clone this repository git clone https://github.com/your-username/regguard-mcp.git # 2. Navigate to project directory cd regguard-mcp # 3. Create Python virtual environment python -m venv venv source venv/bin/activate # or venv\Scripts\activate on Windows # 4. Install dependencies pip install -r requirements.txt
# 1. Get OpenAI API key from https://platform.openai.com/api-keys # 2. Create .env file echo 'OPENAI_API_KEY="your-actual-api-key"' > .env # 3. Test configuration python test_server.py
Choose your preferred integration method:
- Configure MCP settings as shown above
- Restart Claude Desktop
- Use@regguardcommands
- Add MCP configuration to workspace
- Restart Cursor
- Use@regguardin your code
- Use the provided example scripts
- Implement JSON-RPC communication
- Follow MCP protocol specification
# 1. Modify jurisdiction rules in rules/ directory # 2. Add custom compliance patterns # 3. Extend supported markets if needed # 4. Customize disclaimer templates
Content: "Guaranteed 25% returns with zero risk!" Expected: Multiple critical violations detected
Content: "Investment involves risk. Past performance is not indicative of future results." Expected: No violations, compliance status PASS
- CRITICAL: Serious regulatory breaches requiring immediate attention
- HIGH: Important compliance issues that should be addressed
- MEDIUM: Moderate concerns that may need review
- LOW: Minor issues or best practice recommendations
- Contextual Understanding: Goes beyond keyword matching
- Regulatory Knowledge: Trained on jurisdiction-specific rules
- Confidence Scoring: AI confidence in each violation detection
- Actionable Recommendations: Specific suggestions for fixes
- Fork the repository
- Create a feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request
This project is licensed under the MIT License - see theLICENSEfile for details.
- Ensure.envfile exists with correctOPENAI_API_KEY
- Check that your API key is valid and has credits
- Verify Python dependencies are installed
- Check that port is not in use by another process
- Review error logs in terminal
- Confirm OpenAI API key has sufficient credits
- Check internet connection
- Verify OpenAI service status
- πDocumentation: Review the detailed guides in/docs
- πIssues: Report bugs via GitHub Issues
- π¬Discussions: Join our GitHub Discussions for questions
- π§Contact: Reach out for enterprise support
- Additional jurisdiction support (EU, US, Canada)
- Real-time compliance monitoring dashboard
- Integration with more AI assistants
- Enhanced multilingual support
- Advanced analytics and reporting
Built with β€οΈ for the financial compliance community
RegGuard helps ensure your financial marketing content meets regulatory standards across global markets. Stay compliant, stay confident.
Attested healthcare-finance MCP. Scan medical bills, estimate appeal probability, generate state-specific appeal letters, benchmark commercial rates, look up ICD-10/CPT/NPI/DEA. Every response Ed25519-signed so LLMs can cite + verify.
An assistant API to help find and apply for funding opportunities.
Tax compliance tools for AI agent transactions β calculate US sales tax across 51 jurisdictions, track capital gains (FIFO/LIFO), monitor economic nexus, and generate 1099 reports. Built for autonomous AI-to-AI commerce.
EXIF for AI. AKF embeds trust scores, source provenance, and compliance metadata into every file your AI touches β DOCX, PDF, images, code, and 20+ formats. 9 MCP tools: stamp, inspect, trust, audit, scan, embed, extract, detect. Audit against EU AI Act, SOX, HIPAA, NIST in one command.
Tamper-evident audit logging for AI decisions. Three tools (record_decision, verify_decision, list_decisions) write to a regulator-grade ledger built on AWS S3 Object Lock with 7-year retention. Designed for EU AI Act Article 12 and FCA SS1/23 evidence requirements. Try zero-config: npx audit-ledger-mcp boots in sandbox mode against a public hosted tenant.
Form and govern Wyoming DAO LLCs for AI agents β 16 tools for entity formation, governance, compliance, and director marketplace via MCP.
EU Corporate Sustainability Reporting Directive compliance β ESRS data points, double materiality assessments, audit trails, and XBRL-ready outputs for ESG reporting.
Cross-reference DORA and NIS2 requirements β gap analysis, mapping, and compliance overlap detection for financial services
External evidentiary crystallization layer for AI governance, accountability anchoring, and independently verifiable decision records.
Global e-invoicing compliance: Factur-X, Peppol UBL, CII & more
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


