D

Dicom Agent MCP

by arunmk-ms · io.github.arunmk-ms/dicom-agent-mcp

Enables AI agents to search, retrieve, store, move, render, measure, and de-identify DICOM images across DIMSE and DICOMweb archives with one set of tools, including local pixel and geometry analysis.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-arunmk-ms-dicom-agent-mcp": {
      "command": "uvx",
      "args": [
        "dicom-agent-mcp"
      ],
      "env": {
        "AZURE_DICOM_TOKEN": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_DEID_KEY": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_NODES": "<VALUE>",
        "DICOM_AGENT_MCP_CONFIG": "<VALUE>",
        "DICOM_AGENT_MCP_CALLING_AE": "DICOM_MCP",
        "DICOM_AGENT_MCP_STORAGE_DIR": "~/.dicom-agent-mcp/cache",
        "DICOM_AGENT_MCP_ALLOWED_PATHS": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-arunmk-ms-dicom-agent-mcp": {
      "command": "uvx",
      "args": [
        "dicom-agent-mcp"
      ],
      "env": {
        "AZURE_DICOM_TOKEN": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_DEID_KEY": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_NODES": "<VALUE>",
        "DICOM_AGENT_MCP_CONFIG": "<VALUE>",
        "DICOM_AGENT_MCP_CALLING_AE": "DICOM_MCP",
        "DICOM_AGENT_MCP_STORAGE_DIR": "~/.dicom-agent-mcp/cache",
        "DICOM_AGENT_MCP_ALLOWED_PATHS": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-arunmk-ms-dicom-agent-mcp": {
      "command": "uvx",
      "args": [
        "dicom-agent-mcp"
      ],
      "env": {
        "AZURE_DICOM_TOKEN": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_DEID_KEY": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_NODES": "<VALUE>",
        "DICOM_AGENT_MCP_CONFIG": "<VALUE>",
        "DICOM_AGENT_MCP_CALLING_AE": "DICOM_MCP",
        "DICOM_AGENT_MCP_STORAGE_DIR": "~/.dicom-agent-mcp/cache",
        "DICOM_AGENT_MCP_ALLOWED_PATHS": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-arunmk-ms-dicom-agent-mcp": {
      "command": "uvx",
      "args": [
        "dicom-agent-mcp"
      ],
      "env": {
        "AZURE_DICOM_TOKEN": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_DEID_KEY": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_NODES": "<VALUE>",
        "DICOM_AGENT_MCP_CONFIG": "<VALUE>",
        "DICOM_AGENT_MCP_CALLING_AE": "DICOM_MCP",
        "DICOM_AGENT_MCP_STORAGE_DIR": "~/.dicom-agent-mcp/cache",
        "DICOM_AGENT_MCP_ALLOWED_PATHS": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-arunmk-ms-dicom-agent-mcp": {
      "command": "uvx",
      "args": [
        "dicom-agent-mcp"
      ],
      "env": {
        "AZURE_DICOM_TOKEN": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_DEID_KEY": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_NODES": "<VALUE>",
        "DICOM_AGENT_MCP_CONFIG": "<VALUE>",
        "DICOM_AGENT_MCP_CALLING_AE": "DICOM_MCP",
        "DICOM_AGENT_MCP_STORAGE_DIR": "~/.dicom-agent-mcp/cache",
        "DICOM_AGENT_MCP_ALLOWED_PATHS": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-arunmk-ms-dicom-agent-mcp": {
      "command": "uvx",
      "args": [
        "dicom-agent-mcp"
      ],
      "env": {
        "AZURE_DICOM_TOKEN": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_DEID_KEY": "<YOUR_VALUE>",
        "DICOM_AGENT_MCP_NODES": "<VALUE>",
        "DICOM_AGENT_MCP_CONFIG": "<VALUE>",
        "DICOM_AGENT_MCP_CALLING_AE": "DICOM_MCP",
        "DICOM_AGENT_MCP_STORAGE_DIR": "~/.dicom-agent-mcp/cache",
        "DICOM_AGENT_MCP_ALLOWED_PATHS": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
AZURE_DICOM_TOKEN secret No Bearer token for a DICOMweb node configured with token-env=AZURE_DICOM_TOKEN. Use any variable name you reference in --node.
DICOM_AGENT_MCP_DEID_KEY secret No Secret key for de-identification to get same pseudonyms and UIDs across runs. If not set, each call uses a random key and the result reports linkable: false. This is the default environment variable name for the deid key (see deid_key_env).
DICOM_AGENT_MCP_NODES No Node specifications, equivalent to --node. Several specs separated by spaces. Format: name=URL[;option;option…] where URL is dimse://AE_TITLE@host:port or http(s)://… Options include read-only, token-env=VAR, user=NAME;password-env=VAR, no-verify-tls, transfer-syntax=UID.
DICOM_AGENT_MCP_CONFIG No Path to optional YAML config file. Equivalent to --config.
DICOM_AGENT_MCP_CALLING_AE No AE title this server uses for DIMSE. Default DICOM_MCP; register it on your PACS. Equivalent to --calling-ae. Default: DICOM_MCP
DICOM_AGENT_MCP_STORAGE_DIR No Local cache directory for retrieved files and renders. Default ~/.dicom-agent-mcp/cache. Equivalent to --storage-dir. Default: ~/.dicom-agent-mcp/cache
DICOM_AGENT_MCP_ALLOWED_PATHS No Extra directories that the local-file and pixel tools may read. Several paths separated by ; on Windows or : elsewhere. Equivalent to --allow-path.

Similar servers