Skip to main content
Glama
mcp-server-privacy-compliance-assistant

mcp-server-privacy-compliance-assistant

by itssaeedyari

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.

Related MCP server: US Regulations MCP Server

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.

Available Tools

4 tools
compare_jurisdictionsA
Read-onlyIdempotent

Use when launching a feature or product in several countries or states, or when the user asks how privacy laws differ. Compares 2 to 30 jurisdictions side by side and returns the strictest overlapping requirement for each field (the highest common denominator: shortest DSAR and breach deadlines, opt-in if any jurisdiction needs it, highest children's age, every mandatory UI control), which jurisdictions set it, and the fields that differ. Example: ['GB', 'EU', 'US-CA', 'BR'].

Inputs: jurisdiction_codes (required), data_category.

evaluate_cross_border_transferA
Read-onlyIdempotent

Use whenever personal data moves between countries: hosting or backups abroad, a foreign vendor or subprocessor, remote support, a parent company in another country. Evaluates the transfer under the origin's law: adequacy_status (adequate, conditional, restricted or prohibited), the legal mechanisms required (e.g. EU SCCs, UK IDTA, EU-US Data Privacy Framework, China CAC security assessment) and a risk_level. conditional means adequate only if a condition holds, such as the US recipient being certified under the Data Privacy Framework. data_category (standard, sensitive or children) matters for some rules, such as the US ban on sending bulk sensitive data to countries of concern. Codes as in get_jurisdiction_compliance.

Inputs: origin_code (required), destination_code (required), data_category.

get_jurisdiction_complianceA
Read-onlyIdempotent

Use whenever the user asks what a privacy law requires, or builds a feature that handles personal data for people in a country or state. Full compliance obligations for one jurisdiction: framework, regulator, consent model, lawful bases, data subject request (DSAR) deadline, breach notification window, DPO conditions, mandatory disclosures and UI controls, children's age threshold, maximum penalty, transfer rules, effective date and source_url. jurisdiction_code: ISO 3166-1 alpha-2 ('GB', 'DE', 'BR', 'IN') or ISO 3166-2 ('US-CA', 'CA-QC'), or 'EU', 'US-FEDERAL', 'AE-DIFC', 'AE-ADGM'. data_category: standard, sensitive or children; adds the rules for that kind of data. 'US' alone returns the list of states to choose from; unmapped countries return the EU GDPR baseline with fallback_applied.

Inputs: jurisdiction_code (required), data_category.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool has a distinct trigger: consent banner design, single-jurisdiction obligations, cross-border data movement, and multi-jurisdiction comparison. There is some conceptual overlap because consent requirements and transfer rules are subsets of jurisdiction compliance, but the descriptions clearly steer selection by use case.

    Naming Consistency5/5

    All four names follow a consistent snake_case verb_noun pattern: get_consent_requirements, get_jurisdiction_compliance, evaluate_cross_border_transfer, compare_jurisdictions. The verb choice is predictable and readable throughout.

    Tool Count4/5

    Four tools is a small but well-scoped set for an advisory compliance server, with each tool covering a substantial workflow rather than a single field. It sits slightly on the thin side, but no tool feels redundant or out of place.

    Completeness4/5

    The surface covers the core lookup workflows: jurisdiction obligations, consent banner requirements, transfer analysis, and multi-jurisdiction comparison. Minor gaps remain around operational workflows such as DSAR handling, breach response steps, and vendor/DPA assessment, though agents can partly compose these from the jurisdiction data.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers