DICOM Agent
DIMSE and DICOMweb archive tools with image measurement and de-identification
DICOM Agent is an MCP server for health and science. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can change data (2 tools)
- Version
- 0.1.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add dicom-agent-mcp --env AZURE_DICOM_TOKEN='<AZURE_DICOM_TOKEN>' --env DICOM_AGENT_MCP_DEID_KEY='<DICOM_AGENT_MCP_DEID_KEY>' -- uvx dicom-agent-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"dicom-agent-mcp": {
"command": "uvx",
"args": [
"dicom-agent-mcp"
],
"env": {
"AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>",
"DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"dicom-agent-mcp": {
"command": "uvx",
"args": [
"dicom-agent-mcp"
],
"env": {
"AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>",
"DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"dicom-agent-mcp": {
"command": "uvx",
"args": [
"dicom-agent-mcp"
],
"env": {
"AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>",
"DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"dicom-agent-mcp": {
"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>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add dicom-agent-mcp --env AZURE_DICOM_TOKEN='<AZURE_DICOM_TOKEN>' --env DICOM_AGENT_MCP_DEID_KEY='<DICOM_AGENT_MCP_DEID_KEY>' -- uvx dicom-agent-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.dicom-agent-mcp]
command = "uvx"
args = ["dicom-agent-mcp"]
env = { AZURE_DICOM_TOKEN = "<AZURE_DICOM_TOKEN>", DICOM_AGENT_MCP_DEID_KEY = "<DICOM_AGENT_MCP_DEID_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"dicom-agent-mcp": {
"command": "uvx",
"args": [
"dicom-agent-mcp"
],
"env": {
"AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>",
"DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "dicom-agent-mcp": { "command": "uvx", "args": [ "dicom-agent-mcp" ], "env": { "AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>", "DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>" } } } }Or run: gemini mcp add -s user -e AZURE_DICOM_TOKEN='<AZURE_DICOM_TOKEN>' -e DICOM_AGENT_MCP_DEID_KEY='<DICOM_AGENT_MCP_DEID_KEY>' dicom-agent-mcp uvx -- dicom-agent-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "dicom-agent-mcp": { "command": "uvx", "args": [ "dicom-agent-mcp" ], "env": { "AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>", "DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "dicom-agent-mcp": { "command": "uvx", "args": [ "dicom-agent-mcp" ], "env": { "AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>", "DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "dicom-agent-mcp": { "command": "uvx", "args": [ "dicom-agent-mcp" ], "env": { "AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>", "DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "dicom-agent-mcp": { "command": "uvx", "args": [ "dicom-agent-mcp" ], "env": { "AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>", "DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "dicom-agent-mcp": { "command": "uvx", "args": [ "dicom-agent-mcp" ], "env": { "AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>", "DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "dicom-agent-mcp": { "command": "uvx", "args": [ "dicom-agent-mcp" ], "env": { "AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>", "DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "dicom-agent-mcp": { "command": "uvx", "args": [ "dicom-agent-mcp" ], "env": { "AZURE_DICOM_TOKEN": "<AZURE_DICOM_TOKEN>", "DICOM_AGENT_MCP_DEID_KEY": "<DICOM_AGENT_MCP_DEID_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
AZURE_DICOM_TOKENBearer token for a DICOMweb node configured with token-env=AZURE_DICOM_TOKEN. Use any variable name you reference in --node.DICOM_AGENT_MCP_DEID_KEYSecret that makes de-identification pseudonyms and UIDs consistent across calls.
About DICOM Agent
The README labels this a research scaffold, not for clinical use, to be run only on test or de-identified data. It gives an agent a single tool surface over two archive styles: DIMSE (C-ECHO, C-FIND, C-GET, C-MOVE, C-STORE) and DICOMweb (QIDO-RS, WADO-RS, STOW-RS). A transfer tool can copy studies across protocols, for example from a PACS to a DICOMweb store.
Beyond archives, it works on local files. It can render a frame to PNG with window presets such as lung, bone or brain, compute pixel statistics over a rectangular or elliptical region in Hounsfield units, measure distances in millimetres in patient coordinates, check whether a series can be treated as a volume (flagging missing slices, uneven spacing, oblique or sheared stacks), render axial, coronal or sagittal reformats, and write de-identified copies using a subset of the Basic Profile.
Every pixel result carries an input fingerprint, a SHA-256 hash of decoded pixels and geometry. verify_claim re-runs a measurement and compares it with the value the agent intends to report, and get_verification checks a hash-chained ledger. Nodes are set with --node arguments, secrets stay in environment variables, and a read-only option stops writes to a node. Tools carry read-only and destructive hints for approval.
Tools this server provides (18)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 18 tools change data; 8 names don't say.
From the server's own tool labels and tool names; not verified by us.
- list_nodesName suggests: reads
- Lists configured nodes without secrets.
- echo
- Connectivity check.
- searchName suggests: reads
- Searches patients, studies, series or instances.
- get_metadataName suggests: reads
- Returns keyword-based metadata.
- retrieveName suggests: reads
- Saves files from an archive locally.
- moveName suggests: changes
- Moves studies to a destination node or AE title.
- store
- Stores files to an archive.
- transferName suggests: changes
- Retrieves from one node and stores to another.
- list_local_filesName suggests: reads
- Lists cached or allowed DICOM files.
- read_local_metadataName suggests: reads
- Reads a local file header without pixel data.
- render_image
- Renders one frame to PNG.
- pixel_statistics
- Reports statistics for a frame or ROI.
- measure_distance
- Measures in-plane distance in millimetres.
- check_geometryName suggests: reads
- Checks whether a series can be treated as a volume.
- render_mpr
- Renders a multiplanar reformatted slice.
- deidentify
- Writes de-identified copies of files.
- verify_claim
- Re-runs a measurement and compares it with a claimed value.
- get_verificationName suggests: reads
- Looks up verification ledger records.
What it does
- DIMSE and DICOMweb
- Search, retrieve, move and store through C-FIND/C-GET/C-STORE or QIDO/WADO/STOW.
- Cross-protocol transfer
- Retrieve from one archive and store to another in one tool call.
- Image rendering
- PNG frames with window presets and correct patient-direction labels.
- ROI statistics and distances
- Statistics in modality units and in-plane measurements in millimetres.
- Geometry checks and MPR
- Flags volume problems before rendering axial, coronal or sagittal slices.
- De-identification
- Writes de-identified copies with consistent pseudonyms when a key is set.
- Claim verification
- Re-runs a measurement and compares it with the value an agent plans to report.
- Node safeguards
- Read-only nodes, secrets from environment variables and annotated tools.
Good for
- Query a research PACS or DICOMweb server for studies by date or wildcard
- Copy a study from an Orthanc archive to a cloud DICOMweb store
- Measure a lesion distance and have the value checked before reporting it
- Check whether a CT series is a clean volume before reformatting
- Produce de-identified copies of test data
DICOM Agent FAQ
Is DICOM Agent for clinical use?
No. The README calls it a research scaffold for test or de-identified data only.
How do I install DICOM Agent?
It is the PyPI package dicom-agent-mcp, run over stdio, with an optional codecs extra for compressed pixel data.
How do I connect to an archive?
Pass --node name=URL; use dimse://AE@host:port for DIMSE or an http(s) base URL for DICOMweb.
How are secrets handled?
Tokens and passwords are read from environment variables named in the node spec, never from arguments.
Can DICOM Agent be kept from writing to a node?
Yes. The read-only node option makes store, move and transfer refuse.
How do I add DICOM Agent to Claude Code?
Run this command in your terminal: claude mcp add dicom-agent-mcp --env AZURE_DICOM_TOKEN='<AZURE_DICOM_TOKEN>' --env DICOM_AGENT_MCP_DEID_KEY='<DICOM_AGENT_MCP_DEID_KEY>' -- uvx dicom-agent-mcp
What are the best alternatives to DICOM Agent?
The closest alternatives to DICOM Agent are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


