VimukthiRajapaksha/healthcare-mcp-server
If you are the rightful owner of healthcare-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This server facilitates searching for FHIR resources on a specified FHIR server, supporting command-line, Docker, and VS Code integration.
Model Context Protocol (MCP) Server for Healthcare
Overview
This server allows you to search for FHIR (Fast Healthcare Interoperability Resources) resources on a specified FHIR server. It is built with Python and supports command-line, Docker, and VS Code integration.
Prerequisites
- Python 3.8+
- uv (for dependency management)
- An accessible FHIR server (defaults to the public HAPI FHIR test server)
Setup
- Clone the repository:
git clone <repository_url> cd <repository_directory>
- Create a virtual environment and install dependencies:
Or with pip:
uv venv source .venv/bin/activate uv pip sync requirements.txt
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt
- Configure Environment Variables:
Copy the example file and customize if needed:
cp .env.example .env
Usage
Run the server:
uv run server.py
VS Code Integration
Add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).
Streamable HTTP | stdio |
---|---|
|
|
Claude Desktop Integration
Add the following JSON block to your Claude Desktop settings to connect to your local MCP server.
- Launch the Claude Desktop app, click on the Claude menu in the top bar, and select "Settingsā¦".
- In the Settings pane, click āDeveloperā in the left sidebar. Then click "Edit Config". This will open your configuration file in your file system. If it doesnāt exist yet, Claude will create one automatically at:
- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json
- Open the claude_desktop_config.json file in any text editor. Replace its contents with the following JSON block to register the MCP server:
Streamable HTTP | stdio |
---|---|
|
|
MCP Inspector Integration
Follow these steps to get the MCP Inspector up and running:
-
Open a terminal and run the following command:
npx -y @modelcontextprotocol/inspector
-
In the MCP Inspector interface:
Streamable HTTP | stdio |
---|---|
|
|
Make sure your MCP server is already running and listening on the above endpoint.
Once connected, MCP Inspector will allow you to visualize tool invocations, inspect request/response payloads, and debug your tool implementations easily.
Example Prompts
- Get allergy history for patient 53373
- Fetch the immunization records for patient ID 53373
- List all active care plans for patient 22
- Provide a consolidated report for patient 53373 that includes their complete allergy history as well as all available immunization records, organized by date and highlighting any critical alerts
- Retrieve all active care plans for patient ID 22 and present them in a markdown table showing each planās ID, title, status, intent, and start date