DICOM/HL7/FHIR Interoperability MCP Server

io.github.NyxToolsDevPublished by GitHub account NyxToolsDevv0.2.0Updated Oct 24, 2026

Bridges DICOM, HL7v2, and FHIR with cross-standard mapping and optional PACS connectivity.

Overview

AI-generated overview

A local MCP server that gives an assistant DICOM, HL7v2 and FHIR reference lookups, cross-standard mapping, and optional PACS querying.

What you can do
Look up and explain DICOM tags, HL7 segments and HL7 table values, and parse HL7 v2.x messages into readable fields (free tools). Map DICOM tags to HL7 fields and HL7 fields to FHIR R4 resources, validate HL7 messages, decode vendor private tags, generate sample messages, and explain integration patterns (premium). Generate Mirth Connect channel configurations (premium). Check PACS connectivity, query studies and series, fetch study metadata, and retrieve images by C-MOVE to a destination AE title (premium, PACS add-on). Produce a study summary that auto-maps DICOM through HL7 to FHIR with a generated ORM message skeleton.
When to use it
Useful for healthcare integration work: understanding DICOM tags or HL7 messages, planning DICOM-to-HL7 or HL7-to-FHIR mappings, drafting Mirth channels, or looking up studies on a PACS. The free reference tools need no account or PACS connection.
Requirements
Runs locally as a Python package (pip install dicom-hl7-mcp, or the [pacs] extra for PACS connectivity), typically launched via uvx in a desktop client config. Premium tools need DICOM_HL7_LICENSE_KEY. Traditional DICOM needs DICOM_HL7_PACS_AE_TITLE, DICOM_HL7_PACS_HOST and DICOM_HL7_PACS_PORT; DICOMweb needs DICOM_HL7_DICOMWEB_URL plus DICOM_HL7_DICOMWEB_TOKEN or DICOM_HL7_DICOMWEB_USERNAME and DICOM_HL7_DICOMWEB_PASSWORD. Network access to the PACS is required for connectivity tools.
Before you install
PACS tools access real patient data (PHI); the README warns not to use PACS connectivity with cloud-hosted LLMs unless organizational policy permits sending PHI to that provider. Output redaction is opt-in via DICOM_HL7_PHI_REDACT, and C-MOVE retrieval is disabled unless DICOM_HL7_PACS_ALLOW_RETRIEVE is set to true. Premium features require a paid license key. PACS credentials and tokens are supplied through environment variables. Compliance with HIPAA and organizational policy remains the user’

Installation

In SourceWeft

  1. Open DICOM/HL7/FHIR Interoperability MCP Server in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

DICOM/HL7/FHIR Interoperability MCP Server

[NyxToolsDev/dicom-hl7-mcp-server MCP server]

The only MCP server that bridges DICOM, HL7v2, and FHIR in one package — with optional PACS connectivity.

Built by a healthcare IT engineer with 16 years of PACS, RIS, and integration experience. This isn't a wrapper around a FHIR API or a DICOM tag dictionary — it's the interoperability knowledge that takes years on the job to build, plus the ability to connect to real PACS systems.

What Makes This Different

CapabilityThis ServerDICOM-only serversFHIR-only servers
DICOM tag lookup + vendor quirksYesYesNo
HL7v2 message parsingYesNoNo
FHIR R4 resource mappingYesNoYes
DICOM ↔ HL7v2 mappingYesNoNo
HL7v2 → FHIR conversionYesNoNo
Mirth Connect channel generationYesNoNo
PACS connectivity (C-FIND/C-MOVE)YesSomeNo
DICOMweb (QIDO-RS/WADO-RS)YesNoNo
Query PACS + auto-map to HL7/FHIRYesNoNo
Vendor private tag decoding (GE, Siemens, Philips)YesSomeNo
Integration pattern knowledge (IHE SWF, ADT flows)YesNoNo

Tools

Reference Tools (Free)

ToolWhat It Does
lookup_dicom_tagLook up any DICOM tag by number or keyword
explain_dicom_tagDetailed tag explanation with vendor quirks and gotchas
parse_hl7_messageParse HL7 v2.x messages into human-readable format
explain_hl7_segmentExplain segment fields, data types, and usage
lookup_hl7_tableLook up HL7 table values (Administrative Sex, Patient Class, etc.)

Mapping & Generation Tools (Premium)

