Skip to main content

mcp-server-privacy-compliance-assistant

CI Release License Python Status

An independent, community-maintained open-source MCP server that gives your AI assistant the data privacy rules of 70 jurisdictions. It answers by where people live and where their data goes: what a law requires, what a consent banner must do, whether a cross-border transfer is allowed and how, and what the strictest common bar is when you launch in several places at once. It doesn't assume GDPR everywhere. Each answer comes from the regional law that applies: EU GDPR and each member state, UK GDPR, Swiss FADP, CCPA/CPRA and the other US state laws, PIPEDA and Quebec Law 25, LGPD, PIPL, DPDP, APPI, PIPA, PDPA, the Australian Privacy Act, POPIA, UAE PDPL, DIFC, ADGM and Saudi PDPL.

Statutory deadlines, thresholds and penalties come from a bundled, versioned registry where every record cites its official source and the date it was last checked. They never come from a model's memory.

Quick tour: connect with uvx, look up Brazil's LGPD, consent rules for California and Germany, cross-border transfers and a four-region launch comparison

⚠️ Disclaimer & Legal Notice

  • Not legal advice. Every tool result carries "advisory_only": true. Results are operational guidance for engineering and product teams, not legal counsel. Confirm with qualified counsel before you rely on them.
  • Experimental release. This is an experimental, community-maintained project, provided "as-is" without warranties of any kind. Laws change: check each record's source_url and last_verified date.
  • No official affiliation. This project is not affiliated with, endorsed, sponsored, or certified by any data protection authority, legislature or government named in it. See NOTICE.

What it does

Tool Ask it Returns
get_jurisdiction_compliance "What does LGPD require?", "What applies to children's data in Quebec?" Framework, regulator, consent model, lawful bases, DSAR deadline, breach notification window, DPO conditions, mandatory disclosures and UI controls, children's age threshold, maximum penalty, transfer rules, effective date and sources. data_category: standard, sensitive or children
evaluate_cross_border_transfer "Can we host UK user data in the US?", "Can our Chinese subsidiary send HR data to Germany?" adequacy_status (adequate, conditional, restricted or prohibited), the legal mechanisms required (EU SCCs, UK IDTA, EU-US Data Privacy Framework, China CAC security assessment and so on), a risk_level and warnings
get_consent_requirements "What does our cookie banner need in France?", "Do we have to honor GPC in Colorado?" opt_in_required, opt_out_link_required, honor_gpc_signal and the elements the banner must show, for essential, analytics, advertising or ai_training
compare_jurisdictions "We launch in the UK, EU, California and Brazil: what's the strictest bar?" A side-by-side matrix, the strictest overlapping value per field (the highest common denominator), which jurisdictions set it, and the fields that differ

Resource: privacy://registry/frameworks is the index of every jurisdiction, with its code, framework, regulator, phase, status, effective date, source URL and last-verified date.

How codes are resolved

  • Codes: ISO 3166-1 alpha-2 (GB, DE, BR, IN), ISO 3166-2 (US-CA, CA-QC), plus EU, US-FEDERAL, AE-DIFC and AE-ADGM. UK and EL are accepted for GB and GR. CA is Canada and US-CA is California.
  • Fragmented federal systems: US on its own returns needs_subnational_resolution with the list of states that have a privacy law, so the assistant asks which state applies. US-FEDERAL holds the federal sectoral rules (HIPAA, COPPA, GLBA, FTC Act).
  • Subdivisions without a record of their own use their country's record and say so (US-WY → US-FEDERAL, CA-ON → PIPEDA).
  • Unmapped countries fall back to the EU GDPR baseline as the high-water mark, with fallback_applied: true so the assistant says it isn't local law.
  • EU member states inherit the GDPR baseline and override what national law changes: regulator, digital age of consent, Germany's DPO threshold, France's analytics-cookie exemption.

Coverage

Phase 1: Core markets

