How can you prove that your MCP service complies with LGPD requirements?
LGPD, Brazil’s General Data Protection Law, obliges organizations to keep a detailed record of every personal data interaction. Auditors expect evidence that shows who accessed which data, when the access occurred, and that any sensitive fields were protected or redacted. The law also requires organizations to grant access on a need‑to‑know basis, enforce data minimization, and document and approve any deviation from policy.
MCP (Model‑Control‑Proxy) servers expose programmable endpoints that AI agents or automated services call to run code, retrieve results, or store artifacts. Because MCP often handles personally identifiable information (PII) on behalf of downstream applications, it becomes a focal point for LGPD compliance. Teams typically secure MCP with strong identities and least‑privilege IAM roles, but the request still travels directly to the MCP process. In that flow there is no built‑in audit of each command, no automatic redaction of sensitive fields, and no checkpoint for human approval before a risky operation proceeds.
Why the data path matters for LGPD evidence
The missing piece is a control surface that sits on the data path between the caller and the MCP server. Without a gateway, the only logs available are those the MCP application emits, which the code itself often makes optional or coarse. If attackers compromise the MCP process, they can alter or delete those logs, breaking the audit trail that LGPD requires.
Placing a Layer 7 gateway in the data path gives the gateway a dedicated place to inspect, record, and govern every request and response.
How hoop.dev provides continuous LGPD evidence
hoop.dev is an open‑source identity‑aware proxy that sits between identities and infrastructure. When a user, service account, or AI agent authenticates via OIDC or SAML, hoop.dev validates the token, extracts group membership, and then forwards the request to the MCP server. Because the gateway sits in the data path, it can apply three enforcement outcomes that directly satisfy LGPD audit requirements:
- Session recording. hoop.dev records every MCP interaction, capturing the exact request payload, the response, the authenticated identity, and a timestamp. These immutable session logs provide the essential evidence of who accessed what data and when.
- Inline data masking. hoop.dev redacts sensitive fields identified in policy (for example, national ID numbers or credit‑card digits) in real‑time before the response leaves the gateway. This demonstrates data minimization and protects PII even if the downstream MCP service logs the full payload.
- Just‑in‑time approval. For high‑risk commands, hoop.dev can pause the request and route it to a designated approver. The approval decision, together with the identity of the approver and the time of approval, stores alongside the session record, proving that risky operations received explicit authorization.
Because hoop.dev holds the credentials for the MCP connection, the calling identity never sees the secret. This separation prevents credential leakage from tampering with the audit trail.
