Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

claude mcp add dicomweb -- npx -y dicomweb-mcp-server

Summary

PantelisGeorgiadis/dicomweb-mcp-server MCP server](https://glama.ai/mcp/servers/PantelisGeorgiadis/dicomweb-mcp-server/badges/score.svg)](https://glama.ai/mcp/servers/PantelisGeorgiadis/dicomweb-mcp-server) πŸ“‡ ☁️ 🏠 - A DICOMweb MCP server that exposes a...

Connect from your MCP client

One-click install

Add this server to your editor with a single click. Fill in any required credentials afterward.

Claude Code

Run this once and Claude Code registers the server for you:

claude mcp add dicomweb -- npx -y dicomweb-mcp-server

Claude Desktop

Add this to claude_desktop_config.json under Settings β†’ Developer β†’ Edit Config:

{
  "mcpServers": {
    "dicomweb": {
      "command": "npx",
      "args": [
        "-y",
        "dicomweb-mcp-server"
      ],
      "env": {
        "DICOMWEB_HOST": "<DICOMWEB_HOST>",
        "DICOMWEB_AUTH": "<DICOMWEB_AUTH>",
        "DICOMWEB_USER": "<DICOMWEB_USER>",
        "DICOMWEB_PASS": "<DICOMWEB_PASS>",
        "DICOMWEB_TOKEN": "<DICOMWEB_TOKEN>",
        "DICOMWEB_TIMEOUT": "<DICOMWEB_TIMEOUT>"
      }
    }
  }
}

Cursor

Add this to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "dicomweb": {
      "command": "npx",
      "args": [
        "-y",
        "dicomweb-mcp-server"
      ],
      "env": {
        "DICOMWEB_HOST": "<DICOMWEB_HOST>",
        "DICOMWEB_AUTH": "<DICOMWEB_AUTH>",
        "DICOMWEB_USER": "<DICOMWEB_USER>",
        "DICOMWEB_PASS": "<DICOMWEB_PASS>",
        "DICOMWEB_TOKEN": "<DICOMWEB_TOKEN>",
        "DICOMWEB_TIMEOUT": "<DICOMWEB_TIMEOUT>"
      }
    }
  }
}

Cline and other MCP clients

Most MCP clients accept the standard mcpServers JSON block:

{
  "mcpServers": {
    "dicomweb": {
      "command": "npx",
      "args": [
        "-y",
        "dicomweb-mcp-server"
      ],
      "env": {
        "DICOMWEB_HOST": "<DICOMWEB_HOST>",
        "DICOMWEB_AUTH": "<DICOMWEB_AUTH>",
        "DICOMWEB_USER": "<DICOMWEB_USER>",
        "DICOMWEB_PASS": "<DICOMWEB_PASS>",
        "DICOMWEB_TOKEN": "<DICOMWEB_TOKEN>",
        "DICOMWEB_TIMEOUT": "<DICOMWEB_TIMEOUT>"
      }
    }
  }
}

Codex CLI

Register the server with OpenAI's Codex CLI β€” run this once, or add the equivalent block to ~/.codex/config.toml:

codex mcp add dicomweb --env DICOMWEB_HOST=<DICOMWEB_HOST> --env DICOMWEB_AUTH=<DICOMWEB_AUTH> --env DICOMWEB_USER=<DICOMWEB_USER> --env DICOMWEB_PASS=<DICOMWEB_PASS> --env DICOMWEB_TOKEN=<DICOMWEB_TOKEN> --env DICOMWEB_TIMEOUT=<DICOMWEB_TIMEOUT> -- npx -y dicomweb-mcp-server

# or add to ~/.codex/config.toml:
[mcp_servers.dicomweb]
command = "npx"
args = ["-y", "dicomweb-mcp-server"]
[mcp_servers.dicomweb.env]
DICOMWEB_HOST = "<DICOMWEB_HOST>"
DICOMWEB_AUTH = "<DICOMWEB_AUTH>"
DICOMWEB_USER = "<DICOMWEB_USER>"
DICOMWEB_PASS = "<DICOMWEB_PASS>"
DICOMWEB_TOKEN = "<DICOMWEB_TOKEN>"
DICOMWEB_TIMEOUT = "<DICOMWEB_TIMEOUT>"

OpenClaw

OpenClaw reads MCP servers from the mcp.servers section of ~/.openclaw/openclaw.json (managed via `openclaw mcp add` or the mcporter skill):

{
  "mcp": {
    "servers": {
      "dicomweb": {
        "command": "npx",
        "args": [
          "-y",
          "dicomweb-mcp-server"
        ],
        "env": {
          "DICOMWEB_HOST": "<DICOMWEB_HOST>",
          "DICOMWEB_AUTH": "<DICOMWEB_AUTH>",
          "DICOMWEB_USER": "<DICOMWEB_USER>",
          "DICOMWEB_PASS": "<DICOMWEB_PASS>",
          "DICOMWEB_TOKEN": "<DICOMWEB_TOKEN>",
          "DICOMWEB_TIMEOUT": "<DICOMWEB_TIMEOUT>"
        }
      }
    }
  }
}

Replace the <PLACEHOLDER> values with your own credentials β€” see the configuration table below.

Configuration

dicomweb-mcp-server reads the following environment variables:

VariableRequired
DICOMWEB_HOSTRequired
DICOMWEB_AUTHOptional
DICOMWEB_USEROptional
DICOMWEB_PASSOptional
DICOMWEB_TOKENOptional
DICOMWEB_TIMEOUTOptional

README.md

[![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![build][build-image]][build-url] [![MIT License][license-image]][license-url] [![dicomweb-mcp-server MCP server][glama-score-image]][glama-score-url]

dicomweb-mcp-server

A [Model Context Protocol (MCP)][mcp-url] 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][orthanc-url])