ToolWhat It Does
map_dicom_to_hl7Map DICOM tags to HL7 v2 fields with conversion notes
map_hl7_to_fhirMap HL7 v2 fields to FHIR R4 resources
generate_mirth_channelGenerate Mirth Connect channel configurations
validate_hl7_messageValidate HL7 messages against the standard
explain_integration_patternExplain healthcare integration patterns with flow diagrams
decode_private_tagsDecode vendor private DICOM tags (GE, Siemens, Philips, etc.)
generate_sample_messageGenerate realistic sample HL7 messages for testing

PACS Connectivity Tools (Premium)

ToolWhat It Does
pacs_echoVerify PACS connectivity (C-ECHO or DICOMweb ping)
pacs_querySearch for studies/series by patient, date, modality, accession
pacs_get_metadataRetrieve detailed study/series metadata from PACS
pacs_retrieveC-MOVE images to a destination AE title
pacs_study_summaryQuery a study + auto-map through DICOM→HL7→FHIR with generated ORM

Installation

Reference tools only (no PACS connectivity):

bash
pip install dicom-hl7-mcp

With PACS connectivity (adds pynetdicom + httpx):

bash
pip install dicom-hl7-mcp[pacs]

Configuration

Basic (Reference Tools Only)

Add to your Claude Desktop config:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{  "mcpServers": {    "dicom-hl7-assistant": {      "command": "uvx",      "args": ["dicom-hl7-mcp"]    }  }}

With Premium License

json
{  "mcpServers": {    "dicom-hl7-assistant": {      "command": "uvx",      "args": ["dicom-hl7-mcp"],      "env": {        "DICOM_HL7_LICENSE_KEY": "your-license-key-here"      }    }  }}

With PACS Connectivity (Traditional DICOM)

Connect to a PACS using C-FIND/C-MOVE/C-ECHO:

json
{  "mcpServers": {    "dicom-hl7-assistant": {      "command": "uvx",      "args": ["--with", "dicom-hl7-mcp[pacs]", "dicom-hl7-mcp"],      "env": {        "DICOM_HL7_LICENSE_KEY": "your-license-key-here",        "DICOM_HL7_PACS_AE_TITLE": "YOUR_PACS",        "DICOM_HL7_PACS_HOST": "pacs.hospital.org",        "DICOM_HL7_PACS_PORT": "4242",        "DICOM_HL7_LOCAL_AE_TITLE": "CLAUDE_MCP"      }    }  }}

With PACS Connectivity (DICOMweb)

Connect to a DICOMweb-capable PACS (QIDO-RS/WADO-RS):

json
{  "mcpServers": {    "dicom-hl7-assistant": {      "command": "uvx",      "args": ["--with", "dicom-hl7-mcp[pacs]", "dicom-hl7-mcp"],      "env": {        "DICOM_HL7_LICENSE_KEY": "your-license-key-here",        "DICOM_HL7_DICOMWEB_URL": "https://pacs.hospital.org/dicom-web",        "DICOM_HL7_DICOMWEB_AUTH": "bearer",        "DICOM_HL7_DICOMWEB_TOKEN": "your-auth-token"      }    }  }}

Environment Variables

VariableRequiredDefaultDescription
DICOM_HL7_LICENSE_KEYFor premium—Premium license key
DICOM_HL7_LOG_LEVELNoINFOLogging level
Traditional DICOM
DICOM_HL7_PACS_AE_TITLEFor DIMSE—Remote PACS AE title
DICOM_HL7_PACS_HOSTFor DIMSE—Remote PACS hostname/IP
DICOM_HL7_PACS_PORTFor DIMSE—Remote PACS port
DICOM_HL7_LOCAL_AE_TITLENoDICOM_HL7_MCPThis server's AE title
DICOMweb
DICOM_HL7_DICOMWEB_URLFor DICOMweb—DICOMweb base URL
DICOM_HL7_DICOMWEB_AUTHNononeAuth type: none, bearer, basic
DICOM_HL7_DICOMWEB_TOKENFor bearer—Bearer token
DICOM_HL7_DICOMWEB_USERNAMEFor basic—Basic auth username
DICOM_HL7_DICOMWEB_PASSWORDFor basic—Basic auth password
Safety
DICOM_HL7_PACS_PROTOCOLNoautoProtocol: auto, dimse, dicomweb
DICOM_HL7_PACS_ALLOW_RETRIEVENofalseEnable C-MOVE (true to enable)
DICOM_HL7_PHI_REDACTNofalseRedact patient name/ID in output

PHI Safety

When connected to a real PACS, query results contain Protected Health Information (PHI).

  • Log redaction: PHI fields are automatically stripped from all log output
  • Result warnings: Every PACS query result includes a PHI warning banner
  • Optional redaction: Set DICOM_HL7_PHI_REDACT=true to replace patient name/ID with [REDACTED] in tool output
  • No disk caching: PACS query results are never written to disk
  • C-MOVE is disabled by default: Must explicitly set DICOM_HL7_PACS_ALLOW_RETRIEVE=true

