DICOMweb MCP Server

io.github.PantelisGeorgiadis由 GitHub 账号 PantelisGeorgiadis 发布v0.0.4更新于 Nov 10, 2026

MCP server exposing a DICOMweb DICOM archive to AI assistants via QIDO-RS and WADO-RS.

概览

AI 生成的概览

让助手连接 DICOMweb 医学影像归档,检索检查、序列与实例,读取报告文本并渲染影像帧。

可以做什么
  • 用 key=value 过滤、分页与模糊匹配检索检查、序列和实例
  • 将结构化报告与封装 PDF 报告读取为可读文本
  • 查看单个实例的全部 DICOM 属性(不含像素数据)
  • 将实例的指定帧渲染为内嵌 JPEG 或 PNG 图像
适用场景
当你使用 Orthanc 等 DICOMweb 归档,希望用对话方式浏览影像检查、提取报告文本或查看影像帧,而不必打开 PACS 阅片器时适用。
运行要求
通过 npx 在本地运行,需要 Node.js 20 或更高版本。需要一个可访问且支持 QIDO-RS 与 WADO-RS 的 DICOMweb 服务器,由 DICOMWEB_HOST 指定。可选认证:DICOMWEB_AUTH 设为 basic 或 bearer,配合 DICOMWEB_USER 与 DICOMWEB_PASS,或使用 DICOMWEB_TOKEN。可选 DICOMWEB_TIMEOUT(毫秒)。配置可放在 .env 文件或客户端的 env 块中。
安装前请注意
服务器会持有影像归档的凭据:DICOMWEB_PASS 或 DICOMWEB_TOKEN,以及 DICOMWEB_USER,应避免写入共享配置文件。检查、序列与实例数据(含患者姓名和报告文本)会作为工具结果发送给模型提供方。扫描版 PDF 不做 OCR,因此提取不到文本。操作是只读的,但仍应使用权限受限的账号。

安装

在 SourceWeft 中

  1. 打开 控制台中的 DICOMweb MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[NPM version] [NPM downloads] [build] [MIT License] [dicomweb-mcp-server MCP server] [dicomweb-mcp-server on MCP ServerList]

dicomweb-mcp-server

A Model Context Protocol (MCP) server that exposes a DICOMweb-compliant DICOM archive to AI assistants. It lets any MCP-capable client search studies, series and instances, inspect metadata, read Structured and Encapsulated PDF Reports, and render image frames — all through natural language.

Requirements

  • Node.js 20 or later
  • A running DICOMweb server supporting QIDO-RS and WADO-RS (e.g. orthanc)

The following endpoints must be supported by the DICOMweb server:

EndpointServiceUsed by
GET /studiesQIDO-RSSearch studies
GET /studies/{study}/seriesQIDO-RSSearch series
GET /studies/{study}/series/{series}/instancesQIDO-RSSearch instances, search structured reports, search encapsulated PDF reports
GET /studies/{study}/series/{series}/instances/{instance}/metadataWADO-RSGet instance metadata, get structured report text, get encapsulated PDF report text
GET /studies/{study}/series/{series}/instances/{instance}/frames/{frame}/renderedWADO-RSRender instance frame

Installation

Using npx (recommended — no local install needed)

bash
npx dicomweb-mcp-server

The server reads its configuration from a .env file located in the same directory as the script (see Configuration below).

Global install

bash
npm install -g dicomweb-mcp-serverdicomweb-mcp-server

Configuration

Create a .env file with the connection details for your DICOMweb server. Place the file next to wherever the server is executed from (or in the working directory you configure in your MCP client).

dotenv
# RequiredDICOMWEB_HOST=https://your-dicomweb-server/dicomweb
# Optional — authenticationDICOMWEB_AUTH=basic        # basic | bearerDICOMWEB_USER=username     # required when DICOMWEB_AUTH=basicDICOMWEB_PASS=password     # required when DICOMWEB_AUTH=basicDICOMWEB_TOKEN=your-token  # required when DICOMWEB_AUTH=bearer
# Optional — request timeout (milliseconds)DICOMWEB_TIMEOUT=30000
VariableRequiredDescription
DICOMWEB_HOSTYesBase URL of the DICOMweb server (used for both QIDO-RS and WADO-RS requests)
DICOMWEB_AUTHNoAuthentication type: basic or bearer
DICOMWEB_USERConditionalUsername — required when DICOMWEB_AUTH=basic
DICOMWEB_PASSConditionalPassword — required when DICOMWEB_AUTH=basic
DICOMWEB_TOKENConditionalBearer token — required when DICOMWEB_AUTH=bearer
DICOMWEB_TIMEOUTNoFetch timeout in milliseconds. Omit to disable.

MCP Client Setup

Claude Desktop

Add the server to claude_desktop_config.json:

json
{  "mcpServers": {    "dicomweb": {      "command": "npx",      "args": ["-y", "dicomweb-mcp-server"],      "env": {        "DICOMWEB_HOST": "https://your-dicomweb-server/dicomweb"      }    }  }}

You can supply all environment variables directly in the env block instead of using a .env file.

VS Code (GitHub Copilot Agent Mode)

Add to your VS Code settings.json or workspace .vscode/mcp.json:

