Listed from the MCP registry; nobody on Odel publishes it.
Local read-only MCP server for DICOM, NIfTI and RT data with PHI-safe output.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx rt-imaging-mcp
MCP client config
{
"mcpServers": {
"rt-imaging": {
"command": "uvx",
"args": [
"rt-imaging-mcp"
]
}
}
}A local, read-only Model Context Protocol server that lets AI agents inspect medical image files (DICOM, NIfTI) on your own disk, with PHI-safe output by default.
Status: early development (pre-alpha). DICOM scanning, allowlisted DICOM metadata, NIfTI header information, RTSTRUCT, RTDOSE and RTPLAN summaries and approximate dose-volume metrics work today. Radiomics is planned, not implemented. Dose-volume results are validated on synthetic phantoms only, not against a planning system.
| Tool | What it returns |
|---|---|
dicom_scan_directory | Inventory of DICOM series below a directory: opaque series ids, modality, instance counts, image size, file counts. No UIDs. |
dicom_get_metadata | Allowlisted technical attributes of one DICOM file (geometry, bit depth, modality, transfer syntax, ...). |
dicom_list_allowed_tags | The attribute keywords dicom_get_metadata may currently return. |
nifti_info | Shape, voxel size, data type, units and orientation from the NIfTI header. Free-text header fields are never returned. |
rt_dose_summary | RTDOSE grid: dose type and units, grid size, voxel size, whole-grid maximum and mean dose, non-zero voxel count. No dose array, no grid position. |
rt_plan_summary | RTPLAN: intent, approval status, fractions, one entry per beam (type, radiation, energy, angles, dose, meterset) and prescription doses. No plan, beam or machine names. |
rt_dvh_metrics | Dose statistics, D(p) and V(t) for one structure of an RTSTRUCT on an RTDOSE grid (for example D95, D2, V20 Gy). Approximate; refuses mismatched frames of reference. |
rt_structure_summary | One entry per RTSTRUCT structure: interpreted type, contour and slice counts, extent, approximate planar volume. Names are returned only if standard (TG-263 style), otherwise null. |
All tools are read-only and are declared as such to the client.
--enable-tag by the human operator (not the agent).PTV_High are returned; others are null.--root (or RT_IMAGING_MCP_ROOT). .., absolute paths
outside the root and symlinks that leave the root are rejected.Known limits are listed in the threat model. In short: file and folder names are controlled by you and can contain
identifiers (use opaque_paths=true to omit them), and prompt injection through file content cannot be fully prevented.
Dose-volume metrics are checked against hand-calculated phantoms, against dicompyler-core on synthetic data, and against dicompyler-core on three patients of one public collection (preliminary: volume, mean dose, D50 and D2 agree on all 39 structures within the stated tolerances; a few D95 and V(t) differences are unexplained). They are not validated against a treatment planning system. See docs/validation.md for the numbers, the differences and how to reproduce them.
Requires Python 3.11+ and uv.
uvx rt-imaging-mcp --root /path/to/de-identified/images
For Claude Code:
claude mcp add rt-imaging -- uvx rt-imaging-mcp --root /path/to/images
git clone [https://github.com/MLwithDyy/rt-imaging-mcp](https://github.com/MLwithDyy/rt-imaging-mcp)
cd rt-imaging-mcp
uv sync
uv run rt-imaging-mcp --root /path/to/de-identified/images
Options: --enable-tag KEYWORD (repeatable, opt-in DICOM attributes), --enable-roi-name NAME (repeatable, extra
structure names to return), --max-files, --max-depth, --max-file-mb.
claude mcp add rt-imaging -- uv run --directory /path/to/rt-imaging-mcp rt-imaging-mcp --root /path/to/images
{
"mcpServers": {
"rt-imaging": {
"command": "uv",
"args": [
"run", "--directory", "/path/to/rt-imaging-mcp",
"rt-imaging-mcp", "--root", "/path/to/images"
]
}
}
}
On Windows, escape backslashes in JSON (D:\\Project\\rt-imaging-mcp) or use forward slashes.
Debug with the MCP Inspector:
npx @modelcontextprotocol/inspector uv run rt-imaging-mcp --root /path/to/images
uv sync
uv run pytest
uv run ruff check .
uv run mypy
pre-commit install
Tests use synthetic data generated at run time. Medical image files are blocked from commits by .gitignore
and a pre-commit hook. Do not attach real patient data to issues or pull requests.
dicom-mcp connects agents to DICOM network servers (PACS). This project
is complementary: it works on local files and focuses on PHI-safe output, radiotherapy objects and radiomics.
See CONTRIBUTING.md. Never attach real patient data to issues or pull requests. Report vulnerabilities privately as described in SECURITY.md.