DICOM/HL7/FHIR Interoperability MCP Server

io.github.NyxToolsDev由 GitHub 账号 NyxToolsDev 发布v0.2.0更新于 Oct 24, 2026

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

概览

AI 生成的概览

本地 MCP 服务器,为助手提供 DICOM、HL7v2 与 FHIR 参考查询、跨标准映射,以及可选的 PACS 查询能力。

可以做什么
查询并解释 DICOM 标签、HL7 段与 HL7 表值,并将 HL7 v2.x 消息解析为可读字段(免费工具)。将 DICOM 标签映射到 HL7 字段、将 HL7 字段映射到 FHIR R4 资源,校验 HL7 消息,解码厂商私有标签,生成示例消息,并解释集成模式(付费)。生成 Mirth Connect 通道配置(付费)。检查 PACS 连通性、按患者/日期/模态查询检查与序列、获取检查元数据,并通过 C-MOVE 将影像检索到目标 AE 标题(付费,需 PACS 附加组件)。生成检查摘要,自动完成 DICOM 到 HL7 再到 FHIR 的映射并附 ORM 消息骨架。
适用场景
适合医疗集成工作:理解 DICOM 标签或 HL7 消息、规划 DICOM 到 HL7 或 HL7 到 FHIR 的映射、起草 Mirth 通道,或在 PACS 上查找检查。免费参考工具无需账号或 PACS 连接。
运行要求
以 Python 包在本地运行(pip install dicom-hl7-mcp,PACS 连接需 [pacs] 附加包),通常在桌面客户端配置中通过 uvx 启动。付费工具需要 DICOM_HL7_LICENSE_KEY。传统 DICOM 需要 DICOM_HL7_PACS_AE_TITLE、DICOM_HL7_PACS_HOST 和 DICOM_HL7_PACS_PORT;DICOMweb 需要 DICOM_HL7_DICOMWEB_URL 以及 DICOM_HL7_DICOMWEB_TOKEN 或 DICOM_HL7_DICOMWEB_USERNAME 与 DICOM_HL7_DICOMWEB_PASSWORD。连接工具需要能访问 PACS 的网络。
安装前请注意
PACS 工具会访问真实患者数据(PHI);README 警告,除非组织政策允许将 PHI 发送给该提供商,否则不要将 PACS 连接与云端托管的 LLM 一起使用。输出脱敏需通过 DICOM_HL7_PHI_REDACT 主动开启,C-MOVE 检索默认关闭,需将 DICOM_HL7_PACS_ALLOW_RETRIEVE 设为 true。付费功能需要付费许可证密钥。PACS 凭据与令牌通过环境变量提供。是否符合 HIPAA 及组织政策由用户自行负责。

安装

在 SourceWeft 中

  1. 打开 控制台中的 DICOM/HL7/FHIR Interoperability MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

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

来源:README.md,提交 7091728

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分