dicom-mcp logo

dicom-mcp

by ChristianHinge

dicom-mcp is a Model Context Protocol server for DICOM interactions, enabling Large Language Models to access and analyze medical imaging metadata. It provides tools to query and interact with DICOM servers, including extracting text from encapsulated PDF documents.

View on GitHub

Last updated: N/A

What is dicom-mcp?

dicom-mcp is a Model Context Protocol (MCP) server designed to facilitate interactions with DICOM (Digital Imaging and Communications in Medicine) servers. It allows AI assistants, particularly Large Language Models (LLMs), to query and analyze medical imaging metadata using standard DICOM networking protocols.

How to use dicom-mcp?

First, install the server using pip (pip install dicom-mcp). Then, configure the server with a YAML file specifying the DICOM nodes and calling AE titles. Finally, run the server using the command line (dicom-mcp /path/to/configuration.yaml) or integrate it with tools like Claude Desktop or Zed using their respective configuration methods. Example queries are provided in the README for various operations like listing nodes, switching nodes, searching for patients, studies, series, and instances, retrieving instances, and extracting text from DICOM encapsulated PDFs.

Key features of dicom-mcp

  • Query DICOM servers for patient, study, series, and instance information.

  • Extract text from encapsulated PDF documents stored in DICOM format.

  • Supports standard DICOM networking protocols.

  • Configurable DICOM nodes and calling AE titles via YAML configuration.

  • Compatible with Model Context Protocol specification.

Use cases of dicom-mcp

  • Enabling AI assistants to access and analyze medical imaging data.

  • Automating the extraction of relevant information from DICOM metadata for research or clinical purposes.

  • Integrating medical imaging data into LLM-powered healthcare applications.

  • Providing a standardized interface for querying DICOM servers across different institutions.

FAQ from dicom-mcp

What is a DICOM node?

A DICOM node represents a DICOM server, defined by its host, port, and AE title.

What is a calling AE title?

A calling AE title is the Application Entity title used by the dicom-mcp server when communicating with a DICOM node.

How do I configure the DICOM nodes and calling AE titles?

You configure them in a YAML configuration file as described in the README.

What is the Model Context Protocol?

The Model Context Protocol is a specification for enabling communication between LLMs and external tools or data sources.

What DICOM networking protocols are supported?

The server supports standard DICOM networking protocols used for querying and retrieving DICOM data.