Dicom MCP Server
[Top rated oral EANM'25] Model Context Protocol (MCP) for interacting with dicom servers (PACS etc.)
Dicom Mcp scores 48 (Fair), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Knowledge. GitHub shows 109 stars. Package registries report about 182 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
48 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 48 comes from
0 + 20 + 7 + 10 + 4 + 7 = 48. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 7 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "christianhinge-dicom-mcp": { "command": "uvx", "args": [ "dicom-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
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.).
๐ค 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ยณ"
---------------------------------------------------------------------
โจ 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] 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.
(Optional) Sample ORTHANC server
If you don't have a DICOM server available, you can run a local ORTHANC server using Docker:
Clone the repository and install test dependencies pip install -e ".[dev]
cd tests
docker compose up -d
cd ..
pytest # uploads dummy pdf data to ORTHANC server
UI at http://localhost:8042
๐ MCP Integration
Add to your client configuration (e.g. claude_desktop_config.json):
{
"mcpServers": {
"dicom": {
"command": "uvx",
"args": ["dicom-mcp", "/path/to/your_config.yaml"]
}
}
}
For development:
{
"mcpServers": {
"arxiv-mcp-server": {
"command": "uv",
"args": [
"--directory",
"path/to/cloned/dicom-mcp",
"run",
"dicom-mcp",
"/path/to/your_config.yaml"
]
}
}
}
Running over HTTP
By default the server speaks stdio and is launched by the MCP client. To run it as a standalone server instead, use the streamable-HTTP transport:
uv run dicom-mcp /path/to/your_config.yaml --transport http --host 127.0.0.1 --port 8000
Clients then connect to http://127.0.0.1:8000/mcp; Claude Desktop does so through mcp-remote:
{
"mcpServers": {
"dicom": {
"command": "npx",
"args": ["mcp-remote", "http://127.0.0.1:8000/mcp"]
}
}
}
The HTTP transport runs stateless, so the server can be restarted while the client keeps running. --transport sse (the legacy SSE transport) accepts the same --host/--port options.
The HTTP and SSE endpoints have no authentication. Bound to 127.0.0.1 (the default), they reject requests whose Host or Origin header names another site, which keeps web pages in your browser from reaching them through DNS rebinding. Binding to any other address exposes the server to every host that can reach it; keep it behind a firewall or an authenticating reverse proxy.
๐ ๏ธ Tools Overview
dicom-mcp provides four categories of tools for interaction with DICOM servers and DICOM data.
๐ Query Metadata
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
๐ Read DICOM Reports (PDF)
extract_pdf_text_from_dicom: Retrieve a specific DICOM instance containing an encapsulated PDF and extract its text content.
โก๏ธ Send DICOM Images
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.
โ๏ธ Utilities
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.
Example interaction
The tools can be chained together to answer complex questions:
๐ Contributing
Running Tests
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
Run tests using pytest:
# From the project root directory
pytest
Stop the Orthanc container:
cd tests
docker-compose down
Debugging
Use the MCP Inspector for debugging the server communication:
npx @modelcontextprotocol/inspector uv run dicom-mcp /path/to/your_config.yaml --transport stdio
๐ Acknowledgments
- Built using pynetdicom
- Uses PyPDF2 for PDF text extraction
Frequently asked questions
What is Dicom MCP Server?
[Top rated oral EANM'25] Model Context Protocol (MCP) for interacting with dicom servers (PACS etc.)
How do I install Dicom MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Dicom MCP Server runs locally from the PyPI package dicom-mcp with the command uvx dicom-mcp.
Is Dicom MCP Server free and open source?
Yes. Dicom MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Dicom MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Dicom MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Dicom MCP Server's trust score calculated?
Dicom MCP Server scores 48 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetโBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.