The following endpoints must be supported by the DICOMweb server:

| Endpoint | Service | Used by | |---|---|---| | GET /studies | QIDO-RS | Search studies | | GET /studies/{study}/series | QIDO-RS | Search series | | GET /studies/{study}/series/{series}/instances | QIDO-RS | Search instances, search structured reports, search encapsulated PDF reports | | GET /studies/{study}/series/{series}/instances/{instance}/metadata | WADO-RS | Get instance metadata, get structured report text, get encapsulated PDF report text | | GET /studies/{study}/series/{series}/instances/{instance}/frames/{frame}/rendered | WADO-RS | Render instance frame |

Installation

Using npx (recommended β€” no local install needed)

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

npm install -g dicomweb-mcp-server
dicomweb-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).

# Required
DICOMWEB_HOST=https://your-dicomweb-server/dicomweb

# Optional β€” authentication
DICOMWEB_AUTH=basic        # basic | bearer
DICOMWEB_USER=username     # required when DICOMWEB_AUTH=basic
DICOMWEB_PASS=password     # required when DICOMWEB_AUTH=basic
DICOMWEB_TOKEN=your-token  # required when DICOMWEB_AUTH=bearer

# Optional β€” request timeout (milliseconds)
DICOMWEB_TIMEOUT=30000

| Variable | Required | Description | |---|---|---| | DICOMWEB_HOST | Yes | Base URL of the DICOMweb server (used for both QIDO-RS and WADO-RS requests) | | DICOMWEB_AUTH | No | Authentication type: basic or bearer | | DICOMWEB_USER | Conditional | Username β€” required when DICOMWEB_AUTH=basic | | DICOMWEB_PASS | Conditional | Password β€” required when DICOMWEB_AUTH=basic | | DICOMWEB_TOKEN | Conditional | Bearer token β€” required when DICOMWEB_AUTH=bearer | | DICOMWEB_TIMEOUT | No | Fetch timeout in milliseconds. Omit to disable. |

MCP Client Setup

Claude Desktop

Add the server to claude_desktop_config.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:

{
  "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:

{
  "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.

| Parameter | Type | Description | |---|---|---| | query | string | Space-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.

| Parameter | Type | Description | |---|---|---| | studyInstanceUid | string | Study Instance UID β€” obtain from find-studies | | query | string | Space-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.

| Parameter | Type | Description | |---|---|---| | studyInstanceUid | string | Study Instance UID β€” obtain from find-studies | | seriesInstanceUid | string | Series Instance UID β€” obtain from find-series | | query | string | Space-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).

| Parameter | Type | Description | |---|---|---| | studyInstanceUid | string | Study 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.

| Parameter | Type | Description | |---|---|---| | studyInstanceUid | string | Study Instance UID | | seriesInstanceUid | string | Series Instance UID | | sopInstanceUid | string | SOP 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.

| Parameter | Type | Description | |---|---|---| | studyInstanceUid | string | Study Instance UID β€” obtain from find-studies |

---

get-structured-report-text

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

| Parameter | Type | Description | |---|---|---| | studyInstanceUid | string | Study Instance UID | | seriesInstanceUid | string | Series Instance UID | | sopInstanceUid | string | SOP 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.

| Parameter | Type | Description | |---|---|---| | studyInstanceUid | string | Study Instance UID | | seriesInstanceUid | string | Series Instance UID | | sopInstanceUid | string | SOP 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).

| Parameter | Type | Description | |---|---|---| | studyInstanceUid | string | Study Instance UID | | seriesInstanceUid | string | Series Instance UID | | sopInstanceUid | string | SOP Instance UID β€” obtain from find-instances | | frame | integer | 1-based frame index (use 1 for single-frame instances) | | outputFormat | enum | image/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

| Format | Example | |---|---| | DICOM keyword name | PatientName=DOE* | | 8-digit hex tag | 00100020=12345 |

Special keys

| Key | Description | |---|---| | limit=N | Maximum number of results to return | | offset=N | Skip the first N results (for pagination) | | fuzzymatching=true | Enable fuzzy (phonetic) name matching | | includefield=all | Request all available DICOM attributes |

Examples

PatientName=DOE*
StudyDate=20240101-20241231 ModalitiesInStudy=CT
00100020=ABC123 limit=10
fuzzymatching=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][glama-badge-image]][glama-badge-url]

[npm-url]: https://npmjs.org/package/dicomweb-mcp-server [npm-version-image]: https://img.shields.io/npm/v/dicomweb-mcp-server.svg?style=flat [npm-downloads-image]: http://img.shields.io/npm/dm/dicomweb-mcp-server.svg?style=flat

[build-url]: https://github.com/PantelisGeorgiadis/dicomweb-mcp-server/actions/workflows/build.yml [build-image]: https://github.com/PantelisGeorgiadis/dicomweb-mcp-server/actions/workflows/build-test.yml/badge.svg?branch=main

[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat [license-url]: LICENSE.txt

[glama-score-image]: https://glama.ai/mcp/servers/PantelisGeorgiadis/dicomweb-mcp-server/badges/score.svg [glama-score-url]: https://glama.ai/mcp/servers/PantelisGeorgiadis/dicomweb-mcp-server

[glama-badge-image]: https://glama.ai/mcp/servers/PantelisGeorgiadis/dicomweb-mcp-server/badges/card.svg [glama-badge-url]: https://glama.ai/mcp/servers/PantelisGeorgiadis/dicomweb-mcp-server

[mcp-url]: https://modelcontextprotocol.io [orthanc-url]: https://www.orthanc-server.com/

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Search servers.