Compliance·GDPR

MCP server GDPR compliance security: lawful basis, data subject rights, and DPA obligations

When an AI agent uses an MCP server to access EU personal data — customer records, email content, CRM data — GDPR applies to the MCP layer as a data processor. The MCP server's tool interface becomes a data access surface that must satisfy lawful basis requirements, purpose limitation, and data subject rights enforcement.

GDPR and the MCP server data processor role

Under GDPR Article 4, a data processor processes personal data on behalf of a controller. An MCP server that provides tool access to a database of EU personal data is acting as a data processor — even if it's deployed internally. This has three immediate implications:

Lawful basis for MCP tool access

GDPR Article 6 requires a lawful basis for every processing activity. For MCP tools accessing personal data, the basis must be documented before the tool is deployed:

The key architectural implication: each MCP tool should have a documented lawful basis, and the tool should only be callable when that basis applies to the current session's data subject context. A tool with a "contract" basis for one customer should not be callable for data about a different customer on a different contract.

Purpose limitation: per-tool scoping

GDPR Article 5(1)(b) requires data be used only for the purpose for which it was collected. In MCP server design this means tool-level purpose scoping:

Data minimisation: tool interface design

Article 5(1)(c) requires data minimisation — collecting only what's necessary. For MCP server tool interfaces this means:

Data subject rights: what the MCP server must support

GDPR grants data subjects rights that must be technically implementable. For MCP servers managing personal data:

Breach notification: when an MCP security incident becomes a GDPR notification

GDPR Article 33 requires notification to the supervisory authority within 72 hours of becoming aware of a personal data breach. For MCP servers, the following security incidents trigger notification obligations:

The 72-hour clock starts when your security team becomes aware — not when the breach occurred. Your MCP server's audit logging is your primary evidence source for determining scope (which subjects were affected, what data was accessed) and demonstrating the containment response.

Technical measures: Article 32 requirements for MCP servers

Article 32 requires "appropriate technical and organisational measures" including pseudonymisation, encryption, and ongoing testing. For MCP servers specifically:

What SkillAudit checks for GDPR-scoped MCP servers

SkillAudit's scan identifies findings relevant to GDPR technical requirements: credential exposure in logs (Article 32 encryption/access control), SSRF vulnerabilities (exfiltration risk → Article 33 breach), missing per-tool authorization (Article 5 purpose limitation), and PII handling patterns in return types. The Team plan audit report includes a GDPR Article mapping table alongside findings — usable as evidence in a Data Protection Impact Assessment (DPIA) or supervisory authority response.

Audit your MCP server for GDPR compliance gaps

SkillAudit scans MCP servers for SSRF, credential exposure, injection vulnerabilities, and access control gaps. Free for public repos — get a graded report in 60 seconds.

Run a free audit →

Related: MCP server audit trails for SOC 2 and GDPR · MCP security review checklist · MCP server SOC 2 Type II security