CD

christianhinge/dicom-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

109 stars 30 forks 质量 81 趋势 14MIT

christianhinge/dicom-mcp 是从 https://github.com/christianhinge/dicom-mcp. 导入的 MCP 服务器候选

概览

christianhinge/dicom-mcp 是从 https://github.com/christianhinge/dicom-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

dicom-mcp 服务器使 AI 助手能够查询、读取和移动 DICOM 服务器(PACS、VNA 等)上的数据。

🤝 贡献 📝 报告漏洞 • 📝 博客文章1

✨ 核心能力

dicom-mcp 提供以下工具:

  • ** 🔍 查询元数据**:使用多种条件搜索患者、研究、系列和实例。
  • ** 📄 阅读DICOM报告(PDF)**:检索包含封装PDF(如临床报告)的DICOM实例并提取文本内容。
  • ** ➡️ 发送DICOM图像**:将系列或研究发送到其他DICOM目的地,例如用于图像分割、分类等的AI端点。
  • ** ⚙️ 工具**:管理连接并理解查询选项。

🚀 快速启动

📥 安装

使用UV或PIP安装:

或者通过克隆存储库:

⚙️ 配置

[dicom-mcp 需要一个 YAML 配置文件(config.yaml 或类似文件)来定义 DICOM 节点并调用 AE 标题。可以根据示例 ORTHANC 服务器的兼容性调整配置或保持原样配置。

[!警告] DICOM-MCP不适用于临床用途,也不应与现有医院数据库或包含患者敏感数据的数据库连接。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

DICOM MCP Server for Medical Imaging Systems 🏥

The dicom-mcp server enables AI assistants to query, read, and move data on DICOM servers (PACS, VNA, etc.).

---------------------------------------------------------------------
🧑‍⚕️ User: "Any significant findings in John Doe's previous CT report?"

🧠 LLM → ⚙️ Tools:
   query_patients → query_studies → query_series → extract_pdf_text_from_dicom

💬 LLM Response: "The report from 2025-03-26 mentions a history of splenomegaly (enlarged spleen)"

🧑‍⚕️ User: "What's the volume of his spleen at the last scan and the scan today?"

🧠 LLM → ⚙️ Tools:
   (query_studies → query_series → move_series → query_series → extract_pdf_text_from_dicom) x2
   (The move_series tool sends the latest CT to a DICOM segmentation node, which returns volume PDF report)

💬 LLM Response: "last year 2024-03-26: 412cm³, today 2025-04-10: 350cm³"
---------------------------------------------------------------------

✨ Core Capabilities

dicom-mcp provides tools to:

  • 🔍 Query Metadata: Search for patients, studies, series, and instances using various criteria.
  • 📄 Read DICOM Reports (PDF): Retrieve DICOM instances containing encapsulated PDFs (e.g., clinical reports) and extract the text content.
  • ➡️ Send DICOM Images: Send series or studies to other DICOM destinations, e.g. AI endpoints for image segmentation, classification, etc.
  • ⚙️ Utilities: Manage connections and understand query options.

🚀 Quick Start

📥 Installation

Install using uv or pip:

uv tool install dicom-mcp

Or by cloning the repository:

# Clone and set up development environment
git clone https://github.com/ChristianHinge/dicom-mcp
cd dicom mcp

# Create and activate virtual environment
uv venv
source .venv/bin/activate

# Install with test dependencies
uv pip install -e ".[dev]"

⚙️ Configuration

dicom-mcp requires a YAML configuration file (config.yaml or similar) defining DICOM nodes and calling AE titles. Adapt the configuration or keep as is for compatibility with the sample ORTHANC Server.

nodes:
  main:
    host: "localhost"
    port: 4242 
    ae_title: "ORTHANC"
    description: "Local Orthanc DICOM server"

current_node: "main"
calling_aet: "MCPSCU" 

[!WARNING]

在 GitHub 查看完整 README

安装

uvx dicom-mcp /path/to/your_config.yaml
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "dicom": { "command": "uvx", "args": ["dicom-mcp", "/path/to/your_config.yaml"] } } }