MCP Security and Data Flow
Overview¶
When MCP is on, an AI assistant can read estate, assessment and migration-planning data from your Dr Migrate instance. This document describes the path that data takes, where it is processed and stored, and who decides where it goes. For the admin tasks, see MCP in Administration. To connect an assistant, see MCP in the User Guide.
The short version: all Dr Migrate processing happens on your instance, and data leaves it only as read-only query results sent to the assistants people connect. From the moment a result reaches an assistant, it is handled by the AI provider your organization chose. That choice, not Dr Migrate, decides the data's residency from there.
The Parts Involved¶
| Part | Where it runs | What it does |
|---|---|---|
| The AI assistant | The person's computer (Claude Code, GitHub Copilot, Cursor, Codex) or the assistant's own cloud (Claude Desktop connects from Anthropic's servers). | Holds the connection to Dr Migrate and carries tool calls and results between the instance and the AI provider. |
| The AI provider | The provider's cloud: Anthropic, Microsoft, OpenAI or another, as your organization chose. | Reads the conversation, decides which Dr Migrate tool to call and writes the answers the person sees. |
| The MCP service | On your Dr Migrate instance, next to the web application, behind the same address. | Signs people in, checks access on every request and runs the read-only queries. |
| The instance databases | On your Dr Migrate instance. | Hold the estate data, the MCP connections, tokens and the audit log. |
| The Dr Migrate portal (SaaS only) | Dr Migrate's cloud. | Holds MCP access requests and approvals: people and access levels, never estate data. |
How a Connection Is Made¶
Assistants connect with OAuth 2.1, the open standard for giving an application limited access without sharing a password.
Sign-In and Consent¶
When a person connects an assistant, Dr Migrate opens its own sign-in page in the browser, with the same login the instance always uses, SSO or local. The assistant never sees the password. After sign-in, a consent screen names the application, and nothing is connected until the person clicks Authorize. Each sign-in can be used once. A repeated one is refused.
Short-Lived Tokens¶
An approved assistant receives an access token that expires after at most 30 minutes, or 15 minutes where sign-in uses SSO. The assistant renews it in the background with a renewal credential that is itself replaced on every renewal and that ends after 30 days without use. When a replaced credential is presented again, Dr Migrate treats the connection as stolen and ends all of it, every token included.
How a Question Flows¶
The Person Asks a Question¶
The person writes a question in their assistant. The assistant sends the conversation to its AI provider.
The Provider Chooses a Tool¶
The provider reads the question and decides it needs Dr Migrate data. It names the tool and the filters. No Dr Migrate data is involved yet.
The Assistant Calls the Instance¶
The assistant sends the tool call over HTTPS to your instance's /mcp address, with its current access token.
The Instance Checks, Then Reads¶
The MCP service checks the token, the person and the connection, as described in Safeguards. It then reads the data with one read-only query, on the instance.
The Result Returns¶
The result goes back over the same HTTPS connection to the assistant. The read is recorded in the audit log on the instance.
The Provider Writes the Answer¶
The assistant adds the result to the conversation and sends it to the AI provider, which writes the answer the person sees. From this step on, the data is with the provider.
What Leaves the Instance¶
| What | Where it goes | When |
|---|---|---|
| Results of read-only queries | The connected assistant, and from there its AI provider | On each tool call |
| The sign-in and consent pages | The person's browser | When a person connects an assistant |
| Access requests and decisions: the person, the deployment, the level and the dates (SaaS only) | The Dr Migrate portal | When a person requests access and when an admin decides |
Nothing else leaves. The MCP service connects to the instance's own web application, databases and secret store, and on SaaS to the Dr Migrate portal for the rows above. It makes no other outbound connection. Tokens, keys and the audit log stay on the instance.
Data Residency¶
At rest, MCP adds no new data store. Everything it keeps lives in the instance's own databases, next to the estate data: connections, tokens, requests and the audit log. Where that is depends on your deployment.
Marketplace¶
A Marketplace instance is a managed application in your own Azure tenant, in the region you deployed it to. Everything MCP processes and stores stays in that tenant. Access requests are decided on the instance, so they stay there too. The only data that leaves is the query results sent to the assistants people connect.
SaaS¶
A SaaS instance is a dedicated instance in Dr Migrate's ISO 27001-certified cloud. Everything MCP processes and stores stays on that instance. Access requests and approvals go through the Dr Migrate portal, which holds people and access levels, never estate data. For the hosting model, see Architecture & Hosting.
The AI Provider Decides Residency¶
Dr Migrate controls the data up to the moment a result reaches the assistant. From then on, the conversation, every query result included, is processed and stored by the AI provider your organization chose: Anthropic for Claude, Microsoft for GitHub Copilot, OpenAI for Codex, or another. Where that happens, in which region, for how long it is kept and whether it is used for training are set by your agreement with that provider. Dr Migrate does not see it and cannot restrict it.
The same data therefore has two homes. At rest it stays on your instance. In a conversation it resides with the AI provider. Choosing the provider and the plan is choosing the residency of everything assistants read, so check the provider's data terms against your organization's policy before you approve MCP access. This is why turning on MCP requires accepting the data terms, and why the consent screen tells the person where the application sends data.
Assistants also differ in where the connection itself comes from. Claude Code, GitHub Copilot, Cursor and Codex connect from the person's computer. Claude Desktop connects from Anthropic's servers, so the instance must be reachable from the internet.
Safeguards¶
The protections below are built in and always on. None of them needs to be configured.
Read Only by Design¶
Every MCP tool reads. None writes. The restriction does not depend on the tools behaving: the database account the MCP service runs with can only read, and only the data made available to MCP. Even a faulty tool cannot change data or reach anything beyond it.
Checks on Every Request¶
A valid token alone grants nothing. On every request, Dr Migrate checks again that MCP is on for the instance, that nothing blocks the connection, and that the person's account is active, not locked, not disabled and on the same password. A disabled or locked account, a changed password or Disconnect cuts the assistant off at its next request. Requests that come too fast are slowed, and repeated rate-limit lockouts block the connection until an admin clears it (see Clear a Block).
A Complete Record¶
Dr Migrate always records security and admin events: connections, approvals, refusals, disconnections and blocks, each with the person, the assistant and the time. A request whose audit record cannot be written is refused, so nothing an assistant does goes unrecorded. The switches in Record Data Reads and Refusals add detail on top, and Export the Audit Log gives you the file.
Encryption and Keys¶
Assistants connect over HTTPS only, to a server with a trusted certificate (see Check the SSL Certificate). The keys that sign tokens and the logins the MCP service uses are kept in the instance's secret store, not in configuration files.

