MCP-MedImg

MCP-MedImg

Enables standardized PACS-AI integration through the Model Context Protocol, providing medical imaging workflows with DICOMweb transport, hierarchical PHI de-identification, and AI model orchestration.

Category
访问服务器

README

MCP-MedImg: Enabling Standardized PACS-AI Integration through the Model Context Protocol

License <!-- TODO: Add Zenodo DOI badge after registration -->

Reference implementation for the paper:
"MCP-MedImg: Enabling Standardized PACS-AI Integration through the Model Context Protocol"

Architecture

MCP-MedImg extends the Model Context Protocol (MCP) with a four-layer protocol stack specifically designed for medical imaging workflows:

  • L1 Transport: DICOMweb / DICOM C-MOVE / dicom-mcp compatibility wrapper
  • L2 Security & Compliance: Hierarchical PHI de-identification + 14-column cryptographic audit trail
  • L3 AI Orchestration: Model registry, inspection-type routing, version management, result formatting
  • L4 Application Semantics: Lesion encoding (RADS/BI-RADS), conditional verification state machine

Quick Start

Prerequisites

  • Ubuntu 22.04 (recommended) / macOS / Windows WSL2
  • Python 3.10+
  • Docker & Docker Compose
  • NVIDIA GPU with CUDA 12.1+ (optional; Mock engine available for CPU-only environments)

1. Clone & Install

git clone https://github.com/bailianfa/MCP-MedImg.git
cd MCP-MedImg
pip install -r requirements.txt

2. Start Orthanc PACS

docker-compose -f config/orthanc/docker-compose.yml up -d

3. Run Unit Tests (Protocol Validation)

pytest tests/ -v --tb=short
# Expected: 134 passing tests across 10 validation scenarios

4. Run Benchmarks

bash scripts/reproduce_lidc_benchmark.sh      # Table 18: LIDC-IDRI inference latency (n=200)
bash scripts/reproduce_heart_benchmark.sh     # Table 19, 22: MSD Heart 5-fold validation
bash scripts/reproduce_protocol_overhead.sh   # Table 20, 21: Protocol overhead decomposition (n=98)

Datasets & Model Weights

Due to file size limits, pretrained model weights and full preprocessed datasets are available via separate download:

Asset Size Description
nnU-Net 5-fold ensemble (MSD Heart) ~1.2 GB Trained weights, mean Dice 0.9325
LIDC-IDRI preprocessed (n=200) ~8 GB HU-normalized, resampled CT volumes
MSD Heart preprocessed (n=20) ~1 GB nnU-Net v2 auto-preprocessed
Benchmark logs ~50 MB Table 18-21 original timing logs

Download instructions:

bash scripts/download_pretrained_weights.sh

Key Experimental Results

Metric Value Details
MSD Heart 5-fold Dice 0.9325 +/- 0.0064 nnU-Net v2, 1000 epochs per fold
LIDC Inference (n=200) 5.40s mean end-to-end RTX 4090D, 22.58M params
Protocol Overhead 567.47ms (99.8% L1 Transport) n=98, 3.41% measurement error
Unit Tests 134 passing, 1 skipped 10 validation scenarios

Security & Audit

This implementation addresses the MCP-38 threat taxonomy for medical imaging:

  • Hierarchical PHI de-identification (Patient / Department / System level)
  • Cryptographic audit trails with SHA-256 hashing
  • Containerized sandbox execution
  • Input sanitization against indirect prompt injection

Reproducibility

All experimental results from the paper can be reproduced via the scripts in scripts/.

Paper Table/Figure Reproduce Script Expected Runtime
Table 16 (134 tests) pytest tests/ ~5 min (CPU)
Table 18 (LIDC, n=200) scripts/reproduce_lidc_benchmark.sh ~20 min (RTX 4090D)
Table 19 (Heart, n=20) scripts/reproduce_heart_benchmark.sh ~12 min (RTX 4090D)
Table 20-21 (Overhead) scripts/reproduce_protocol_overhead.sh ~15 min (RTX 4090D)
Table 22 (Dice) Included in Heart script --

Citation

If you use this code, please cite:

@article{mcp_medimg_2026,
  title={MCP-MedImg: Enabling Standardized PACS-AI Integration through the Model Context Protocol},
  author={[Author Names]},
  journal={[Journal Name]},
  year={2026}
}

License

This project is licensed under the Apache License 2.0 - see LICENSE file.

Disclaimer

This is a research prototype for protocol validation and reproducibility. Not for clinical use without appropriate regulatory approval (FDA/NMPA/CE).

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选