DICOM Agent — Claude Code MCP server: features and setup
MCP server for Claude Code connects agents to DIMSE and DICOMweb archives and processes local DICOM files. It handles search, image rendering, measurements, and de-identification.
Apache-2.0 ★ 25 updated 2026-11-06
claude mcp add dicom-agent-mcp -e AZURE_DICOM_TOKEN=<AZURE_DICOM_TOKEN> -e DICOM_AGENT_MCP_DEID_KEY=<DICOM_AGENT_MCP_DEID_KEY> -- uvx dicom-agent-mcpWhat DICOM Agent does
The server gives an agent tools for querying, retrieving, storing, and transferring DICOM objects through DIMSE or DICOMweb. It can test connectivity, read metadata, save retrieved files under storage_dir/<study>/<series>/<sop>.dcm, and inspect local files without loading pixel data.
Local tools render frames, calculate pixel statistics for rectangular or elliptical regions, measure distances in millimetres, and check whether a series forms a usable volume. MPR output is available in axial, coronal, and sagittal views. De-identification, claim rechecks, and hash-chain integrity checks are included as well; pixel results carry an SHA-256 input_fingerprint.
The server starts without configured nodes, with local-file and pixel tools available under allowed paths. Remote archives need node settings, while the uvx installation command passes AZURE_DICOM_TOKEN and DICOM_AGENT_MCP_DEID_KEY. This is a research scaffold, not for clinical use; it should be used with test or de-identified data.
What it helps with
- search DICOM archives by patient, study, series, or instance
- retrieve metadata and save selected DICOM files
- render a frame and calculate statistics for an ROI
- check series geometry before generating an MPR view
- write de-identified copies of DICOM data
Example prompts for the agent
- Search the connected DICOM archive for studies within a specified date range.
- Check the geometry of this series and render a sagittal slice from the local files.
- Create de-identified DICOM copies and place them in the project directory.
How to install DICOM Agent
Platform CLI
claude mcp add dicom-agent-mcp -e AZURE_DICOM_TOKEN=<AZURE_DICOM_TOKEN> -e DICOM_AGENT_MCP_DEID_KEY=<DICOM_AGENT_MCP_DEID_KEY> -- uvx dicom-agent-mcpReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from dicom-agent-mcp <command>
Platform CLI
codex mcp add dicom-agent --env AZURE_DICOM_TOKEN=<AZURE_DICOM_TOKEN> --env DICOM_AGENT_MCP_DEID_KEY=<DICOM_AGENT_MCP_DEID_KEY> -- uvx dicom-agent-mcpReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from dicom-agent-mcp <command>
Config file
{
"mcpServers": {
"dicom-agent": {
"command": "uvx",
"args": [
"dicom-agent-mcp"
],
"env": {
"AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>",
"DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from dicom-agent-mcp <command>
Config file
{
"servers": {
"dicom-agent": {
"type": "stdio",
"command": "uvx",
"args": [
"dicom-agent-mcp"
],
"env": {
"AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>",
"DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from dicom-agent-mcp <command>
Platform CLI
gemini mcp add -e AZURE_DICOM_TOKEN=<AZURE_DICOM_TOKEN> -e DICOM_AGENT_MCP_DEID_KEY=<DICOM_AGENT_MCP_DEID_KEY> dicom-agent uvx dicom-agent-mcpReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from dicom-agent-mcp <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about DICOM Agent
How do I install DICOM Agent in Claude Code?
Add it with `claude mcp add dicom-agent-mcp -e AZURE_DICOM_TOKEN=<AZURE_DICOM_TOKEN> -e DICOM_AGENT_MCP_DEID_KEY=<DICOM_AGENT_MCP_DEID_KEY> -- uvx dicom-agent-mcp. The command starts the server through uvx` and supplies the environment variables.
What does DICOM Agent do?
It connects an agent to DIMSE and DICOMweb archives for DICOM search, retrieval, transfer, and storage. Its local tools render images, calculate pixel statistics, measure distances, inspect geometry, create MPR views, and de-identify copies.
What does DICOM Agent need to run?
The installation command uses uvx, AZURE_DICOM_TOKEN, and DICOM_AGENT_MCP_DEID_KEY. A remote archive also needs a node configured with --node; local tools can work with files under allowed paths without a node.