MCP Banking Compliance Helper
# MCP Banking Compliance Helper
[](https://pypi.org/project/mcp-banking-compliance/)
[](https://opensource.org/licenses/MIT)
MCP server providing banking compliance tools for KYC/AML, sanctions screening, and regulatory reporting. Built for Claude Desktop and other MCP-compatible clients.
## Features
**5 Compliance Tools:**
1. **`check_sanctions`** - Screen individuals/entities against OFAC, EU, and UN sanctions lists
2. **`screen_pep`** - Identify Politically Exposed Persons (PEPs) for enhanced due diligence
3. **`assess_transaction_risk`** - Evaluate AML red flags in financial transactions
4. **`generate_sar_report`** - Draft Suspicious Activity Reports for FinCEN filing
5. **`query_regulation`** - Quick reference for Basel III, GDPR, PSD2, KYC, AML requirements
## Installation
```bash
pip install mcp-banking-compliance
```
## Usage
### With Claude Desktop
Add to your `claude_desktop_config.json`:
```json
{
"mcpServers": {
"banking-compliance": {
"command": "mcp-banking-compliance"
}
}
}
```
Restart Claude Desktop. The compliance tools will appear in your tool palette.
### Standalone Server
```bash
# Run the MCP server
mcp-banking-compliance
# Or via Python module
python -m mcp_banking_compliance.server
```
## Examples
### Sanctions Screening
```
User: Check if "Vladimir Ivanovich Petrov" from Russia (born 1975-03-15) is on any sanctions lists.
Claude will use check_sanctions tool:
{
"name": "Vladimir Ivanovich Petrov",
"country": "RU",
"dob": "1975-03-15"
}
Response:
{
"status": "screened",
"subject": "Vladimir Ivanovich Petrov",
"risk_level": "MEDIUM",
"risk_score": 40,
"risk_factors": ["High-risk jurisdiction: RU"],
"recommendation": "REVIEW",
"sanctions_lists_checked": ["OFAC SDN", "EU Sanctions", "UN Consolidated List"]
}
```
### Transaction Risk Assessment
```
User: Assess a $9,500 USD transfer from Afghanistan to a US account.
Claude will use assess_transaction_risk:
{
"amount": 9500,
"sender_country": "AF",
"receiver_country": "US",
"sender_type": "unknown"
}
Response:
{
"risk_level": "HIGH",
"risk_score": 90,
"red_flags": [
"Potential structuring (amount just below reporting threshold)",
"High-risk sender jurisdiction: AF",
"Unknown sender type"
],
"recommendation": "FILE_SAR",
"requires_manual_review": true
}
```
### SAR Report Generation
```
User: Generate a SAR for John Doe (individual) who made suspicious cash deposits totaling $45,000 detected on 2026-02-15.
Claude will use generate_sar_report:
{
"subject_name": "John Doe",
"subject_type": "individual",
"suspicious_activity": "Multiple cash deposits totaling $45,000 structured below reporting thresholds",
"amount": 45000,
"date_detected": "2026-02-15"
}
Response includes:
- Draft SAR narrative
- Filing ID and deadline
- Next steps checklist
```
## Use Cases
**Compliance Officers:**
- Quick sanctions screening during customer onboarding
- Transaction monitoring and red flag detection
- SAR drafting assistance
- Regulatory requirement lookups
**Risk Analysts:**
- Batch transaction risk scoring
- PEP identification in client databases
- Jurisdiction risk assessment
**Developers:**
- Integrate compliance checks into banking applications
- Automate KYC/AML workflows
- Build regulatory reporting dashboards
## Architecture
Built with [FastMCP](https://github.com/jlowin/fastmcp) framework:
- **Tools:** 5 compliance functions exposed to Claude
- **Schema:** Pydantic models for type safety
- **Transport:** stdio (standard MCP protocol)
## Limitations
⚠️ **This is a demonstration/prototype tool for educational purposes.**
- Sanctions lists are **simulated** (not real-time data)
- PEP screening uses **pattern matching** (not actual PEP databases)
- Risk scoring is **rule-based** (not ML-powered)
- **Do NOT use for production compliance** without connecting to licensed data providers
For production use, integrate with:
- Dow Jones Risk & Compliance
- Refinitiv World-Check
- ComplyAdvantage API
- OFAC SDN API
## Roadmap
**v0.2.0:**
- [ ] Real OFAC API integration
- [ ] Fuzzy name matching (Levenshtein distance)
- [ ] Batch screening endpoint
**v0.3.0:**
- [ ] ML-based risk scoring
- [ ] Historical pattern detection
- [ ] CSV export for audit trails
## Contributing
Contributions welcome! This tool was built by [Jerzy Plocha](https://github.com/JerzyPlocha), a banking technologist with 15+ years in financial services.
**Areas for contribution:**
- Add more regulatory frameworks (Dodd-Frank, MiFID II, etc.)
- Improve risk scoring algorithms
- Add unit tests for edge cases
- Connect to real compliance data APIs
## License
MIT License - see [LICENSE](LICENSE) file.
## Author
**Jerzy Plocha**
- 15 years banking technology (Citi, Credit Suisse, Deutsche Bank, Santander)
- Technical reviewer for "Generative AI-Driven Application Development with Java" (Springer Nature)
- GitHub: [@JerzyPlocha](https://github.com/JerzyPlocha)
- LinkedIn: [linkedin.com/in/jerzyplocha](https://www.linkedin.com/in/jerzyplocha)
## Disclaimer
This software is provided "as is" for educational and demonstration purposes. It does not constitute legal, financial, or compliance advice. Users are responsible for ensuring compliance with all applicable laws and regulations. The author assumes no liability for any use of this software in production environments.
TDQS
Scored across 5 tools
Each tool maps to a distinct compliance activity: regulation lookup, sanctions screening, PEP screening, transaction risk scoring, and SAR drafting. The only mild overlap is check_sanctions vs screen_pep, since both screen an individual against watchlists, but the differing list sources (OFAC/EU/UN vs PEP databases) and outputs make them separable.
All names follow a strict verb_noun snake_case pattern (query_regulation, check_sanctions, screen_pep, assess_transaction_risk, generate_sar_report). Verbs vary appropriately by action type while style stays uniform and predictable.
Five tools is well within the sweet spot and each covers one stage of the compliance workflow without redundancy. Nothing feels padded or missing at the granularity implied by the names.
The surface covers lookup, screening, risk assessment, and SAR drafting, but the lifecycle dead-ends: there is no way to fetch, update, or track previously filed SARs, and no KYC/customer due-diligence or adverse-media check despite being core to banking compliance. These gaps would force an agent to work outside the toolset for routine follow-ups.