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 連線、依病患/日期/ modality 查詢檢查與序列、取得檢查中繼資料,並以 C-MOVE 將影像擷取到目標 AE title(付費,需 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 分