Orthanc MCP
O

Orthanc MCP

This is a modular server project based on FastMCP, used to query the Orthanc DICOM server and extract text from encapsulated PDF reports, providing a complete DICOM hierarchical navigation tool from patients to instances.
2.5 points
0

What is the Orthanc DICOM Query and PDF Extraction API?

This is a query and extraction tool specifically designed for medical imaging data. It connects to the Orthanc DICOM server (a medical imaging storage and management system), allowing users to start from the patient list and drill down layer by layer to specific imaging studies, sequences, and finally find a single file containing a PDF report and extract the text information. This is very useful for users who need to quickly find and read reports from a large amount of medical imaging data.

How to use this service?

The usage process follows a strict hierarchical structure, just like finding a city from a country, then a street, and finally a house number. You must first find the patient, then view all the examinations (studies) of that patient, then select a specific examination sequence (series), and finally locate the specific file (instance) containing the PDF and perform text extraction. Each step requires the result of the previous step as input.

Applicable scenarios

This service is applicable to scenarios such as medical data analysis, clinical research review, and patient information retrieval. For example, researchers can find reports of all patients named 'Zhang San' who have undergone CT examinations within a specific time period; doctors can quickly access the detailed text report of a certain MRI examination without opening complex professional imaging software.

Main Features

Patient Query
Search for patient records in the DICOM server based on conditions such as patient name, ID, or date of birth. This is the first step in starting all queries.
Examination Study Query
List all medical examination records of a specific patient, such as different types of examinations like CT scans, MRI (Magnetic Resonance), and X-rays.
Image Sequence Query
In a specific examination (study), further view the various image sequences it contains. For example, a CT examination may contain multiple sequences such as plain scan, arterial phase, and venous phase.
Instance File Query
List all specific DICOM file instances in an image sequence. One of the instances may be a file encapsulating a PDF report.
PDF Text Extraction
Identify and extract the text content of the encapsulated PDF report from the specified DICOM instance file for easy direct reading and subsequent analysis.
Advantages
Structured navigation: Provides a clear and hierarchical data browsing method, with a logic that conforms to the medical workflow.
Non-intrusive access: Queries data through a standard API without directly operating the underlying database or file system.
Precise extraction: Specifically extracts text from PDF reports encapsulated in the DICOM standard, with a clear target.
Modular design: Each function is independent, facilitating understanding, use, and integration.
Limitations
Dependence on Orthanc: There must be a running and accessible Orthanc DICOM server.
Strict call order: The tool must be called in the fixed order of 'Patient → Study → Series → Instance', with limited flexibility.
PDF format limitation: Can only extract encapsulated PDFs that conform to a specific DICOM standard (SOP Class: 1.2.840.10008.5.1.4.1.1.104.1).
No OCR function: If the PDF is a scanned image (without an embedded text layer), the text content cannot be extracted.

How to Use

Start the Server
Ensure that the Orthanc server is running. Then, start this MCP server in the project directory.
Connect the Client
Use any MCP-compatible client (such as a Python script or a front-end application) to connect to the server address (default is localhost:5050).
Query by Hierarchy
Call the tool in a fixed order: First query patients, then use the returned patient ID to query their studies, and so on. Each step requires the ID obtained from the previous step.
Extract the Report
After finding the instance ID containing the PDF report, call the extraction tool to obtain the report text.

Usage Examples

Example: Find and Read a Patient's CT Report
Doctor Zhang needs to view the radiology report of the most recent chest CT of patient 'Wang Xiaoming'.
Example: Research All MRI Reports of a Specific Disease
Researchers need to collect the MRI report texts of all patients diagnosed with 'glioblastoma' for natural language processing analysis.

Frequently Asked Questions

If I directly know the ID of a DICOM file, can I skip the previous steps and directly extract the PDF?
What could be the reasons if the PDF extraction returns blank or an error?
Can this tool modify or delete data on the Orthanc server?
Does the patient query support fuzzy search? For example, only entering the surname?

Related Resources

Orthanc Official Documentation
Understand the detailed functions and REST API interfaces of the Orthanc DICOM server.
Introduction to the DICOM Standard
Understand the basic knowledge of the DICOM (Digital Imaging and Communications in Medicine) standard.
FastMCP Framework
Understand the Model Context Protocol (MCP) Python SDK used in this project.
Project Source Code Repository
Access the source code of this project to understand the implementation details or contribute.

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

F
Finlab Ai
FinLab AI is a quantitative financial analysis platform that helps users discover excess returns (alpha) in investment strategies through AI technology. It provides a rich dataset, backtesting framework, and strategy examples, supporting automated installation and integration into mainstream AI programming assistants.
5.4K
4 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
6.4K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
10.4K
5 points
M
Maverick MCP
MaverickMCP is a personal stock analysis server based on FastMCP 2.0, providing professional level financial data analysis, technical indicator calculation, and investment portfolio optimization tools for MCP clients such as Claude Desktop. It comes pre-set with 520 S&P 500 stock data, supports multiple technical analysis strategies and parallel processing, and can run locally without complex authentication.
Python
10.0K
4 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
21.6K
5 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
14.4K
5 points
A
Apple Health MCP
An MCP server for querying Apple Health data via SQL, implemented based on DuckDB for efficient analysis, supporting natural language queries and automatic report generation.
TypeScript
12.8K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
17.0K
4 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
24.2K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
33.9K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.2K
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
72.2K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
31.0K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
64.0K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
21.0K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
97.8K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase