FHIR MCP Server
MCP server by wso2 Community
FHIR MCP Server connects AI assistants to FHIR APIs, so they can search, retrieve and analyze healthcare data. It is aimed at developers, integrators and healthcare innovators.
Install FHIR MCP Server
Built from the published package, never by AI.
claude mcp add fhir-mcp-server -e FHIR_SERVER_BASE_URL=YOUR_FHIR_SERVER_BASE_URL -- uvx fhir-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"fhir-mcp-server": {
"env": {
"FHIR_SERVER_BASE_URL": "YOUR_FHIR_SERVER_BASE_URL"
},
"args": [
"fhir-mcp-server"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"fhir-mcp-server": {
"env": {
"FHIR_SERVER_BASE_URL": "YOUR_FHIR_SERVER_BASE_URL"
},
"args": [
"fhir-mcp-server"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"fhir-mcp-server": {
"env": {
"FHIR_SERVER_BASE_URL": "YOUR_FHIR_SERVER_BASE_URL"
},
"args": [
"fhir-mcp-server"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add fhir-mcp-server --env FHIR_SERVER_BASE_URL=YOUR_FHIR_SERVER_BASE_URL -- uvx fhir-mcp-server{
"mcpServers": {
"fhir-mcp-server": {
"env": {
"FHIR_SERVER_BASE_URL": "YOUR_FHIR_SERVER_BASE_URL"
},
"args": [
"fhir-mcp-server"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add fhir-mcp-server uvx fhir-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the fhir-mcp-server block.
About
The FHIR MCP Server is a Model Context Protocol server that connects AI and LLM tools to FHIR APIs for healthcare data. It serves FHIR over stdio, SSE or streamable HTTP. Responses from read and search operations can be filtered with FHIRPath expressions, so only the fields needed for a task are returned and payloads are smaller.
The server supports SMART-on-FHIR based authentication. The README shows demos against a public HAPI FHIR server and the Epic sandbox, the latter using the OAuth 2.0 Authorization Code Grant flow. It can be installed from PyPI with uvx, from source, or with Docker, and works with clients such as VS Code, Claude Desktop and MCP Inspector. It is written for developers, integrators and healthcare innovators.
Written from the project's README and checked against it.
What you need
- Python 3.8+
- uv for dependency management
- An accessible FHIR API server
- Docker, optional for container installs
| Setting | Needed | What it is |
|---|---|---|
FHIR_Environment variable | Required | Base URL of the FHIR Server (eg: https://hapi.fhir.org/baseR5) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Search FHIR patient records for a given name and summarize them
- Retrieve a FHIR resource and return only the fields I need
- Use the FHIR server to find recent observations for a patient
Good to know
- Authorization should be disabled when running locally with Docker, according to the README
- The README says this Docker authorization limitation would be fixed in future releases
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Search clinical records through an AI assistant
- Retrieve FHIR resources with filtered fields
- Test FHIR workflows against a sandbox server
Alternatives to FHIR MCP Server
All alternatives →Standardizes lab test names to LOINC codes and units to UCUM, and symptoms and diagnoses to ICPC-3, offline and with no API key. Built for people who want their health records on their own machine and queryable by an AI agent over MCP.
RuView is a WiFi sensing platform and MCP server that uses low-cost ESP32 sensors to detect people, breathing and heart rate. It is for developers and operators who want room sensing without cameras or wearables.
ToolUniverse is an MCP server that gives AI assistants access to more than 2,700 scientific tools for life science, research and literature. It is aimed at AI scientists, researchers and developers building research systems.
Mirobody is a self-hosted engine that turns lab reports, wearable data and genetic files into a single health record. Its built-in MCP server lets an AI assistant query that record and trace each number back to its source file. It is for people who want their health data on their own machine.
ScanSci PDF gets academic papers for AI agents. Give it a DOI, arXiv ID, article link, reference list or research question, and it searches candidate sources and tries to fetch accessible full texts. It is for students, researchers and labs.
Searches CNKI and Web of Science through an MCP server, returning records with impact factors. It can also open a paper in the user's signed-in browser and read its full text. Built for researchers who want AI answers on science topics backed by the source article.
Compare with Mirobody, Ruview or tooluniverse
FHIR MCP Server: common questions
Which FHIR servers can it connect to?
Any FHIR server reachable by its base URL, set with FHIR_SERVER_BASE_URL. The README gives examples using the HAPI FHIR server and the WSO2 FHIR Server.
Does it support OAuth login?
Yes. The README describes SMART-on-FHIR based authentication and shows a demo with the Epic sandbox using the OAuth 2.0 Authorization Code Grant flow.
Which AI clients can use it?
The README covers integration with VS Code, Claude Desktop and MCP Inspector, and says it works with any MCP client.
How do I install FHIR MCP Server?
In Claude Code run claude mcp add fhir-mcp-server -e FHIR_SERVER_BASE_URL=YOUR_FHIR_SERVER_BASE_URL -- uvx fhir-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is FHIR MCP Server the official server?
FHIR MCP Server is a community project by wso2, not verified by a company domain.
Is FHIR MCP Server free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is FHIR MCP Server safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to FHIR MCP Server?
Similar MCP servers: Mirobody, Ruview, tooluniverse, Mirobody.
Does FHIR MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
