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 分