Code Law Regulator DSAR Breach (regulator) Children Status
EU GDPR + ePrivacy Directive National authorities, EDPB 30 days 72 h 16 in force
GB UK GDPR, DPA 2018 (as amended by the DUAA 2025), PECR Information Commission 30 days 72 h 13 in force
CH FADP (nDSG) Federal Data Protection and Information Commissioner (FDPIC) 30 days none fixed — in force
US-FEDERAL HIPAA, COPPA, GLBA, FERPA, FTC Act §5, DOJ bulk data rule, PADFA Federal Trade Commission 30 days 60 days 13 in force
US-CA CCPA / CPRA California Privacy Protection Agency 45 days 45 days 16 in force
CA PIPEDA Office of the Privacy Commissioner of Canada (OPC) 30 days none fixed 13 in force
CA-QC Quebec Law 25 (private sector act) Commission d'accès à l'information du Québec (CAI) 30 days none fixed 14 in force
BR LGPD Agência Nacional de Proteção de Dados (ANPD) 15 days 72 h 12 in force

All 27 EU member states have their own record, inheriting the GDPR baseline with their national authority and digital age of consent (GDPR Art. 8): AT 14, BE 13, BG 14, CY 14, CZ 15, DE 16, DK 15, EE 13, ES 14, FI 13, FR 15, GR 15, HR 16, HU 16, IE 16, IT 14, LT 14, LU 16, LV 13, MT 13, NL 16, PL 16, PT 13, RO 16, SE 13, SI 15, SK 16.

Phase 2: APAC, Middle East and Africa

Code Law Regulator DSAR Breach (regulator) Children Status
CN PIPL, Data Security Law, Cybersecurity Law Cyberspace Administration of China (CAC) none fixed 1 h 14 in force
IN DPDP Act 2023 + DPDP Rules 2025 Data Protection Board of India (DPB) 90 days 72 h 18 from 2027-05-13
JP APPI Personal Information Protection Commission (PPC) none fixed none fixed 16 in force
KR PIPA Personal Information Protection Commission (PIPC) 10 days 72 h 14 in force
SG PDPA Personal Data Protection Commission (PDPC) 30 days 72 h 13 in force
AU Privacy Act 1988 Office of the Australian Information Commissioner (OAIC) 30 days none fixed 15 in force
ZA POPIA Information Regulator (South Africa) (IRSA) 30 days none fixed 18 in force
AE UAE PDPL (Federal Decree-Law 45/2021) UAE Data Office none fixed none fixed — in force
AE-DIFC DIFC Data Protection Law 2020 Commissioner of Data Protection (DIFC Commissioner) 30 days none fixed — in force
AE-ADGM ADGM Data Protection Regulations 2021 Office of Data Protection 60 days 72 h — in force
SA Saudi PDPL Saudi Data and Artificial Intelligence Authority (SDAIA) 30 days 72 h — in force

Phase 3: US state privacy laws (25 states, with California above)

Code Law In force Honor GPC Sensitive data DSAR Breach (regulator)
US-AL Alabama Personal Data Protection Act from 2027-05-01 no opt-in 45 days 45 days
US-CO Colorado Privacy Act 2023-07-01 yes opt-in 45 days 30 days
US-CT Connecticut Data Privacy Act 2023-07-01 yes opt-in 45 days 60 days
US-DE Delaware Personal Data Privacy Act 2025-01-01 yes opt-in 45 days 60 days
US-FL Florida Digital Bill of Rights 2024-07-01 no opt-in 45 days 30 days
US-IA Iowa Consumer Data Protection Act 2025-01-01 no opt-out 90 days none fixed
US-IN Indiana Consumer Data Protection Act 2026-01-01 no opt-in 45 days 45 days
US-KY Kentucky Consumer Data Protection Act 2026-01-01 no opt-in 45 days none fixed
US-LA Louisiana Data Privacy Act from 2027-01-01 no opt-in 45 days 70 days
US-MD Maryland Online Data Privacy Act 2025-10-01 no opt-in 45 days 45 days
US-MN Minnesota Consumer Data Privacy Act 2025-07-31 yes opt-in 45 days none fixed
US-MT Montana Consumer Data Privacy Act 2024-10-01 yes opt-in 45 days none fixed
US-NE Nebraska Data Privacy Act 2025-01-01 yes opt-in 45 days none fixed
US-NH New Hampshire Data Privacy Act 2025-01-01 yes opt-in 45 days none fixed
US-NJ New Jersey Data Privacy Act 2025-01-15 yes opt-in 45 days none fixed
US-NY SHIELD Act 2019-10-23 no notice none fixed none fixed
US-OK Oklahoma consumer data privacy act from 2027-01-01 no opt-in 45 days none fixed
US-OR Oregon Consumer Privacy Act 2024-07-01 yes opt-in 45 days 45 days
US-RI Rhode Island Data Transparency and Privacy Protection Act 2026-01-01 no opt-in 45 days none fixed
US-TN Tennessee Information Protection Act 2025-07-01 no opt-in 45 days none fixed
US-TX Texas Data Privacy and Security Act 2024-07-01 yes opt-in 45 days 30 days
US-UT Utah Consumer Privacy Act 2023-12-31 no opt-out 45 days none fixed
US-VA Virginia Consumer Data Protection Act 2023-01-01 no opt-in 45 days none fixed
US-VT Vermont Data Privacy and Online Surveillance Act from 2028-01-01 yes opt-in 45 days 14 days

