DPIA MCP Lite
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.
DPIA MCP Lite
An MCP server that helps an AI agent carry out a Data Protection Impact Assessment (DPIA) for Norwegian projects: it scans a codebase for personal-data processing, scores the risk, checks GDPR compliance against an organisation baseline, and generates a structured DPIA document — with the relevant Norwegian and EU legal sources embedded.
No ML dependencies. The legal knowledge base and templates are plain Python data, so the image stays small and the server runs without any external API.
Built on the MCP Python SDK 2.x (MCPServer with @mcp.tool() decorators). Both stdio and Streamable HTTP transports are supported.
Quick start
uv venv && uv pip install -e .
TRANSPORT=http HTTP_PORT=8000 python -m dpia_mcp_lite.serverOr with Docker:
docker compose up --build # http://localhost:8000/mcpAdd to an MCP client:
{
"servers": {
"dpia-lite": {
"type": "http",
"url": "http://localhost:8000/mcp"
}
}
}For stdio clients, run python -m dpia_mcp_lite.server with TRANSPORT=stdio (the default).
Related MCP server: io.github.KevinRabun/GDPRShiftLeftMCP
Tools
Tool | Purpose |
| Scan a directory for personal-data processing, storage, third-party integrations, tracking, encryption and access control |
| Same analysis on code passed as strings |
| Risk score from likelihood × impact × data sensitivity, per Datatilsynet methodology |
| Check a described processing activity against GDPR requirements |
| Structured DPIA document pre-filled with the project's findings |
| Concrete measures for identified risks |
| Query the embedded Norwegian/EU legal knowledge base |
| The organisation's baseline: mandatory frameworks, required controls, forbidden patterns |
| Look up a specific Norwegian act or provision |
Resources: legal://norway/overview, legal://norway/personopplysningsloven, legal://norway/gdpr, legal://eu/ai-act.
Prompt: dpia_assessment — a ready-made DPIA prompt for a named project.
Organisation baseline
The server reads a baseline profile that decides which frameworks are mandatory, which controls must be present, which patterns are forbidden, and when a DPIA is required.
Resolution order (first hit wins):
DPIA_ORG_PROFILE— path to a profile JSON/app/org-profile.json— baked into the imageorg-profile.jsonin the project root — local developmentBuilt-in default — always usable, never fails
The tracked org-profile.json is a neutral public-sector sample. Replace it with your own, or keep your real baseline out of the repository:
# .gitignore already covers *.local.json
cp org-profile.json org-profile.local.json # edit freely
export DPIA_ORG_PROFILE=./org-profile.local.jsonAny field you omit is inherited from the built-in default, so a profile can be as small as {"name": "Acme AS"}.
Configuration
Variable | Default | Purpose |
|
|
|
|
| Bind address (HTTP) |
|
| Listen port (HTTP) |
| – | Informational; logged at startup |
| – | Path to an alternative baseline |
| – | Space-separated FQDNs for DNS-rebinding protection. Set this in production behind a reverse proxy, or the guard stays disabled |
Health probes: /health, /healthz, /ready.
Legal sources
The knowledge base covers GDPR, personopplysningsloven, ePrivacy, eIDAS, NIS2 (digitalsikkerhetsloven), sikkerhetsloven, helsepersonelloven, finanstilsynet requirements and the EU AI Act, with references to Lovdata and Datatilsynet.
The embedded text is a convenience copy, not legal advice. Verify every citation against Lovdata before relying on it in a decision.
Limitations
The code analyser uses pattern matching, not dataflow analysis. It finds signals worth reviewing, not a definitive inventory.
The risk calculator implements one methodology. It does not replace a documented assessment by the data protection officer.
A DPIA is a legal process with documentation, consultation and sign-off. This tool prepares the draft; it does not approve anything.
Development
uv pip install -e ".[dev]"
ruff check src
mypy srcscripts/smoke-dpia.mjs drives the HTTP surface end to end:
node scripts/smoke-dpia.mjs http://127.0.0.1:8000Licence
MIT — see LICENSE.
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
Your GDPR register in your AI assistant: RoPA, systems, vendors, DSRs, breaches, risks.
Deterministic, sourced EU compliance checks: NIS2, DORA, GDPR, Cyber Resilience Act and AI Act.
EU AI Act and GDPR checks with sources: classify an AI system, trace each duty, find the supervisor.
EU AI Act + GDPR compliance scanner. One call, no arguments, 10 seconds. 22 AI frameworks detected.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides 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.67 npm47 PyPI1MIT
- AlicenseBqualityDmaintenanceBrings GDPR compliance knowledge directly into your IDE, enabling developers to identify and address data protection requirements early in the development lifecycle.3480 PyPI2MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first AI compliance scanner via Model Context Protocol, scanning codebases for violations of DPDPA 2023, RBI FREE-AI, SEBI AI/ML, and the EU AI Act.82 PyPI1Apache 2.0
- AlicenseAqualityDmaintenanceScans codebases for AI system usage and generates EU AI Act compliance reports.462 npmMIT