HIPAA FHIR MCP

v0.9.0
io.github.tanya-ok/hipaa-fhir-mcp Checked 1 day ago Published 5 days ago

Fifteen read-only FHIR R4 tools with per-patient grants and HMAC audit.

Not smoke-tested: mcpb packages are not smoke-tested yet.

Values you need

VariableWhat it is
AUDIT_HMAC_KEYrequired secret 64 hex characters used to HMAC patient ids in audit records
FHIR_BASE_URLoptional FHIR R4 base URL; defaults to the public synthetic SMART sandbox Default: https://r4.smarthealthit.org
CALLER_IDENTITYoptional Operator label written into audit records, not an authenticated identity Default: mcp-client-local
SMART_CLIENT_IDoptional SMART Backend Services client id; set with SMART_KEY_ID and SMART_PRIVATE_KEY_FILE
SMART_KEY_IDoptional kid of the registered public key
SMART_PRIVATE_KEY_FILEoptional Absolute path to a PEM private key, RSA 2048+ or EC P-384, mode 600
SMART_TOKEN_URLoptional SMART token endpoint; required unless NODE_ENV is development or test, where it is read from .well-known/smart-configuration
PATIENT_POLICY_FILEoptional Absolute path to the JSON patient policy (principal, patients, tools); every tool call is denied when empty
LOCAL_SYNTHETIC_PRINCIPALoptional Local fixture identity matched against the policy, not an authenticated caller; every tool call is denied when empty
AUDIT_LOG_FILEoptional Optional absolute path for the audit file sink; stderr when empty

No installable package or endpoint was found. See the README for build-from-source steps.

For AI agents

  1. Ask the user for: AUDIT_HMAC_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (none) and that the values above are set.

Machine-readable: install.md · manifest.json