Values are as of the registry's last_updated date (2026-12-02). Each record was checked against its official sources on its last_verified date. Where a portal blocked automated access or a point could only be confirmed from secondary sources, the data file's open_questions list says so (128 in total): read them before relying on those fields, and send corrections with the registry correction form.

Architecture

flowchart LR
    subgraph package["privacy-mcp: read-only, offline"]
        meta[("meta.json<br/>groups, consent profiles,<br/>US routing")] --> registry["registry.py<br/>routing, inheritance,<br/>transfers, comparison"]
        records[("jurisdictions/*.json<br/>one record per law,<br/>sources + last_verified")] --> registry
        tools["server.py<br/>4 tools, 1 resource<br/>advisory_only on every result"] --> registry
        tools --> security["security.py<br/>input caps, audit log"]
    end
    client["MCP client"] <-- "stdio" --> tools

Quickstart

You need uv (it installs Python 3.11+ for you if needed). The registry is part of the package, so there is nothing to download or build. Add the server to your client and it starts with uvx mcp-server-privacy-compliance-assistant.

Connect a client

Ready-made configs are in examples/.

Client Example Where it goes
Claude Desktop claude_desktop_config.json Settings > Developer > Edit Config
Cursor cursor_mcp.json .cursor/mcp.json (project) or ~/.cursor/mcp.json
VS Code vscode_mcp.json .vscode/mcp.json (project), or MCP: Open User Configuration for every project
Claude Code claude mcp add privacy -- uvx mcp-server-privacy-compliance-assistant Run it in a terminal
Any client, via Docker docker_mcp.json Your client's MCP config
{
  "mcpServers": {
    "privacy": {
      "command": "uvx",
      "args": ["mcp-server-privacy-compliance-assistant"]
    }
  }
}

VS Code uses "servers" instead of "mcpServers" and adds "type": "stdio" to the entry. Desktop apps may not see your shell's PATH: if the server does not start, replace "uvx" with the full path from which uvx (where uvx on Windows).

Then ask, for example: "What does our cookie banner need for users in France and California?", "Can we move our Brazilian customer database to AWS in Virginia?" or "We launch in Japan, Korea and India: compare the breach notification rules."

Use it with the security assistants

The OWASP ASVS and PCI DSS assistants cover application security and payment card data. Connect all three for a product review that covers privacy law, secure design and card data: see examples/all_servers.json.

Install from source

git clone https://github.com/itssaeedyari/mcp-server-privacy-compliance-assistant.git
cd mcp-server-privacy-compliance-assistant
uv sync
uv run privacy-mcp   # prints "loaded 70 jurisdictions" on stderr, then waits for a client

In a client config, run it with "command": "uv", "args": ["run", "--directory", "/ABSOLUTE/PATH/TO/mcp-server-privacy-compliance-assistant", "privacy-mcp"].

Run with Docker

{
  "mcpServers": {
    "privacy": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "--network", "none", "--read-only", "--cap-drop", "ALL",
               "--security-opt", "no-new-privileges",
               "ghcr.io/itssaeedyari/mcp-server-privacy-compliance-assistant:latest"]
    }
  }
}

