How can you prove to a HIPAA auditor that every interaction with your MCP servers is recorded, that protected health information never leaks, and that access was granted only when required?
Hipaa audit requirements for MCP servers
HIPAA’s Security Rule demands three core artifacts for any system that processes PHI: detailed audit logs that tie every request to a specific identity, controls that prevent unauthorized disclosure of PHI, and documented evidence that any privileged operation received appropriate oversight. Auditors will ask to see who accessed a server, what command was run, the exact data returned, and whether a human approved the action before it executed.
In a typical deployment, engineers launch an MCP server directly from a CI pipeline, embed service‑account keys in configuration files, and connect with a standard client. The server talks to downstream databases, and the traffic flows unmediated. No central point records the command stream, no inline masking strips PHI from responses, and no workflow forces a manager to sign off on a risky query. The result is a black box that satisfies functional needs but leaves no trace for compliance.
What the missing control looks like today
Even when organizations adopt least‑privilege service accounts and federated OIDC tokens, the request still reaches the MCP server directly. The gateway that could enforce masking, capture the full request‑response cycle, or pause execution for approval is absent. Without a data‑path enforcement point, the audit trail is incomplete, PHI can appear in logs, and there is no way to prove that a human reviewed a dangerous operation.
This gap is exactly what HIPAA auditors flag as a control weakness. The identity layer tells you *who* might act, but it does not guarantee *what* they actually did.
How hoop.dev creates audit‑ready evidence
hoop.dev sits in the data path between every identity (engineer, CI job, or AI agent) and the MCP server. By proxying the wire‑protocol, hoop.dev can inspect, transform, and log every byte that passes through.
- hoop.dev records each session. Every connection is captured with a timestamp, the caller’s OIDC subject, and the full command stream. The recorded data is retained for the configured period, allowing auditors to replay the full interaction.
- hoop.dev masks protected fields. Before any response leaves the server, hoop.dev applies inline data masking rules that redact PHI such as patient IDs, dates of birth, or lab results. The masked version is what ends up in logs, ensuring that audit records never become a new source of PHI leakage.
- hoop.dev requires just‑in‑time approval for risky operations. Policies can flag commands that touch sensitive tables or invoke privileged functions. When such a command is detected, hoop.dev pauses execution and routes the request to an approval workflow. The approval decision, who approved, when, and why, is stored alongside the session record.
- hoop.dev blocks disallowed commands. If a policy declares a command unsafe, hoop.dev terminates the request before it reaches the MCP server, preventing accidental exposure of PHI.
- hoop.dev makes replay simple. Because the full session is stored, auditors can replay any interaction in a sandboxed environment to verify that masking behaved as expected and that no unexpected data left the system.
All of these outcomes exist only because hoop.dev is the enforcement point. The identity provider supplies the subject, but without hoop.dev in the path there would be no record, no masking, and no approval workflow.
Turning the artifacts into a compliance package
When an audit begins, you can export the following from hoop.dev:
- A chronological log of every MCP session, filtered by user or service account.
- A list of all masking rule matches, showing which fields were redacted and confirming that PHI never appeared in clear text.
- Approval audit trails that capture the who, when, and justification for each privileged operation.
- Replay bundles that allow the auditor to rerun a session in a controlled environment.
Because hoop.dev is open source and MIT‑licensed, you can host the gateway on AWS using the standard Docker‑Compose quick‑start or a Kubernetes deployment. The getting‑started guide walks you through provisioning the gateway, configuring OIDC, and defining masking policies. For deeper policy design, the learn section explains how to write rule expressions and set up approval workflows.
FAQ
Does hoop.dev replace the need for separate logging agents?
No. hoop.dev consolidates logging at the protocol level, so you no longer need a separate agent to capture command output. Existing agents can still run, but hoop.dev’s logs satisfy the HIPAA audit requirement on their own.
Can I use hoop.dev with existing OIDC providers?
Yes. hoop.dev acts as a relying party, verifying tokens from any compliant OIDC or SAML provider. The provider supplies the identity; hoop.dev enforces the access controls.
What happens if a masking rule is misconfigured?
hoop.dev logs any rule evaluation error alongside the session record, so auditors can see that a rule failed and take corrective action before PHI is exposed.
By placing a single, policy‑driven gateway in front of your MCP servers, you generate the exact evidence HIPAA auditors expect while preserving the flexibility engineers need.
Explore the source code, contribute improvements, or spin up a test instance today at https://github.com/hoophq/hoop.