DICOM MCP Server

by christianhinge

100 stars
292 downloads
Not rated
GitHub

About

Enables interaction with medical imaging systems through DICOM networking protocols for querying patient information, studies, series, and instances, as well as extracting text from encapsulated PDF documents.

Details

Author
christianhinge
GitHub stars
100
Downloads
292
Categories
Database, Other, Developer Tools, Design, Workplace, File Management, AI, Search, Infrastructure, Frontend, Knowledge Base
Tags
#healthcare, #data-analysis

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.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name DICOM MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install using uv or pip:

uv tool install dicom-mcp
Or by cloning the repository:

git clone https://github.com/ChristianHinge/dicom-mcp
cd dicom mcp

uv venv
source .venv/bin/activate

uv pip install -e ".[dev]"

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.

```yaml

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "dicom mcp server": {
            "dicom-mcp": {
                "command": "uv",
                "args": [
                    "tool",
                    "install",
                    "dicom-mcp"
                ]
            }
        }
    }
}

McpServers

{
    "dicom-mcp": {
        "command": "uv",
        "args": [
            "tool",
            "install",
            "dicom-mcp"
        ]
    }
}

DICOM MCP Server for Medical Imaging Systems 🏥

Thedicom-mcpserver enables AI assistants to query, read, and move data on DICOM servers (PACS, VNA, etc.).

🤝Contribute• 📝Report Bug• 📝Blog Post 1

--------------------------------------------------------------------- 🧑‍⚕️ 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³" ---------------------------------------------------------------------

- 🔍 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.

# 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]"

dicom-mcprequires a YAML configuration file (config.yamlor 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] DICOM-MCP is not meant for clinical use, and should not be connected with live hospital databases or databases with patient-sensitive data. Doing so could lead to both loss of patient data, and leakage of patient data onto the internet. DICOM-MCP can be used with locally hosted open-weight LLMs for complete data privacy.

If you don't have a DICOM server available, you can run a local ORTHANC server using Docker:

Clone the repository and install test dependenciespip install -e ".[dev]

cd tests docker ocmpose up -d cd .. pytest # uploads dummy pdf data to ORTHANC server

Add to your client configuration (e.g.claude_desktop_config.json):

{ "mcpServers": { "dicom": { "command": "uvx", "args": ["dicom-mcp", "/path/to/your_config.yaml"] } } }
{ "mcpServers": { "arxiv-mcp-server": { "command": "uv", "args": [ "--directory", "path/to/cloned/dicom-mcp", "run", "dicom-mcp", "/path/to/your_config.yaml" ] } } }

dicom-mcpprovides four categories of tools for interaction with DICOM servers and DICOM data.

- query_patients: Search for patients based on criteria like name, ID, or birth date.
- query_studies: Find studies using patient ID, date, modality, description, accession number, or Study UID.
- query_series: Locate series within a specific study using modality, series number/description, or Series UID.
- query_instances: Find individual instances (images/objects) within a series using instance number or SOP Instance UID

- extract_pdf_text_from_dicom: Retrieve a specific DICOM instance containing an encapsulated PDF and extract its text content.

- move_series: Send a specific DICOM series to another configured DICOM node using C-MOVE.
- move_study: Send an entire DICOM study to another configured DICOM node using C-MOVE.

- list_dicom_nodes: Show the currently active DICOM node and list all configured nodes.
- switch_dicom_node: Change the active DICOM node for subsequent operations.
- verify_connection: Test the DICOM network connection to the currently active node using C-ECHO.
- get_attribute_presets: List the available levels of detail (minimal, standard, extended) for metadata query results.

The tools can be chained together to answer complex questions:

Tests require a running Orthanc DICOM server. You can use Docker:

# Navigate to the directory containing docker-compose.yml (e.g., tests/) cd tests docker-compose up -d
# From the project root directory pytest

Use the MCP Inspector for debugging the server communication:

npx @modelcontextprotocol/inspector uv run dicom-mcp /path/to/your_config.yaml --transport stdio

- Built usingpynetdicom
- Uses
PyPDF2for PDF text extraction

Query Apple Health data using natural language and SQL.

A nutrition analysis platform integrating Canada's Food Guide recipes with Health Canada's official nutrition databases.

Local-first Garmin data warehouse: sync once into SQLite you own, then analyze trends, correlations, baselines and anomalies offline, even when Garmin's API breaks.

Pharmacovigilance intelligence — 165 tools for drug safety data (FDA FAERS, EudraVigilance, WHO, PubMed, ClinicalTrials.gov), signal detection (PRR/ROR/IC/EBGM), causality assessment, and guided research courses. Open, no auth required.

Look up half-life and brand details on medications then calculate medication concentration levels over time

Official MCP server for dbt (data build tool) providing integration with dbt Core/Cloud CLI, project metadata discovery, model information, and semantic layer querying capabilities.

Provides AI assistants with a secure and structured way to explore and analyze data in GreptimeDB.

Build robust data workflows, integrations, and analytics on a single intuitive platform.

Query and analyze data with MotherDuck and local DuckDB

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.