The image needs no network, no writable filesystem and no mounted folders. Pin a version tag (for example :0.1.1) instead of latest for reproducible setups.

Configuration

Variable Default Effect
PRIVACY_MCP_AUDIT_LOG unset Set to 1 to log one JSON line per tool call to stderr: tool name, status and latency. Never inputs or results

Example result

evaluate_cross_border_transfer("GB", "US"), shortened:

{
  "advisory_only": true,
  "adequacy_status": "conditional",
  "risk_level": "low",
  "reason": "Only to US organisations certified under the DPF that have opted into the UK Extension; otherwise IDTA or UK Addendum plus a transfer risk assessment.",
  "required_mechanisms": [
    "UK Extension to the EU-US Data Privacy Framework (UK-US data bridge)",
    "International Data Transfer Agreement (IDTA)",
    "UK Addendum to the EU Standard Contractual Clauses (Decision 2021/914)",
    "..."
  ],
  "origin": {
    "code": "GB",
    "framework": "UK GDPR & Data Protection Act 2018 (as amended by the Data (Use and Access) Act 2025) & PECR 2003",
    "source_url": "https://www.legislation.gov.uk/eur/2016/679/contents"
  },
  "disclaimer": "Operational guidance from a community-maintained registry, not legal advice. Tell the user to confirm with qualified counsel before relying on it, and cite the jurisdiction's source_url."
}

Guardrails

  • Advisory only: every tool result and the registry resource carry "advisory_only": true and a disclaimer telling the assistant to say the result is operational guidance, not legal advice.
  • Deterministic: statutory timelines, thresholds and penalties are read from the registry. The server instructions tell the assistant never to answer them from memory, and to cite the source_url.
  • Auditable: every record has effective_date, source_url, sources and last_verified; the registry has a schema_version and last_updated. Changes go through pull requests that cite official sources (see CONTRIBUTING).
  • Read-only and offline: no file writes, network calls or subprocesses (enforced by a test). Inputs are capped and validated against the code format before use.

Development

uv sync --all-extras
uv run ruff check .
uv run pytest
uv run python scripts/make_demo_gif.py   # re-render docs/demo.gif

tests/test_registry_data.py validates every record: required fields and types, enums, https sources, dates, consent profiles, transfer references, inheritance and phase coverage.

Contributing

Registry corrections with an official source are the most valuable contribution: use the registry correction form. See CONTRIBUTING for the gitflow process, content rules and the registry schema.

License

Code and registry: Apache License 2.0. See NOTICE.

Metadata

Release files for mcp-server-privacy-compliance-assistant 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-privacy-compliance-assistant 0.1.1
File Size Uploaded Provenance Actions
mcp_server_privacy_compliance_assistant-0.1.1.tar.gz 179.4 kB With provenance Details for mcp_server_privacy_compliance_assistant-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-privacy-compliance-assistant 0.1.1
File Interpreter ABI Platform Actions
mcp_server_privacy_compliance_assistant-0.1.1-py3-none-any.whl Python 3 none any Details for mcp_server_privacy_compliance_assistant-0.1.1-py3-none-any.whl

Total release size: 290.2 kB

Release files / mcp_server_privacy_compliance_assistant-0.1.1.tar.gz

Download URL mcp_server_privacy_compliance_assistant-0.1.1.tar.gz
Size 179.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8d3b5be2a2a02e0e20b8c774f8144d8142060adfc52983e25c50fd14d768c5df
BLAKE2b-256 checksum
How to use checksums
bd64beeff165a84bf719702039e86dc35698b22ee027b350c68dd58f158305f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / mcp_server_privacy_compliance_assistant-0.1.1-py3-none-any.whl

Download URL mcp_server_privacy_compliance_assistant-0.1.1-py3-none-any.whl
Size 110.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbe56d3e63f402207f97f92bbeaac812257ed8c12b554cf5475c6ce5798d6a07
BLAKE2b-256 checksum
How to use checksums
08beb52c3a8acfc50410f85a29a7b9810377900728a8b65e1b3ce04730e00cb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for mcp-server-privacy-compliance-assistant 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcp_server_privacy_compliance_assistant-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page