
DICOM Agent
io.github.arunmk-ms由 GitHub 账号 arunmk-ms 发布v0.1.0更新于 Nov 3, 2026
通过DIMSE和DICOMweb搜索、检索、存储、查看、测量和去标识化DICOM图像。
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
Search, retrieve, store, view, measure and de-identify DICOM images over DIMSE and DICOMweb.
概览
DICOM Agent 的本地 MCP 服务;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
安装
在 SourceWeft 中
- 打开 控制台中的 DICOM Agent,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
dicom-agent-mcp
An MCP (Model Context Protocol) server that gives AI agents one set of tools for both DIMSE archives (C-ECHO, C-FIND, C-GET, C-MOVE, C-STORE) and DICOMweb archives (QIDO-RS, WADO-RS, STOW-RS).
It also includes pixel and geometry tools that work on local files: rendering, statistics, measurement, geometry checks, multiplanar reconstruction (MPR) and de-identification. This is the tool layer for Topic 3 (Validated Tool Execution). The verification loop comes later; see ROADMAP.md.
Not for clinical use. This is a research scaffold. Use only with test or de-identified data.
Tools
Pixel and geometry tools (local files)
Every pixel result includes an input_fingerprint: a SHA-256 hash of the decoded pixels and geometry. It does not change with the transfer syntax, and the planned verification loop will use it to bind results to their inputs.
Each tool carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint) so a harness can decide which tools need approval.
Install
Configure
No config file is needed. Pass nodes and paths as arguments in the harness config; add a YAML file only for advanced settings.
Arguments
Node spec: name=URL[;option;option…]
Examples:
Secrets never go in arguments. Arguments are visible in process lists and are often committed in mcp.json. Put tokens and passwords in environment variables and pass only the variable name.
With no --node, the server still starts: the local-file and pixel tools work on files under the allowed paths.
Environment variables
Every argument has an environment-variable equivalent, which suits Docker and CI:
Optional YAML file (advanced)
Use a file for settings that have no argument: timeouts, max_results, max_volume_voxels, deid_key_env and node descriptions. See config.example.yaml. If ./dicom-agent-mcp.yaml exists in the working directory, it is loaded automatically. Relative paths in a file resolve against the file's directory; relative paths in arguments and environment variables resolve against the working directory.
Precedence: config file, then environment variables, then arguments. Later sources override single values, nodes are merged by name (a --node with the same name replaces the file's node), and allowed paths are combined.
Run
VS Code (.vscode/mcp.json)
Claude Desktop / Copilot CLI / other harnesses
Use absolute paths here: these harnesses may start the server in any working directory. To use a file instead, pass "args": ["--config", "C:/path/to/dicom-agent-mcp.yaml"].
Local Orthanc for testing
Sample prompts
These prompts assume three nodes: orthanc (DIMSE), orthanc-web (DICOMweb) and azure-dicom, for example:
The tool the agent is expected to call is shown after each prompt.
Nodes and connectivity
Search and metadata
Moving data
Local files
Pixels and geometry
De-identification
Multi-step workflows
- "Find the latest CT for patient MRN123 on
orthanc, download it, check its geometry, and show me an axial and a coronal view in a soft-tissue window." - "Measure the mean HU of the liver at slice 60 (a 15 mm circle at row 300, column 180) and report the input fingerprint."
- "Download study X from
orthanc, de-identify it, and upload the de-identified copy toazure-dicom."
Prompts the server should refuse
Safety
- Path sandbox.
store,list_local_files,read_local_metadataand the pixel tools only accept paths understorage_dirorallowed_paths. - UID validation. UIDs are checked before they are used in file paths or URLs.
read_onlynodes.store,moveandtransferrefuse to write to them.- Result caps.
max_resultslimits results; truncation is reported withtruncated: true. - Pixels in context only by request. Raw pixel arrays are never returned.
render_imageandrender_mprdo send a downsampled PNG to the model; a copy is saved understorage_dir/renders. - Volume cap.
render_mprrefuses series larger thanmax_volume_voxels, and refuses series that failcheck_geometry.
De-identification
deidentify does the following:
- removes or empties identifying attributes;
- drops private tags and overlay or curve groups;
- replaces PatientName and PatientID with pseudonyms;
- remaps instance UIDs consistently;
- by default, shifts dates by a per-patient offset of 1 to 730 days.
It records what it did in DeidentificationMethodCodeSequence.
To get the same pseudonyms and UIDs across runs, set a secret key in the environment variable named by deid_key_env (default DICOM_AGENT_MCP_DEID_KEY). Without a key, each call uses a random key and the result reports linkable: false.
It does not remove text burned into the pixels; affected modalities produce a warning. It is a research aid, not a certified de-identification tool.
Architecture
Tests
The tests run end to end against an in-process pynetdicom PACS (two AEs so C-MOVE can be tested) and a mocked DICOMweb server. They need no network. The pixel tests use a synthetic CT series with known HU values, spacing and positions.
Limitations
- STOW-RS builds the whole request in memory, and WADO-RS reads the whole response into memory.
- DIMSE
get_metadataonly returns attributes that the archive indexes for C-FIND. retrieveuses C-GET. Archives that only support C-MOVE needmoveto a storage SCP.- No TLS for DIMSE yet.
- Pixel tools have been tested on synthetic CT and pydicom sample files only. Compressed transfer syntaxes, enhanced multi-frame objects and real-world data are not yet tested.
- MPR uses nearest-slice sampling and does not resample to isotropic voxels.
- Pixel tools work on local files; use
retrievefirst.
Roadmap
See ROADMAP.md.
来源:README.md,提交 d05a7e1
工具
0版本历史
1- v0.1.0最新Nov 3, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分