PA

polya20/agentcare-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1 stars 27 forks 质量 61 趋势 5MIT

MCP Server for EMRs with FHIR

概览

A Model Context Protocol (MCP) server that provides healthcare tools and prompts for interacting with FHIR data and medical resources on EMRs like Cerner and Epic. - EMR integrartion using SMART on FHIR APIs - Uses OAuth2 to authenticate with EMRs - Anthropic Claude Desktop integration - Medical research integration (PubMed, Clinical Trials, FDA) - Response caching - Error handling - Null-safe data formatting - Comprehensive clinical analysis - find_patient - Search for a patient by name, DOB, or other identifiers - get_patient_observations - Retrieve patient observations/vital signs - get_patient_conditions - Get patient's active conditions - get_patient_medications - Get patient's current medications - get_patient_encounters - Get patient's clinical encounters - get_patient_allergies - Get patient's allergies and intolerances - get_patient_procedures - Get patient's procedures - get_patient_careteam - Get patient's care team members - get_patient_careplans - Get patient's active...

README

以下为原文 README 节选,完整内容请查看原文。

Agent Care: An MCP Server for EMRs like Cerner and Epic

A Model Context Protocol (MCP) server that provides healthcare tools and prompts for interacting with FHIR data and medical resources on EMRs like Cerner and Epic.

Demo

Features

  • EMR integrartion using SMART on FHIR APIs
  • Uses OAuth2 to authenticate with EMRs
  • Anthropic Claude Desktop integration
  • Medical research integration (PubMed, Clinical Trials, FDA)
  • Response caching
  • Error handling
  • Null-safe data formatting
  • Comprehensive clinical analysis

Screenshots

Tools

FHIR Tools

  • find_patient - Search for a patient by name, DOB, or other identifiers
  • get_patient_observations - Retrieve patient observations/vital signs
  • get_patient_conditions - Get patient’s active conditions
  • get_patient_medications - Get patient’s current medications
  • get_patient_encounters - Get patient’s clinical encounters
  • get_patient_allergies - Get patient’s allergies and intolerances
  • get_patient_procedures - Get patient’s procedures
  • get_patient_careteam - Get patient’s care team members
  • get_patient_careplans - Get patient’s active care plans
  • get_vital_signs - Get patient’s vital signs
  • get_lab_results - Get patient’s laboratory results
  • get_medications_history - Get patient’s medication history
  • clinical_query - Execute custom FHIR queries

Medical Research Tools

  • search-pubmed - Search PubMed articles related to medical conditions
  • search-trials - Find relevant clinical trials
  • drug-interactions - Check drug-drug interactions

Usage

Each tool requires specific parameters:

Required Parameters

  • Most tools require patientId
  • Some tools have additional parameters:
    • lab_trend_analysis: requires labType
    • search-pubmed: requires query and optional maxResults
    • search-trials: requires condition and optional location
    • drug-interactions: requires drugs array

Development Configuration

在 GitHub 查看完整 README

安装

npx -y @modelcontextprotocol/server-filesystem /Users/your-username/Desktop
新手?先看 mcpskill.org 教程 →

配置

for claude desktop: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json (use the env variables as shown above) { "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/Users/your-username/Desktop" ] }, "agent-care": { "command": "node", "args": [ "/Users/your-username/{agentcare-download-path}/agent-care-mcp/build/index.js" ], "env": { "clientId": XXXXXX, "clientSecret":XXXXXXX, "tokenHost":, "tokenPath":, "authorizePath", "authorizationMethod": , "audience":, "callbackURL":, "scopes":, "callbackPort":, "FHIR_BASE_URL":, "PUBMED_API_KEY":, "CLINICAL_TRIALS_API_KEY":, "FDA_API_KEY": } } } }