---
title: "MCP and HIPAA: what to check before agents touch PHI"
description: Every party that handles PHI in an MCP tool call needs a BAA, and model providers’ BAAs don’t cover MCP servers. What to check, limit and log.
canonical: https://mcp1.com/blog/mcp-hipaa
last-updated: 2026-12-06
---

# MCP and HIPAA: what to check before agents touch PHI

Every party that handles PHI in an MCP tool call needs a BAA, and model providers’ BAAs don’t cover MCP servers. What to check, limit and log.

![](https://avatars.githubusercontent.com/u/1297371?s=96&v=4)Eldad FuxFounder and CEO, Appwrite

 Where PHI goes in one tool call

- MCP serverBAA, endpoint in scope
- Model providerBAA, product named
- GatewayBAA, audit log
- LogsEncrypted, retention set

 Where PHI goes in one tool call

- MCP serverBAA, endpoint in scope
- Model providerBAA, product named
- GatewayBAA, audit log
- LogsEncrypted, retention set

MCP doesn’t make a system HIPAA compliant or non-compliant; the parties that handle PHI in each tool call do. When an agent calls a tool on an EHR, a billing system or a patient support inbox, PHI moves through the MCP server, the client, the model provider and any gateway or log in between. Each of those that creates, receives, maintains or transmits PHI for you is a business associate and needs a BAA, and your model provider’s BAA does not cover the others.

This is engineering guidance for the people who connect MCP servers, not legal advice. Your privacy officer decides; this tells them what to check.

## Where does PHI go in an MCP tool call?

Further than in a normal integration. Take a care coordinator asking Claude whether a patient has an open referral:

1. 1The question, often with the patient’s name or MRN, goes from the client to the model provider.
2. 2The model calls a tool and writes the arguments, which carry the identifier.
3. 3The client sends the call to the MCP server, directly or through a gateway, and the server queries the system of record.
4. 4The result, with names, dates and clinical details, goes back to the client and on to the model provider as context.
5. 5Chat history, and any log on the way (client, gateway, server), may keep the arguments and the result.

Step 4 is the one reviews miss. Data that stayed inside your EHR now reaches the model provider every time a tool returns it, whether or not the person reads it. The [GDPR version of this post](https://mcp1.com/blog/mcp-gdpr) walks the same flow for personal data in general.

## Who needs a BAA in an MCP setup?

Every party in that flow that stores or processes PHI. HHS treats a service that stores PHI as a business associate even when the data is encrypted and it holds no key.

PartyWhat to check

A vendor’s own hosted MCP server

You may have a BAA with the vendor already. Get it in writing that the MCP endpoint is in scope; new products often aren’t.

A third party hosting a server for someone else’s API

A new business associate that sees every argument and result. No BAA, no PHI.

A server you run yourself

No new party, but it runs on your infrastructure, so your own Security Rule safeguards apply to it.

The model provider

A BAA that names the exact product and plan. Consumer accounts are out.

The AI client

Check whether the client vendor’s backend sees tool results before the model does.

An MCP gateway

Sees and usually logs every call’s arguments and results. It needs a BAA.

Logging and monitoring tools

Anything that receives the gateway’s or server’s logs receives PHI too.

## Does Anthropic’s or OpenAI’s BAA cover MCP?

Not for the third parties. As of December 2026, Anthropic’s BAA page lists MCP and connectors as available but says sending data to third parties through them isn’t covered under its BAA, and marks local MCP servers in Claude Code as not covered either. Admins who turn them on are responsible for how they’re used. That makes sense: Anthropic can only sign for Anthropic. The MCP server’s vendor has to sign for its part.

An LLM gateway is not an MCP gateway

The same Anthropic page says Claude Code sessions sent through an LLM gateway or a custom base URL aren’t covered. That is about model traffic. An MCP gateway sits between the client and your tools, and Claude Code still talks to Anthropic directly.

OpenAI publishes its own list of HIPAA-eligible ChatGPT features. Read the current list and your BAA’s Eligible Services before you assume custom MCP servers are in scope, and get the answer in writing. Either way, a model provider’s BAA never covers what the MCP server’s vendor does with the data.

## How do I apply minimum necessary to MCP tools?

The Privacy Rule’s minimum necessary standard maps directly onto which tools an agent can reach and how much they return:

- Connect servers that return PHI only for the groups whose work needs it. Billing doesn’t need clinical notes; engineering doesn’t need either.
- Turn off tools that return bulk records when a narrower lookup answers the question. A search that returns 500 patients sends 500 records to the model.
- Cap answer sizes so oversized results are cut down and the model asks a narrower question.
- Give agents read-only credentials, so a wrong write can’t land in a chart. See [how to make an MCP server read-only](https://mcp1.com/blog/read-only-mcp-server).
- Keep PHI servers off general-purpose gateways. Give them their own gateway with its own grants.

## What should MCP audit logs record under HIPAA?

The Security Rule requires audit controls that record activity in systems holding ePHI, and an agent calling tools is activity. For each call, record the person, the client, the server and tool, the arguments, whether it was allowed, and when. The service’s own log only shows the credential, which is why the per-person record has to come from the client or a gateway. The [MCP audit logging](https://mcp1.com/blog/mcp-audit-logging) post covers the fields.

That log contains PHI, so encrypt it, limit who reads it to a role that can’t call tools, and set retention. HIPAA keeps policies and documentation for six years; it doesn’t fix a period for audit logs, so write down the one you pick and why.

## What happens to MCP access when someone leaves?

HIPAA requires procedures to end a workforce member’s access. With MCP, disabling SSO doesn’t revoke the OAuth grants each client got from each server, or a personal token in a config file. Revoke them service by service, or route access through one place you can cut. The [offboarding checklist](https://mcp1.com/blog/mcp-offboarding) lists where.

## A checklist per MCP server

Fill one in before a server that can return PHI is connected, and keep it with your risk analysis:

Per-server review

```
Server:            <name and URL>
Hosted by:         <vendor itself | third party | our own infrastructure>
BAA:               <signed, covers the MCP endpoint? yes / no>
PHI in results:    <which tools return PHI, which don't>
Who needs it:      <group, and the job that needs PHI>
Credential:        <read-only? whose account?>
Client and model:  <which clients may connect; is that path in the model provider's BAA?>
Logged where:      <client, gateway, server; retention; who can read it>
```

## How MCP1 helps

MCP1 is an MCP gateway that puts a team’s servers behind one URL. It is HIPAA compliant and signs a BAA on the Enterprise plan, which covers MCP1’s part of the flow; each server’s vendor still needs its own. Server tokens and call arguments are encrypted with AES-256-GCM. Groups decide who reaches which server, rules switch off single tools named `server__tool`, read-only secrets make the service refuse writes, and oversized answers are cut down. Every call is in the audit log with the person, client and gateway, the auditor role reads it without calling tools, and removing a member ends every client they approved. Enterprise adds IP allowlists. The [docs](https://mcp1.com/docs) cover the setup, the [security checklist](https://mcp1.com/blog/mcp-security-best-practices) covers the rest, and you can [start free](https://mcp1.com/signup).

## Common questions

### Is MCP HIPAA compliant?

The protocol is neither. Compliance depends on BAAs with every server vendor, the model provider and any gateway, and on how you limit, log and revoke access to PHI.

### Does Claude’s BAA cover MCP connectors?

No, for data sent to third parties. Anthropic’s BAA page lists MCP and connectors as available but not covered for that data, so each server’s vendor needs its own BAA.

### Do I need a BAA with an MCP gateway?

Yes, if PHI passes through it. A gateway sees and usually logs tool arguments and results, so it stores PHI and is a business associate.

### Is a local MCP server safer for PHI?

It adds no new vendor, but results still go to the model provider, and Anthropic marks local MCP servers as not covered by its BAA. The token on the laptop is another risk.

Give your team one URL

Create a workspace, install your servers and share a gateway with a group. Free for individuals.

[Start with MCP1](https://mcp1.com/signup)[Read the docs](https://mcp1.com/docs)

## More from the blog

[ \~/.codex/config.toml[mcp_servers.notion] url = "https://mcp.notion.com/mcp"codex mcp login notionSigned inHow to connect Notion MCP to CodexRun codex mcp add notion --url https://mcp.notion.com/mcp, then codex mcp login notion. Approvals, a token for CI, team config and fixes.![](https://avatars.githubusercontent.com/u/1297371?s=96&v=4)Eldad FuxFounder and CEO, Appwrite](https://mcp1.com/blog/notion-mcp-codex)[ .cursor/mcp.json"atlassian": { "url": "https://mcp.atlassian.com/v2/mcp" }atlassianConnectedHow to connect Jira MCP to CursorAdd https://mcp.atlassian.com/v2/mcp to .cursor/mcp.json and sign in to Atlassian. The Jira tools, admin controls, approvals, API tokens and fixes.![](https://avatars.githubusercontent.com/u/1297371?s=96&v=4)Eldad FuxFounder and CEO, Appwrite](https://mcp1.com/blog/jira-mcp-cursor)

---

This is the markdown copy of https://mcp1.com/blog/mcp-hipaa. Site index for agents: https://mcp1.com/llms.txt
