fhir-mcp-server
by the-momentum·★ 80·综合分 43
一个用于 FHIR 医疗数据集成并与 Claude Desktop 配合使用的生产就绪的 MCP 服务器。
概述
FHIR MCP Server 实现了一个完整的 Model Context Protocol 服务器,旨在实现基于 LLM 的代理与 FHIR 兼容的 healthcare 系统之间的无缝交互。它通过从 Claude Desktop 等 MCP 兼容客户端可访问的全面工具套件,提供对 FHIR 资源的完整 CRUD 操作。该服务器具有 FastMCP 框架、智能文档处理、使用向量嵌入的语义搜索、OAuth2 身份验证和 LOINC 医学术语集成等功能。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您处理医疗数据并需要以自然语言方式访问符合 FHIR 标准的系统且需要安全认证时,选择此服务器。
什么时候不要选它
如果您没有访问 FHIR 服务器的权限或需要 FHIR 之外更广泛的医疗数据管理功能,请避免使用。
此 server 暴露的工具
从 README 抽取出 12 个工具request_patient_resourceManage patient demographic and administrative information
request_observation_resourceHandle clinical measurements and assessments
request_condition_resourceManage patient problems and diagnoses
request_medication_resourceHandle medication information and orders
request_encounter_resourceHandle patient visits and interactions
request_allergy_intolerance_resourceManage patient allergy information
request_generic_resourceOperate on any FHIR resource not covered by specific tools
add_document_to_pineconeIngests documents into the vector database for semantic search
search_pineconePerforms semantic search across indexed documents using vector embeddings
get_loinc_codesRetrieves standardized LOINC codes for medical observations and laboratory tests
request_document_reference_resourceManage FHIR DocumentReference resources
request_immunization_resourceManage vaccination records
可对比工具
安装
安装
- 克隆仓库:
``sh git clone https://github.com/the-momentum/fhir-mcp-server cd fhir-mcp-server ``
- 设置环境变量:
``sh cp config/.env.example config/.env # 编辑 config/.env 文件添加您的凭据 ``
- 安装依赖
```sh # Docker 方法 make build
# uv 方法 make uv ```
- 更新 Claude Desktop 配置 (claude_desktop_config.json):
``json { "mcpServers": { "fhir-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "--init", "--name", "fhir-mcp-server", "--mount", "type=bind,source=<your-project-path>/app,target=/root_project/app", "--mount", "type=bind,source=<your-project-path>/config/.env,target=/root_project/config/.env", "-e", "TRANSPORT_MODE=stdio", "mcp-server:latest" ] } } } ``
FAQ
- 服务器支持哪些 FHIR 资源?
- 该服务器为所有主要 FHIR 资源提供工具,包括针对选定资源类型的特定工具和其他资源的通用工具。它涵盖患者、病情、药物、就诊和观察资源。
- 配置中的敏感数据如何得到保护?
- 服务器为敏感配置值(如 API 密钥和密码)提供内置加密功能。它提供自动化和手动设置选项来管理加密。
fhir-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。