io.github.KevinRabun/GDPRShiftLeftMCP
Provides Azure Bicep templates for PostgreSQL Flexible Server with GDPR-compliant configurations including zone-redundant HA, Entra ID auth, pgaudit, and geo-redundant backups.
Scans Terraform infrastructure-as-code files for GDPR compliance violations such as missing encryption, access controls, and data residency.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.KevinRabun/GDPRShiftLeftMCPAssess my code for potential GDPR violations"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GDPR Shift-Left MCP Server
A Model Context Protocol (MCP) server that brings GDPR compliance knowledge directly into your IDE, enabling developers and compliance teams to "shift left" ā identifying and addressing data protection requirements early in the development lifecycle.
ā ļø Disclaimer: This tool provides informational guidance only and does not constitute legal advice. Organisations should consult qualified legal counsel for binding GDPR compliance decisions.
Features
š GDPR Knowledge Base (34 Tools)
Article Lookup ā Retrieve any GDPR article by number, search across all 99 articles and 173 recitals
Definitions ā Art. 4 term definitions with contextual explanations
Chapter Navigation ā Browse articles by chapter with full directory
Azure Mappings ā Map GDPR articles to Azure services and controls
š Compliance Workflows
DPIA Assessment ā Assess whether a DPIA is required (EDPB 9-criteria test), generate Art. 35 templates
ROPA Builder ā Generate and validate Art. 30 Records of Processing Activities
DSR Guidance ā Step-by-step workflows for all 7 data subject rights (Arts. 12ā23)
Retention Analysis ā Assess retention policies against Art. 5(1)(e) storage limitation
Controller/Processor Role Classification ā Assess data roles, get obligations, analyze code patterns, generate DPA checklists
šļø Infrastructure & Code Review
Bicep/Terraform/ARM Analyzer ā Scan IaC for GDPR violations (encryption, access, network, residency, logging, retention)
Application Code Analyzer ā Detect PII logging, hardcoded secrets, missing consent checks, data minimisation issues
GDPR Config Validator ā Pass/fail validation in strict or advisory mode
DSR Capability Analyzer ā Detect implementation of all 7 data subject rights (Arts. 15ā22)
Cross-Border Transfer Analyzer ā Identify third-party APIs/SDKs that may transfer data outside EEA, with risk justifications explaining why each provider has its assigned risk level (based on headquarters location, adequacy decisions, and data sensitivity)
Breach Readiness Analyzer ā Assess breach detection, logging, and notification capabilities
Data Flow Analyzer ā Map personal data lifecycle (collection, storage, transmission, deletion)
AST Code Analyzer ā Deep analysis using Abstract Syntax Trees for Python, JavaScript, TypeScript, Java, C#, and Go with:
PII detection in function parameters and variables
Cross-border transfer detection via import analysis (150+ providers with risk justifications)
PII logging violation detection
DSR implementation pattern verification
Data flow tracking and call graph analysis
š Guided Prompts (8 Expert Prompts)
Gap Analysis, DPIA Assessment, Compliance Roadmap, Data Mapping
Incident Response, Azure Privacy Review, Vendor Assessment, Cross-Border Transfers
š Azure Bicep Templates (19 Templates)
Storage Account ā CMK encryption, Private Endpoint, lifecycle policies (Art. 5, 25, 32, 44-49)
Key Vault ā HSM-backed Premium, purge protection, RBAC (Art. 25, 32)
Azure SQL ā Entra-only auth, TDE, auditing (Art. 25, 32)
Log Analytics ā 365-day retention, saved GDPR queries for breach/access/erasure tracking (Art. 5(2), 30, 33)
Cosmos DB ā EU-only regions, strong consistency, continuous backup, TTL-enabled ROPA container (Art. 25, 32, 44-49)
App Service ā Managed identity, TLS 1.2, VNet integration, staging slot, full audit logging (Art. 25, 32)
Virtual Network ā 3 subnets, NSGs with least-privilege rules, service endpoints (Art. 25, 32, 5(1)(f))
Container Apps ā Internal ingress, mutual TLS, zone redundancy, managed identity (Art. 25, 32)
Monitor Alerts ā DPO action group, 4 scheduled alerts for sign-in/exfiltration/escalation/Key Vault (Art. 33, 34, 32)
PostgreSQL Flexible Server ā Zone-redundant HA, Entra ID auth, pgaudit, geo-redundant backups (Art. 25, 32, 5(1)(e))
Service Bus Premium ā CMK encryption, GDPR queues for DSR/consent/breach/retention (Art. 25, 32, 5(1)(f))
AKS ā Private cluster, Azure CNI, Defender for Containers, workload identity, network policies (Art. 25, 32, 5(1)(f))
Confidential Ledger ā TEE-backed tamper-proof audit trail for GDPR accountability records (Art. 5(2), 30, 33)
Confidential VM ā AMD SEV-SNP encrypted memory, vTPM, secure boot, ephemeral OS disk (Art. 25, 32, 5(1)(f))
Entra ID Configuration ā Audit log routing, sign-in monitoring, Conditional Access checklist (Art. 32, 5(2))
Azure Policy ā EU region restriction, CMK enforcement, tag requirements, HTTPS-only (Art. 25, 32, 44)
Defender for Cloud ā All Defender plans, security contacts, auto-provisioning, GDPR compliance dashboard (Art. 32, 33)
API Management ā Internal VNet, TLS 1.2+, rate limiting, data masking policies, audit logging (Art. 25, 32, 30)
Front Door with WAF ā OWASP rules, EU/EEA geo-filtering, bot protection, rate limiting (Art. 25, 32, 44)
Related MCP server: pageguard-mcp
Quick Start
Prerequisites
Python 3.10+
VS Code with GitHub Copilot
Installation
Install from the MCP Registry (recommended)
The server is published to the MCP Registry. You can install it directly in VS Code:
Open the Extensions view (
Ctrl+Shift+X)Type
@mcp GDPRin the search fieldClick Install on "GDPR Shift-Left Compliance"
Note: The VS Code MCP gallery shows a curated subset of servers by default. If the server doesn't appear, add this to your VS Code User Settings (
Ctrl+,ā Open Settings JSON):"chat.mcp.gallery.serviceUrl": "https://registry.modelcontextprotocol.io"This points VS Code at the full MCP Registry (5,000+ servers) instead of GitHub's curated list.
Install via uvx (no clone needed)
uvx gdpr-shift-left-mcpInstall from source
# Clone the repository
git clone https://github.com/KevinRabun/GDPRShiftLeftMCP.git
cd GDPRShiftLeftMCP
# Install in development mode
pip install -e ".[dev]"VS Code Integration
The repository includes .vscode/mcp.json for automatic MCP server registration. After installation, the GDPR tools appear in GitHub Copilot's tool list.
To configure manually, add to your VS Code settings:
{
"mcp": {
"servers": {
"gdpr-shift-left-mcp": {
"type": "stdio",
"command": "python",
"args": ["-m", "gdpr_shift_left_mcp"]
}
}
}
}Running the Server
# Run directly
python -m gdpr_shift_left_mcp
# Or via the installed entry point
gdpr-shift-left-mcpTool Reference
Tool | Description | GDPR Articles |
| Retrieve a GDPR article by number | All |
| List all articles in a chapter | All |
| Full-text search across GDPR | All |
| Retrieve a recital by number | All |
| Azure services for a GDPR article | All |
| Art. 4 term definition | Art. 4 |
| List all definitions | Art. 4 |
| Search definitions | Art. 4 |
| Check if DPIA is required | Art. 35 |
| Generate DPIA document | Art. 35 |
| DPIA area guidance | Art. 35ā36 |
| Art. 30 ROPA template | Art. 30 |
| Validate ROPA completeness | Art. 30 |
| ROPA field requirements | Art. 30 |
| DSR handling guidance | Arts. 12ā23 |
| DSR fulfilment workflow | Arts. 12ā23 |
| DSR response timelines | Art. 12(3) |
| Scan IaC for GDPR issues | Art. 25, 32, 44 |
| Scan app code for GDPR issues | Art. 5, 25, 32 |
| Pass/fail GDPR validation | All |
| Assess retention policy | Art. 5(1)(e) |
| Category-specific retention | Art. 5(1)(e) |
| Deletion capability checklist | Art. 17 |
| Assess data controller/processor role | Art. 4, 24, 26, 28 |
| Role-specific GDPR obligations | Art. 24, 26, 28 |
| Detect controller/processor code patterns | Art. 4, 24, 28 |
| Art. 28 DPA agreement checklist | Art. 28 |
| Common role classification scenarios | Art. 4, 24, 26, 28 |
| Detect DSR implementation (access, erase, portability, etc.) | Arts. 15ā22 |
| Detect third-party APIs/SDKs with risk justifications | Arts. 44ā49 |
| Assess breach detection, logging, and notification capabilities | Arts. 33ā34 |
| Map personal data lifecycle (collection, storage, transmission, deletion) | Art. 30 |
| Deep AST analysis for Python/JS/TS/Java/C#/Go (PII, cross-border, DSR) | Art. 5, 25, 32, 44 |
| Get AST analyzer supported languages and features | All |
Architecture
src/gdpr_shift_left_mcp/
āāā __init__.py # Package init
āāā __main__.py # Entry point
āāā server.py # FastMCP server + prompt registration
āāā disclaimer.py # Legal disclaimer utility
āāā data_loader.py # Online GDPR data fetching + caching
āāā tools/
ā āāā __init__.py # Tool registration (34 tools)
ā āāā articles.py # Article/recital/search tools
ā āāā definitions.py # Art. 4 definition tools
ā āāā dpia.py # DPIA assessment tools
ā āāā ropa.py # ROPA builder tools
ā āāā dsr.py # Data subject rights tools
ā āāā analyzer.py # IaC + app code analyzer
ā āāā ast_analyzer.py # AST-based deep code analysis
ā āāā retention.py # Retention/deletion tools
ā āāā role_classifier.py # Controller/processor role classification
āāā prompts/
ā āāā __init__.py # Prompt loader
ā āāā *.txt # 8 expert prompt templates
āāā templates/
āāā __init__.py # Template loader
āāā *.bicep # GDPR-aligned Azure Bicep templatesTesting
# Run all tests
pytest
# Run with coverage
pytest --cov=gdpr_shift_left_mcp --cov-report=html
# Run judges (end-to-end evaluators)
python -m tests.evaluator.run_judgesOnline Updates
The server fetches GDPR data from a configurable online source, with local caching:
Source URL: Set via
GDPR_SOURCE_URLenvironment variableCache TTL: Default 1 hour (configurable via
GDPR_CACHE_TTL)Cache directory:
__gdpr_cache__/(configurable viaGDPR_CACHE_DIR)Fallback: Built-in data if online fetch fails
Contributing
See CONTRIBUTING.md for guidelines. This project follows Git Flow branching:
feature/<name>for new featuresbugfix/<name>for fixesrelease/<version>for releaseshotfix/<name>for production fixes
All PRs must pass automated tests and judges before merging.
License
MIT ā see LICENSE for details.
Acknowledgements
Architecture inspired by FedRAMP20xMCP
GDPR text from EUR-Lex
EDPB guidelines from edpb.europa.eu
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceEnables users to scan software packages for data exfiltration and security threats directly within their IDE across npm, PyPI, Cargo, and Maven ecosystems. This tool helps ensure the safety of project dependencies by identifying potential risks before they are integrated.Last updatedMIT

pageguard-mcpofficial
AlicenseAqualityDmaintenanceScan any project or website for privacy compliance issues directly in your AI coding tool. Detects tracking tech, cookies, and third-party data collection. Works in Claude Code, Cursor, and Windsurf.Last updated3451MIT- AlicenseAqualityBmaintenanceProvides comprehensive GDPR compliance assessment tools for AI/ML systems, including lawful basis determination, DPIA generation, and data subject rights handling. It also crosswalks GDPR requirements to EU AI Act obligations with AI-specific considerations throughout.Last updated629MIT
- AlicenseAqualityCmaintenanceProvides AI-powered access to the largest EU GDPR enforcement decisions database, enabling semantic search, GDPR article lookup, and enforcement statistics across all EU/EEA Data Protection Authorities.Last updated41MIT
Related MCP Connectors
Classify data safety before storing or sharing. GDPR, HIPAA, PCI-DSS, CCPA. AI-powered.
Threat modeling, code/cloud/pipeline scanning, shadow-AI discovery, compliance checks and fixes.
Compliance & security scan for your app: secrets, exposed files, headers, privacy, AI-disclosure.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/KevinRabun/GDPRShiftLeftMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server