Storing patient data on an MCP server without a tamper‑proof audit trail is a direct violation of HIPAA’s security rule.
Most teams on GCP provision an MCP server with a static service‑account key that is copied to developers, CI pipelines, and occasionally to third‑party tools. The key lives in secret stores, in environment variables, or even in plain‑text configuration files. When a developer runs a query, the request travels straight from the client to the MCP server. The server authenticates the service account, executes the command, and returns the result. No intermediary observes the traffic, no central log captures the exact query, and no mechanism masks protected health information (PHI) that may appear in the response. If a credential is leaked, anyone with the key can issue arbitrary commands, exfiltrate data, or delete resources, and the organization has no reliable evidence of who did what.
HIPAA’s Security Rule requires covered entities to implement audit controls that record "who accessed an information system and what they did" (45 CFR §164.312(b)). It also demands mechanisms to protect the integrity and confidentiality of electronic PHI. In practice, that means organizations must be able to prove that every access to an MCP server was authorized, that the data returned was protected, and that any privileged operation received appropriate oversight.
Moving to an identity‑centric model, using OIDC or SAML to issue short‑lived tokens, assigning the minimum set of permissions to each user, addresses the "who may access" part of the equation. However, the request still goes directly to the MCP server. The gateway that could enforce real‑time masking, require just‑in‑time approvals, or capture a complete session log is missing. Without that data path control, the organization still cannot generate the audit evidence HIPAA demands.
hoop.dev inserts a Layer 7 gateway between identities and the MCP server. The gateway validates OIDC tokens, maps group membership to fine‑grained policies, and then proxies the connection to the server using its own credential. Because the gateway sits in the data path, it can record every command, mask PHI in responses, and route risky operations to a human approver before they execute. The result is a verifiable audit trail that includes user identity, timestamp, exact query, and any masking applied.
hipaa evidence requirements for MCP servers
HIPAA expects three core audit artifacts:
- Access logs that show the user, time, and action.
- Integrity controls that ensure logs cannot be altered without detection.
- Confidentiality safeguards that prevent PHI from being exposed unintentionally.
hoop.dev provides each of these directly in the data path. When a request passes through the gateway, the system writes a session record that cannot be modified by the client or the MCP server. The record contains the raw request, the decision outcome (allowed, blocked, or sent for approval), and the masked response that was delivered to the client. Because the gateway owns the credential, the client never sees the underlying service‑account key, eliminating the risk of credential leakage.