Important: Do not use PACS connectivity with cloud-hosted LLMs unless your organization's policies permit sending PHI to that LLM provider. For on-premises deployments or local LLM setups, this is not a concern.

Real-World Examples

"What is DICOM tag (0008,0050)?"

AccessionNumber — SH — RIS-generated number that identifies the order. THE key field for matching RIS orders to PACS studies.

Parse an HL7 message

"Parse this HL7 message:"

MSH|^~\&|RIS|RAD|EMR|HOSP|20240315140000||ORU^R01|MSG003|P|2.5.1PID|1||MRN12345^^^HOSP^MR||DOE^JOHN||19650315|MOBR|1|ORD001|ACC001|CTABD^CT Abdomen^L|||20240315130000OBX|1|FT|&GDT^Report||FINDINGS: Normal CT.||||||F

Returns each segment parsed with field names, values, table lookups, and contextual explanations.

Query PACS + Auto-Map to HL7/FHIR (Premium)

"Look up accession number ACC12345 in PACS and show me the HL7/FHIR mapping"

Returns a complete interoperability summary:

  1. Study metadata from PACS (patient, date, modality, description)
  2. DICOM→HL7 field mapping for every key field
  3. HL7→FHIR R4 resource mapping
  4. A pre-filled HL7 ORM^O01 message skeleton
  5. Integration pattern context (IHE SWF workflow)

Map DICOM → HL7 (Premium)

"What HL7 field does DICOM Accession Number map to?"

Returns: OBR-3 / ORC-3 (Filler Order Number) with data type conversion notes (SH → EI) and mapping pitfalls.

Generate a Mirth Channel (Premium)

"Generate a Mirth channel for receiving ADT messages and writing to a FHIR server"

Returns: Complete channel config with MLLP source, FHIR HTTP destination, transformer steps, event filtering, and implementation notes.

Knowledge Base

Standards Coverage

  • DICOM: ~200 most common tags, SOP Classes, Transfer Syntaxes, private tag ranges for 7 vendors
  • HL7 v2.x: 15 segments, 20+ tables, message types (ADT, ORM, ORU, MDM, SIU, DFT, BAR), versions 2.3-2.9
  • FHIR R4: Mappings for Patient, Encounter, ServiceRequest, DiagnosticReport, Observation, AllergyIntolerance, Condition, RelatedPerson, Coverage
  • Integration Patterns: ADT Feed, Order-to-Result, Radiology Workflow (IHE SWF), Lab Interface, Report Distribution, Patient Merge, Charge Posting

Where the Knowledge Comes From

The tags, segments, and mappings are from published standards (DICOM PS3.6, HL7 v2.5.1, FHIR R4, HL7 v2-to-FHIR IG). The vendor quirks, integration tips, and "watch out for this" notes come from 16 years of building PACS/RIS/HIS interfaces in production healthcare environments.

Premium License

Free tier gives you DICOM tag lookup, HL7 parsing, and segment explanation — the tools you use every day.

Premium unlocks cross-standard mapping, Mirth generation, validation, PACS connectivity, and the deep integration knowledge that takes years to build.

Get your license: nyxtools.gumroad.com

FAQ

Do I need a license for the free tools? No. Install and use the 5 free tools immediately. No account, no sign-up.

Do I need PACS connectivity? No. The reference and mapping tools work without any PACS connection. PACS connectivity is optional — install with pip install dicom-hl7-mcp[pacs] only if you want to query real PACS systems.

What HL7 versions are supported? v2.3 through v2.9, with focus on v2.5.1 (the most widely deployed in US healthcare).

Is this HIPAA compliant? The reference tools process standards metadata, not patient data. PACS connectivity tools access real patient data — PHI safety measures are built in (log redaction, optional output redaction, C-MOVE disabled by default), but you are responsible for ensuring use complies with your organization's policies.

What PACS systems are supported? Any PACS that supports DICOM C-FIND/C-ECHO (virtually all of them) or DICOMweb (QIDO-RS/WADO-RS). Tested with Orthanc, RamSoft, and DCM4CHEE.

Development

bash
git clone https://github.com/NyxToolsDev/dicom-hl7-mcp-server.gitcd dicom-hl7-mcp-serverpip install -e ".[dev]"pytest

License

MIT License. See LICENSE.


Built by NyxTools

Source: README.md at commit 7091728

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.2.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts