
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.
概覽
讓助理連接 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 區塊中。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 DICOMweb MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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:
Installation
Using npx (recommended — no local install needed)
The server reads its configuration from a .env file located in the same directory as the script (see Configuration below).
Global install
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).
MCP Client Setup
Claude Desktop
Add the server to claude_desktop_config.json:
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:
Cursor
Add to .cursor/mcp.json in your project root, or to the global ~/.cursor/mcp.json:
Available Tools
find-studies
Searches DICOM studies on the configured DICOMweb server. Results are sorted by study date, newest first.
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.
find-instances
Searches DICOM instances within a single series. Results are sorted by Instance Number ascending.
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).
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.
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.
get-structured-report-text
Retrieves a Structured Report instance and converts it to human-readable text.
get-instance-metadata
Retrieves and formats all DICOM attributes of a single instance as human-readable text. Does not retrieve pixel data.
render-instance-frame
Renders a specific frame from a DICOM instance and returns it as an inline image (JPEG or 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
Special keys
Examples
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:
- Search studies —
find-studieswith a patient name or date range. - Browse series —
find-serieswith the Study Instance UID returned in step 1. - List instances —
find-instanceswith Study and Series UIDs from steps 1–2. - Inspect or render —
get-instance-metadatafor DICOM attributes, orrender-instance-frameto view pixel data. - Read SR reports —
find-structured-reportsthenget-structured-report-textfor SR documents. - Read PDF reports —
find-encapsulated-pdf-reportsthenget-encapsulated-pdf-report-textfor Encapsulated PDF documents.
License
dicomweb-mcp-server is released under the MIT License.
來源:README.md,提交 d1ae413
工具
0版本歷史
1- v0.0.4最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分