---
title: "MCP and LGPD: what changes when AI accesses personal data | FluxOS MCP Blog"
description: "Connecting an AI assistant to customer data brings Brazil's LGPD into play. See who is controller and processor, what the MCP server should limit and what to ask your vendor."
url: "https://www.fluxosmcp.com/en/blog/mcp-and-lgpd-what-changes-when-ai-accesses-personal-data"
lang: "en-US"
---

[Blog](https://www.fluxosmcp.com/en/blog) · Nov 25, 2026 · FluxOS MCP Team

# MCP and LGPD: what changes when AI accesses personal data

[Leia este artigo em português](https://www.fluxosmcp.com/blog/mcp-e-lgpd-o-que-muda-quando-a-ia-acessa-dados-pessoais)

Before you start: the text below is presented as a practical guide, not as legal advice, but it does explain roles (controller, processor, subprocessor) and international transfers. We recommend having it reviewed by whoever handles data protection at your company.

While the AI assistant is answering questions about postal codes and exchange rates, nobody needs to think about the law. The day it starts querying the customer records, the purchase history or the payroll, the conversation changes: **there is now personal data moving through a new path**, and the Lei Geral de Proteção de Dados, or LGPD (Brazil’s data protection law, comparable to GDPR), applies to it as it does to any other.

The good news is that a well-built MCP server helps you comply with the law, because it puts in one place what can be accessed, by whom and with what record. The bad news is that it does not do that on its own.

One note before we begin: this article is a practical guide, not legal advice. It organizes the questions; the answers for your case belong to your data protection officer or your lawyer.

## What is new, from the law’s point of view

To the LGPD, an assistant querying a customer record is a **processing of personal data**: access, use and, often, transmission. Three things are different from an ordinary system-to-system integration:

- **There is a new third party in the story.** The data leaves your system, passes through the MCP server and reaches the AI assistant’s provider, which processes it to build the answer.
- **The request is unpredictable.** A traditional integration always fetches the same fields. An assistant fetches whatever the conversation asks for, within what the tools allow.
- **The result becomes text.** The answer stays in the conversation history, and can be copied, pasted into an email, summarized. The data takes on a life the source system does not control.

None of this is forbidden. All of it needs to be thought through.

## Who is who: controller and processor

The law distinguishes two roles, and knowing yours changes your obligations:

- **Controller** is whoever decides why and how the data is processed. Usually, the company that owns the records.
- **Processor** is whoever processes the data on behalf of the controller, following its instructions.

In a typical MCP scenario, the chain looks like this:

- **The company that owns the data** (you, or your client) is the controller.
- **The MCP server platform** acts as a processor: it transports and records, according to the configuration in place.
- **The AI assistant’s provider** also processes the data, and its role depends on the contract and the type of account. This is the point that most deserves a careful read.

If you sell software and deliver an MCP server to your clients, you are probably a processor of their data, and the platform you use is a subprocessor. That usually has to be provided for in the contract.

## Seven questions to answer before you connect

### 1\. What is the purpose?

“Using AI” is not a purpose. “Allowing customer service to check order status in order to answer customers” is. The purpose defines the legal basis and, above all, what does **not** need to be accessed.

### 2\. Does the assistant really need this field?

This is the necessity principle: process the minimum for the purpose. Here the design of the tools works in the law’s favor.

A tool that returns the entire customer record, with CPF (Brazilian individual tax ID), date of birth, phone number and address, to answer “has the order shipped yet?” processes too much data. A tool that returns status, estimated delivery and city processes what is needed.

In FluxOS MCP you do this on the canvas: an **Editar campos** (Edit fields) block with **Manter somente os campos definidos** (Keep only the defined fields) trims the response before it goes out, as we show in [From endpoint to workflow](https://www.fluxosmcp.com/en/blog/from-endpoint-to-workflow-a-tool-that-looks-up-decides-and-answers). What does not leave the server does not reach the assistant.

### 3\. Is there sensitive data?

Health, biometrics, religion, political opinion, racial origin, sex life and children’s data are subject to stricter rules. If the table you plan to expose has anything like that, the practical recommendation is not to start with it, and to include it only with a sign-off from whoever is responsible for data protection.

### 4\. Where does the data go?

The MCP server delivers the response to the assistant, and the assistant is operated by a company, often with processing outside Brazil. Check, in the contract with the assistant’s provider:

- in which countries the data is processed, because international transfers have their own rules under the LGPD;
- whether conversations are used to train models, and how to turn that off;
- how long the history is kept.

Business accounts usually come with very different terms from free personal accounts. A correct MCP server, connected to an employee’s personal account, is a leak with good architecture.

### 5\. Who accessed what?

The law asks that the processing be demonstrable. In practice: when someone asks “who looked up this data subject’s data?”, you need to be able to answer.

In FluxOS MCP, every tool call generates a recorded execution, with the client, the tool, the arguments and the result. That has two consequences, and the second is often forgotten:

- you have the audit trail;
- **the record itself contains personal data.** If the argument is a CPF, the CPF is in the execution history. The record also needs a retention period and access control. In FluxOS MCP, the retention period for the history is set by the plan.

### 6\. What happens when the data subject asks for their data, or asks to have it deleted?

The data subject’s rights still apply. The request reaches the controller, who needs to know where the data is: in the source system, in the server’s execution history and in the assistant’s conversation history. Write those three places down in your data map before you need them.

### 7\. What if it leaks?

An exposed access key is a potential incident. What reduces the damage:

- narrow keys, one per client and per use, with a call limit;
- immediate revocation, without taking down the others;
- a record of what that key accessed while it was exposed, which is the information you need to assess whether a notification has to be made.

## What the MCP server solves, and what it does not

**It helps a lot:**

- **Isolation between clients.** The client is defined by the key, not by the conversation. A tool without a client filter does not publish.
- **Minimization.** You choose which tools exist and which fields each one returns.
- **Access control.** Each key reaches only the tools enabled for it.
- **Records.** Every call is stored.
- **Credential protection.** The passwords for your systems sit in an encrypted vault and are masked in the logs.

**It does not solve:**

- **The legal basis.** No tool decides whether you may process that data for that purpose.
- **What the assistant does afterward.** Once the response is delivered, the processing continues at the assistant’s provider, under its contract.
- **People’s behavior.** Someone who copies the answer into a group chat is beyond the reach of any server.
- **The contracts.** Between you and your clients, between you and the platform, between the company and the assistant’s provider.

## Five questions for the platform vendor

They apply to us and to any competitor:

1. Where are the data and the records hosted?
2. Is the content of the calls stored? For how long? Can that be reduced?
3. Who, inside the vendor, can see the records?
4. How is isolation between clients guaranteed, and what happens if someone forgets the filter?
5. Is there a data processing agreement, with the list of subprocessors?

The [seven security questions](https://www.fluxosmcp.com/en/blog/7-questions-to-ask-before-connecting-ai-to-your-companys-data) cover the technical side in more detail.

## A roadmap for starting the right way

1. **Start with data that is not personal.** Inventory, prices, order status without the buyer’s name. You learn the mechanism without carrying the risk.
2. **Write down the purpose** of each tool that touches personal data, in one sentence.
3. **Trim the fields** to the minimum for that purpose.
4. **Set the retention period** for the records.
5. **Check the contract of the AI assistant** people will use, and restrict use to business accounts.
6. **Record the operation** in your data processing map.
7. **Involve the data protection officer** before publishing, not after.

## In short

The LGPD does not stop anyone from connecting AI to the company’s data. It asks for what a good project would already ask for: know why, access the minimum, keep records and be able to answer for it. An MCP server is a good place to concentrate those guarantees, as long as someone designs them.

For the vocabulary used here, see the [MCP glossary](https://www.fluxosmcp.com/en/blog/mcp-glossary-25-terms-explained).