json
{  "servers": {    "dicomweb": {      "type": "stdio",      "command": "npx",      "args": ["-y", "dicomweb-mcp-server"],      "env": {        "DICOMWEB_HOST": "https://your-dicomweb-server/dicomweb"      }    }  }}

Cursor

Add to .cursor/mcp.json in your project root, or to the global ~/.cursor/mcp.json:

json
{  "mcpServers": {    "dicomweb": {      "command": "npx",      "args": ["-y", "dicomweb-mcp-server"],      "env": {        "DICOMWEB_HOST": "https://your-dicomweb-server/dicomweb"      }    }  }}

Available Tools

find-studies

Searches DICOM studies on the configured DICOMweb server. Results are sorted by study date, newest first.

ParameterTypeDescription
querystringSpace-separated key=value filter string (see Query Syntax). Pass "" to return all studies.

Example prompts

  • "Find all CT studies for patient John Doe"
  • "Search for studies from January 2024"

find-series

Searches DICOM series within a single study. Results are sorted by series date, newest first.

ParameterTypeDescription
studyInstanceUidstringStudy Instance UID — obtain from find-studies
querystringSpace-separated key=value filter string. Pass "" to return all series.

find-instances

Searches DICOM instances within a single series. Results are sorted by Instance Number ascending.

ParameterTypeDescription
studyInstanceUidstringStudy Instance UID — obtain from find-studies
seriesInstanceUidstringSeries Instance UID — obtain from find-series
querystringSpace-separated key=value filter string. Pass "" to return all instances.

find-encapsulated-pdf-reports

Finds all Encapsulated PDF instances in a study by looking for DOC-modality series and filtering by the Encapsulated PDF SOP Class UID (1.2.840.10008.5.1.4.1.1.104.1).

ParameterTypeDescription
studyInstanceUidstringStudy Instance UID — obtain from find-studies

Example prompts

  • "Find all PDF reports in study 1.2.3.4"
  • "Are there any encapsulated PDF documents in this study?"

get-encapsulated-pdf-report-text

Retrieves an Encapsulated PDF DICOM instance and extracts its text content.

ParameterTypeDescription
studyInstanceUidstringStudy Instance UID
seriesInstanceUidstringSeries Instance UID
sopInstanceUidstringSOP Instance UID — obtain from find-encapsulated-pdf-reports

Note: Text extraction only works for searchable (text-based) PDFs. PDFs that consist entirely of scanned page images without an embedded text layer will yield little or no text. In those cases, no OCR is performed.

Example prompts

  • "Read the PDF report for SOP instance 1.2.3.4.5"
  • "What does the encapsulated PDF document say?"

find-structured-reports

Finds all Structured Report (SR) instances in a study by looking for SR-modality series and filtering by known SR SOP Class UIDs.

ParameterTypeDescription
studyInstanceUidstringStudy Instance UID — obtain from find-studies

get-structured-report-text

Retrieves a Structured Report instance and converts it to human-readable text.

ParameterTypeDescription
studyInstanceUidstringStudy Instance UID
seriesInstanceUidstringSeries Instance UID
sopInstanceUidstringSOP Instance UID — obtain from find-structured-reports

get-instance-metadata

Retrieves and formats all DICOM attributes of a single instance as human-readable text. Does not retrieve pixel data.

ParameterTypeDescription
studyInstanceUidstringStudy Instance UID
seriesInstanceUidstringSeries Instance UID
sopInstanceUidstringSOP Instance UID — obtain from find-instances

render-instance-frame

Renders a specific frame from a DICOM instance and returns it as an inline image (JPEG or PNG).

ParameterTypeDescription
studyInstanceUidstringStudy Instance UID
seriesInstanceUidstringSeries Instance UID
sopInstanceUidstringSOP Instance UID — obtain from find-instances
frameinteger1-based frame index (use 1 for single-frame instances)
outputFormatenumimage/jpeg or image/png

Example prompt

  • "Show me the first frame of SOP instance 1.2.3.4.5 as a JPEG"

Query Syntax

The query parameter accepted by the search tools is a space-separated list of key=value pairs.

Key formats

FormatExample
DICOM keyword namePatientName=DOE*
8-digit hex tag00100020=12345

Special keys

KeyDescription
limit=NMaximum number of results to return
offset=NSkip the first N results (for pagination)
fuzzymatching=trueEnable fuzzy (phonetic) name matching
includefield=allRequest all available DICOM attributes

Examples

PatientName=DOE*StudyDate=20240101-20241231 ModalitiesInStudy=CT00100020=ABC123 limit=10fuzzymatching=true PatientName=Smith

Wildcard * is supported in string values where the DICOMweb server allows it.

Typical Workflow

A natural conversational sequence with the MCP server looks like this:

  1. Search studies — find-studies with a patient name or date range.
  2. Browse series — find-series with the Study Instance UID returned in step 1.
  3. List instances — find-instances with Study and Series UIDs from steps 1–2.
  4. Inspect or render — get-instance-metadata for DICOM attributes, or render-instance-frame to view pixel data.
  5. Read SR reports — find-structured-reports then get-structured-report-text for SR documents.
  6. Read PDF reports — find-encapsulated-pdf-reports then get-encapsulated-pdf-report-text for Encapsulated PDF documents.

License

dicomweb-mcp-server is released under the MIT License.

[dicomweb-mcp-server MCP server]

来源:README.md,提交 d1ae413

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.0.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分