rt-imaging-mcp
v0.1.1Local read-only MCP server for DICOM, NIfTI and RT data with PHI-safe output.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dicom_scan_directory Scan a directory for DICOM series
Inventory DICOM series below a directory (path relative to the root). Returns opaque series ids, modality, instance counts and image size. Study and series UIDs are never returned. Set opaque_paths=True to omit all file and directory names. Only DICOM Part 10 files (with the DICM preamble) are detected.
| Parameter | Type | Description |
|---|---|---|
directory | string | |
opaque_paths | boolean |
dicom_get_metadata Read allowlisted DICOM metadata
Read allowlisted technical attributes of one DICOM file (path relative to the root). Use dicom_list_allowed_tags to see which keywords are allowed. Requesting any other keyword fails. Patient identifiers and pixel data are never returned.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
keywords |
dicom_list_allowed_tags List allowed DICOM attribute keywords
List the DICOM attribute keywords that dicom_get_metadata can currently return.
nifti_info Read NIfTI header information
Return shape, voxel size, data type, units and orientation of a NIfTI file. Only structural header fields are returned. Free-text header fields and the image data are never read into the output.
| Parameter | Type | Description |
|---|---|---|
path * | string |
rt_structure_summary Summarise an RT structure set
Summarise an RTSTRUCT file (path relative to the root): one entry per structure. Structure names are returned only when they match a standard name (TG-263 style); other names are redacted. Returns interpreted type, contour and slice counts, extent in mm and an approximate planar-contour volume. No coordinates or free-text labels.
| Parameter | Type | Description |
|---|---|---|
path * | string |
rt_dose_summary Summarise an RT dose grid
Summarise an RTDOSE file (path relative to the root). Returns dose type and units, grid size, voxel size and whole-grid dose statistics (maximum, mean, non-zero voxel count). No dose array, grid position or identifiers.
| Parameter | Type | Description |
|---|---|---|
path * | string |
rt_plan_summary Summarise an RT plan
Summarise an RTPLAN file (path relative to the root). Returns intent, approval status, fractions, one entry per beam (type, radiation, energy, angles, dose and meterset) and prescription doses. Plan, beam and machine names and other free text are never returned.
| Parameter | Type | Description |
|---|---|---|
path * | string |
rt_dvh_metrics Dose-volume metrics for one structure
Dose statistics and D/V metrics for one structure (paths relative to the root). Combines an RTSTRUCT and an RTDOSE that share a frame of reference. Use rt_structure_summary to find roi_number. dose_percentages gives D(p), the highest dose that at least p percent of the volume receives (default 95, 50, 2). volume_thresholds_gy gives V(t), the volume receiving at least t Gy (default 20). Results are approximate (voxel centres, nearest contour slice) and not validated against a planning system.
| Parameter | Type | Description |
|---|---|---|
dose_path * | string | |
roi_number * | integer | |
struct_path * | string | |
dose_percentages | ||
volume_thresholds_gy |