Skip to content
MCP server
Registry

GDPR Shift-Left Compliance MCP Server

GDPR compliance MCP server - article lookup, DPIA, ROPA, DSR, IaC analysis, Bicep templates.

GDPR Shift-Left Compliance scores 53 (Fair), licensed MIT and written in Python. It installs as a local process. It declares 34 tools. Filed under Cloud. GitHub shows 2 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by kevinrabunMITPython2 stars
Trust score
53Fair
Trust score 53 of 100, Fair

Fair trust

53 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 53 comes from

22 + 5 + 2 + 10 + 4 + 10 = 53. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance5 / 20

How recently the repository saw a commit or release.

Maintenance: 5 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "kevinrabun-gdprshiftleftmcp": {      "command": "uvx",      "args": [        "gdpr-shift-left-mcp"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools34Tool docs quality grade D

All capabilities

About

GDPR Shift-Left MCP Server

Tests & Judges PyPI version Python versions License: MIT

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)

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:

  1. Open the Extensions view (Ctrl+Shift+X)
  2. Type @mcp GDPR in the search field
  3. Click 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-mcp

Install 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-mcp

Tool Reference

ToolDescriptionGDPR Articles
get_articleRetrieve a GDPR article by numberAll
list_chapter_articlesList all articles in a chapterAll
search_gdprFull-text search across GDPRAll
get_recitalRetrieve a recital by numberAll
get_azure_mappingAzure services for a GDPR articleAll
get_definitionArt. 4 term definitionArt. 4
list_definitionsList all definitionsArt. 4
search_definitionsSearch definitionsArt. 4
assess_dpia_needCheck if DPIA is requiredArt. 35
generate_dpia_templateGenerate DPIA documentArt. 35
get_dpia_guidanceDPIA area guidanceArt. 35โ€“36
generate_ropa_templateArt. 30 ROPA templateArt. 30
validate_ropaValidate ROPA completenessArt. 30
get_ropa_requirementsROPA field requirementsArt. 30
get_dsr_guidanceDSR handling guidanceArts. 12โ€“23
generate_dsr_workflowDSR fulfilment workflowArts. 12โ€“23
get_dsr_timelineDSR response timelinesArt. 12(3)
analyze_infrastructure_codeScan IaC for GDPR issuesArt. 25, 32, 44
analyze_application_codeScan app code for GDPR issuesArt. 5, 25, 32
validate_gdpr_configPass/fail GDPR validationAll
assess_retention_policyAssess retention policyArt. 5(1)(e)
get_retention_guidanceCategory-specific retentionArt. 5(1)(e)
check_deletion_requirementsDeletion capability checklistArt. 17
assess_controller_processor_roleAssess data controller/processor roleArt. 4, 24, 26, 28
get_role_obligationsRole-specific GDPR obligationsArt. 24, 26, 28
analyze_code_for_role_indicatorsDetect controller/processor code patternsArt. 4, 24, 28
generate_dpa_checklistArt. 28 DPA agreement checklistArt. 28
get_role_scenariosCommon role classification scenariosArt. 4, 24, 26, 28
analyze_dsr_capabilitiesDetect DSR implementation (access, erase, portability, etc.)Arts. 15โ€“22
analyze_cross_border_transfersDetect third-party APIs/SDKs with risk justificationsArts. 44โ€“49
analyze_breach_readinessAssess breach detection, logging, and notification capabilitiesArts. 33โ€“34
analyze_data_flowMap personal data lifecycle (collection, storage, transmission, deletion)Art. 30
analyze_code_astDeep AST analysis for Python/JS/TS/Java/C#/Go (PII, cross-border, DSR)Art. 5, 25, 32, 44
get_ast_capabilitiesGet AST analyzer supported languages and featuresAll

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 templates

Testing

# 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_judges

Online Updates

The server fetches GDPR data from a configurable online source, with local caching:

  • Source URL: Set via GDPR_SOURCE_URL environment variable
  • Cache TTL: Default 1 hour (configurable via GDPR_CACHE_TTL)
  • Cache directory: __gdpr_cache__/ (configurable via GDPR_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 features
  • bugfix/<name> for fixes
  • release/<version> for releases
  • hotfix/<name> for production fixes

All PRs must pass automated tests and judges before merging.

License

MIT โ€” see LICENSE for details.

Acknowledgements

Frequently asked questions

What is GDPR Shift-Left Compliance MCP Server?

GDPR compliance MCP server - article lookup, DPIA, ROPA, DSR, IaC analysis, Bicep templates.

How do I install GDPR Shift-Left Compliance MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. GDPR Shift-Left Compliance MCP Server runs locally from the PyPI package gdpr-shift-left-mcp with the command uvx gdpr-shift-left-mcp.

Is GDPR Shift-Left Compliance MCP Server free and open source?

Yes. GDPR Shift-Left Compliance MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does GDPR Shift-Left Compliance MCP Server support remote (HTTP) connections?

No remote endpoint is listed for GDPR Shift-Left Compliance MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does GDPR Shift-Left Compliance MCP Server provide?

GDPR Shift-Left Compliance MCP Server provides 34 tools, including analyze_application_code, analyze_breach_readiness, analyze_code_ast, and analyze_code_for_role_indicators. See the full tool list for descriptions and parameters.

How is GDPR Shift-Left Compliance MCP Server's trust score calculated?

GDPR Shift-Left Compliance MCP Server scores 53 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

โ€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server