# DICOM Agent

> DICOM Agent is an MCP server for health and science. DIMSE and DICOMweb archive tools with image measurement and de-identification. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/arunmk-ms/dicom-agent-mcp
- **MCP Registry name:** io.github.arunmk-ms/dicom-agent-mcp
- **Categories:** [health and science](https://ai-powered.com/categories/health-and-science), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```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>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
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-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```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>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```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>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## Tools

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_nodes` (name suggests: reads): Lists configured nodes without secrets.
- `echo`: Connectivity check.
- `search` (name suggests: reads): Searches patients, studies, series or instances.
- `get_metadata` (name suggests: reads): Returns keyword-based metadata.
- `retrieve` (name suggests: reads): Saves files from an archive locally.
- `move` (name suggests: changes): Moves studies to a destination node or AE title.
- `store`: Stores files to an archive.
- `transfer` (name suggests: changes): Retrieves from one node and stores to another.
- `list_local_files` (name suggests: reads): Lists cached or allowed DICOM files.
- `read_local_metadata` (name 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_geometry` (name 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_verification` (name suggests: reads): Looks up verification ledger records.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/dicom-agent
