HIPAA FHIR MCP (prototype)
Read-only FHIR R4 tools for AI agents, with patient-scoped access and hashed audit logs
HIPAA FHIR MCP (prototype) is an open-source MCP server for health and science. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- What it can do
- Read-only
- Version
- 0.8.1
- Listing updated
Similar MCP servers
Install
In Claude Desktop → Settings → Extensions
https://github.com/tanya-ok/hipaa-fhir-mcp/releases/download/v0.8.1/hipaa-fhir-mcp-0.8.1.mcpbDownload the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.
Using several servers? Build one config file with the MCP config generator.
Configuration
AUDIT_HMAC_KEY64 hex characters used to HMAC patient ids in audit recordsRequiredFHIR_BASE_URLFHIR R4 base URL; defaults to the public synthetic SMART sandboxCALLER_IDENTITYOperator label written into audit records, not an authenticated identitySMART_CLIENT_IDSMART Backend Services client id; set with SMART_KEY_ID and SMART_PRIVATE_KEY_FILESMART_KEY_IDkid of the registered public keySMART_PRIVATE_KEY_FILEAbsolute path to a PEM private key, RSA 2048+ or EC P-384, mode 600SMART_TOKEN_URLSMART token endpoint; required unless NODE_ENV is development or test, where it is read from .well-known/smart-configurationPATIENT_POLICY_FILEAbsolute path to the JSON patient policy (principal, patients, tools); every tool call is denied when emptyLOCAL_SYNTHETIC_PRINCIPALLocal fixture identity matched against the policy, not an authenticated caller; every tool call is denied when emptyAUDIT_LOG_FILEOptional absolute path for the audit file sink; stderr when empty
About HIPAA FHIR MCP (prototype)
The server gives an AI client fifteen read-only tools for pulling patient summaries, observations, medications, conditions, allergies, immunizations, encounters, procedures, lab results and related FHIR R4 resources. Every call is checked against a local patient policy that denies access by default, so a caller only reaches the patients and tools it has been granted.
Responses are trimmed before they reach the model: codes, statuses and dates are kept while names, free text and notes are dropped. Each invocation writes one audit record in which the patient identifier is replaced by a keyed HMAC-SHA-256 hash, and an optional chain lets edited or removed records be detected.
The project is aimed at developers who want to see how a healthcare MCP server could be structured around access control and audit. It is explicitly a prototype that runs against synthetic sandbox data, and it is not a compliant clinical system.
Tools this server provides (15)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, all 15 tools only read data.
From the server's own tool labels and tool names; not verified by us.
- get_patient_summaryName suggests: reads
- Returns patient, active conditions, allergies and active medications for a patient id.
- get_patientName suggests: reads
- Returns the Patient resource for a patient id.
- search_observationsName suggests: reads
- Returns Observation resources for a patient filtered by code.
- get_medication_listName suggests: reads
- Returns active MedicationRequest resources for a patient.
- get_conditionsName suggests: reads
- Returns Condition resources for a patient.
- get_allergiesName suggests: reads
- Returns AllergyIntolerance resources for a patient.
- get_immunizationsName suggests: reads
- Returns Immunization resources for a patient.
- get_encountersName suggests: reads
- Returns Encounter resources for a patient, optionally since a date.
- find_patientName suggests: reads
- Finds Patient resources matching a system and value identifier within the caller's grant.
- get_proceduresName suggests: reads
- Returns Procedure resources for a patient, optionally since a date.
- get_diagnostic_reportsName suggests: reads
- Returns DiagnosticReport resources for a patient without narrative conclusions or attachments.
- get_lab_resultsName suggests: reads
- Returns laboratory Observation resources for a patient.
- get_vital_signsName suggests: reads
- Returns vital-sign Observation resources for a patient.
- get_care_teamName suggests: reads
- Returns CareTeam resources for a patient without member lists.
- get_goalsName suggests: reads
- Returns Goal resources for a patient with coded descriptions only.
What it does
- Fifteen read-only tools
- Covers patient summary, observations, medications, conditions, allergies, immunizations, encounters, procedures, lab results, vital signs, care team and goals.
- Deny-by-default patient policy
- Access requires an exact grant matching caller, patient and tool, and grants can carry an expiry time.
- Minimized responses
- Names, free text and notes are removed from results before the model receives them.
- HMAC-hashed audit records
- Each call produces one audit entry with the patient id hashed under a server-side key, and a verifier detects tampering.
- SMART Backend Services support
- Can authenticate to FHIR R4 servers that use SMART Backend Services client assertions.
- Stdio and HTTP transports
- Runs as a local stdio server or a Streamable HTTP server with token or demo access.
Good for
- Exploring how an AI agent could query synthetic FHIR patient records safely
- Testing access-control and audit patterns before building a healthcare integration
- Demonstrating read-only FHIR access to a team evaluating HIPAA-aligned MCP designs
- Running a local sandbox session against the public SMART synthetic patient server
Pricing
Open source
Free and MIT licensed; self-hosted.
Prices change. Check tanya-ok.github.io before you buy.
HIPAA FHIR MCP (prototype) FAQ
Is HIPAA FHIR MCP (prototype) safe to use with real patient data?
No. The project states it is a prototype for synthetic data only and is not for real PHI.
Can the tools write to patient records?
No. All tools are read-only and there is no write path to patient data.
Which FHIR servers can HIPAA FHIR MCP (prototype) connect to?
Any FHIR R4 server is supported, including servers that use SMART Backend Services, and it defaults to the public SMART sandbox.
How is patient identity protected in logs?
The audit record stores only an HMAC-SHA-256 of the patient id, computed with a server-side secret key.
Is HIPAA FHIR MCP (prototype) free?
Yes. HIPAA FHIR MCP (prototype) is open source, so you can use and self-host it for free.
What are the best alternatives to HIPAA FHIR MCP (prototype)?
The closest alternatives to HIPAA FHIR MCP (prototype) are Langcare MCP Fhir, MCP Fhir, Fhirhydrant, MCP Ratchet Clinical Charting and K01 Synthetic Health Data.
Where this comes from
- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.