Your team is already breaking HIPAA to use ChatGPT.Why not just make it safe?

Use Any AI Model
Without HIPAA Risk

No walled gardens. Use ChatGPT, Claude, Gemini - any model you want.95% F1 accuracy removing PHI. 100% HIPAA compliant.

Join healthcare teams getting early access to HIPAA-compliant AI

95%
F1 Accuracy
100%
FHIR Accuracy
<8ms
Response Time
18+
PHI Types
100%
Reversible

Why We Built MedScrub

The first PHI scrubber designed specifically for AI interactions

What MedScrub Does

MedScrub automatically detects and removes PHI from healthcare data before sending it to AI models like GPT-4, Claude, or Gemini. Then it restores the context in AI responses - giving you safe, compliant AI interactions.

The Problem It Solves

Healthcare teams want to use AI for clinical insights, patient communication, and research. But HIPAA compliance stops them cold. MedScrub bridges this gap - enabling safe AI use without sacrificing patient privacy.

Zero-Trust Deployment

Unlike cloud-based solutions, MedScrub runs as a Docker container on your infrastructure. PHI never leaves your environment. You get AI capabilities without vendor liability or data exposure.

Built for Real Use Cases

Created by developers building CLaiR (AI assistant for patient medical records) who faced the same HIPAA barriers. MedScrub emerged from real-world need, not theoretical compliance requirements.

How MedScrub Works

Three simple steps to HIPAA-compliant AI

1

Input PHI Data

Type or paste medical text with PHI into our chat interface or send via API

2

Secure AI Processing

MedScrub removes PHI, proxies to AI models (GPT-4, Claude, etc.), then restores context

3

Get Safe Response

Receive AI insights with PHI automatically restored, fully HIPAA compliant

Two Ways to Use MedScrub

Choose the deployment that fits your workflow

Secure Chat Interface

For healthcare teams

  • Upload your OpenAI, Anthropic, or Google credentials
  • Chat normally - PHI is automatically protected
  • Use your favorite AI model, not ours
  • Complete audit trail for compliance

Docker Proxy API

For developers & integrations

  • Install alongside your app in your infrastructure
  • PHI never leaves your environment
  • Proxy to any LLM provider you choose
  • Built by developers, for developers

Coming Soon: 5-Minute Deployment

Get early access to MedScrub for your infrastructure

1

Pull the Docker image

docker pull medscrub/api:latest
2

Configure your API key

export MEDSCRUB_API_KEY=msk_live_your_api_key_here
3

Run the container

docker run -d -p 8080:8080 -e MEDSCRUB_API_KEY medscrub/api:latest

Test the API

curl -X POST http://localhost:8080/api/deidentify \
-H "X-API-Key: $MEDSCRUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Patient John Doe (SSN: 123-45-6789) visited on 1/15/2024"}'

Join healthcare teams getting early access to HIPAA-compliant AI

Next-Generation PHI Detection

Powered by advanced AI with 96% F1 accuracy

Multi-Layer Detection

Ensemble model combines pattern matching, NER, and contextual analysis for comprehensive coverage.

Cultural Intelligence

Detects complex international names, compound surnames, and cultural naming patterns.

Medical Awareness

Preserves medical terminology, drug names, and clinical values while removing PHI.

Edge Speed

Sub-8ms response times with intelligent caching. Process thousands of requests per second.

Built for Healthcare Teams

Enable AI safely across your entire organization

Clinical Documentation

Let AI help with clinical notes, discharge summaries, and care plans without HIPAA risk.

  • Summarize patient histories
  • Generate care recommendations
  • Draft discharge instructions

Medical Research

Analyze patient data patterns and literature reviews while protecting patient privacy.

  • Analyze case studies
  • Extract insights from records
  • Generate hypotheses

Administrative Tasks

Automate insurance letters, referrals, and prior authorizations with AI assistance.

  • Draft insurance appeals
  • Create referral letters
  • Process authorizations

Join healthcare organizations already using MedScrub to safely leverage AI

Built on Proven Science

MedScrub combines multiple algorithmic approaches and compliance frameworks to achieve industry-leading accuracy in PHI detection

HIPAA Safe Harbor Compliance

Comprehensive detection of all 18 HIPAA Safe Harbor identifiers ensures regulatory compliance

Names
Patients, relatives
Dates
Birth, admission
Contact
Phone, email
Geographic
Addresses, ZIP
Medical IDs
MRN, insurance
Biometric
Photos, IDs

Multi-Layer Detection Stack

Regex Patterns

Fast, deterministic pattern matching with high-precision validation for structured identifiers

ML/NLP Models

spaCy, BioBERT, ClinicalBERT for context-aware named entity recognition and medical understanding

UCSF Philter

Enhanced patterns inspired by UCSF's Philter system for comprehensive medical entity detection

Probabilistic

Bloom filters and MinHash for fuzzy matching, probabilistic validation, and edge case handling

Ensemble Detection Pipeline

1
Medical Context
Analysis
2
Multi-Model
Ensemble
3
Confidence
Scoring
4
Safe Token
Replacement

Multiple detection methods work together to achieve 96% F1 accuracy with minimal false positives