DICOM Agent

v0.1.0
io.github.arunmk-ms/dicom-agent-mcp Checked 2 hours ago Published 28 days ago

Search, retrieve, store, view, measure and de-identify DICOM images over DIMSE and DICOMweb.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_nodes

List the configured DICOM nodes (PACS, VNA, DICOMweb services) and their protocols.

echo

Check connectivity to a node (C-ECHO for DIMSE, a minimal QIDO-RS request for DICOMweb).

ParameterTypeDescription
node *stringName of a configured DICOM node (see list_nodes).

get_metadata

Read instance-level metadata without downloading pixel data (WADO-RS metadata or C-FIND).

ParameterTypeDescription
node *stringName of a configured DICOM node (see list_nodes).
study_uid *stringStudyInstanceUID.
fieldsLimit or extend the returned attributes.
limitintegerMaximum instances to return.
series_uidSeriesInstanceUID to narrow the request.
sop_instance_uidSOPInstanceUID to narrow the request (requires series_uid).

retrieve

Download a study, series or instance into the local cache (C-GET or WADO-RS). Returns file paths.

ParameterTypeDescription
node *stringName of a configured DICOM node (see list_nodes).
study_uid *stringStudyInstanceUID.
series_uidSeriesInstanceUID to narrow the request.
sop_instance_uidSOPInstanceUID to narrow the request (requires series_uid).

move

Ask a DIMSE archive to send data to another DICOM node (C-MOVE).

ParameterTypeDescription
destination *stringDestination node name or an AE title known to the source archive.
node *stringName of a configured DICOM node (see list_nodes).
study_uid *stringStudyInstanceUID.
series_uidSeriesInstanceUID to narrow the request.
sop_instance_uidSOPInstanceUID to narrow the request (requires series_uid).

store

Send local DICOM files to a node (C-STORE or STOW-RS).

ParameterTypeDescription
node *stringName of a configured DICOM node (see list_nodes).
paths *arrayLocal DICOM files or directories inside the allowed paths.

transfer

Copy data between any two nodes, including DIMSE to DICOMweb, through the local cache.

ParameterTypeDescription
destination *stringNode to write to.
source *stringNode to read from.
study_uid *stringStudyInstanceUID.
series_uidSeriesInstanceUID to narrow the request.
sop_instance_uidSOPInstanceUID to narrow the request (requires series_uid).

list_local_files

List DICOM files in the local cache.

ParameterTypeDescription
limitinteger
study_uidOnly list files for this study.

read_local_metadata

Read the full header of a local DICOM file. Pixel data is not loaded.

ParameterTypeDescription
path *stringPath to a local DICOM file inside the allowed paths.
max_depthintegerHow deep to expand sequences.

render_image

Render one frame of a local DICOM image as a PNG you can look at. Applies the modality rescale (e.g. HU) and a display window, corrects non-square pixels, and reports which patient direction each image edge faces. Also returns the input fingerprint.

ParameterTypeDescription
path *stringPath to a local DICOM file inside the allowed paths (e.g. from retrieve).
frameinteger0-based frame index for multi-frame images.
max_sizeintegerLongest edge of the PNG in pixels.
windowstringDisplay window: auto (file window or percentiles), minmax, or a CT preset: lung, mediastinum, soft_tissue, abdomen, liver, bone, brain, subdural, stroke.
window_centerExplicit window center (overrides window).
window_widthExplicit window width (overrides window).

pixel_statistics

Pixel value statistics in modality units (HU for CT): mean, std, min, max, percentiles and area in mm2.

ParameterTypeDescription
path *stringPath to a local DICOM file inside the allowed paths (e.g. from retrieve).
frameinteger0-based frame index for multi-frame images.
roiRegion of interest; omit for the whole frame.

measure_distance

Measure a distance in mm between two pixel positions and give their patient coordinates.

ParameterTypeDescription
end *array[row, column] in pixels.
path *stringPath to a local DICOM file inside the allowed paths (e.g. from retrieve).
start *array[row, column] in pixels.
frameinteger0-based frame index for multi-frame images.

check_geometry

Check series geometry before measuring or reconstructing. Reports orientation, spacing and extent per series, and flags missing or duplicate slices, mixed orientations, non-uniform spacing, gantry tilt and multiple frames of reference.

ParameterTypeDescription
paths *arrayLocal DICOM files or directories inside the allowed paths.

render_mpr

Reconstruct an axial, coronal or sagittal view from a stack of slices and render it as a PNG. Refuses series that fail check_geometry (missing slices, mixed orientations, and so on).

ParameterTypeDescription
paths *arrayLocal DICOM files or directories inside the allowed paths.
indexSlice index in the reconstructed plane; default is the middle.
max_sizeintegerLongest edge of the PNG in pixels.
planestringPlane to reconstruct.
series_uidSeries to use when the paths contain several.
windowstringDisplay window: auto (file window or percentiles), minmax, or a CT preset: lung, mediastinum, soft_tissue, abdomen, liver, bone, brain, subdural, stroke.
window_centerExplicit window center.
window_widthExplicit window width.

deidentify

Write de-identified copies of local DICOM files (basic confidentiality profile subset) to the cache. UIDs are remapped consistently, names and IDs are pseudonymised, and pixel data is not changed.

ParameterTypeDescription
paths *arrayLocal DICOM files or directories inside the allowed paths.
date_modestringShift dates by a per-patient offset, or keep them.
keep_descriptionsbooleanKeep study/series descriptions and protocol names.
keep_privatebooleanKeep private tags.