CharmHealth

CharmHealth

An MCP server for CharmHealth EHR that allows LLMs and MCP clients to interact with patient records, encounters, and practice information.

10K+

17 Tools

Packaged by
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

Use cases

Manage appointments. <usecase> Complete appointment lifecycle management - schedule new appointments, reschedule existing ones, cancel appointments, and list appointments with flexible filtering. Handles the full appointment workflow. </usecase> <instructions> Actions: - "schedule": Create new appointment (requires patient_id, provider_id, facility_id, appointment_date, appointment_time). Check the provider's availability with manageAppointments(action='list') and provider_id, and across all facilities for the provider before suggesting a time. - "reschedule": Change existing appointment time (requires appointment_id + new scheduling details) - "cancel": Cancel appointment (requires appointment_id + cancel_reason) - "list": Show appointments with filtering (requires start_date, end_date_range, facility_ids; optionally filter by status/provider/mode) Time format: Use 12-hour format like "09:30 AM" or "02:15 PM" For recurring: Set repetition to "Weekly" or "Daily" and provide frequency + end_date For double booking: Use provider_double_booking="allow" or resource_double_booking="allow" to override checks For cancellation: Use delete_type "Current" for single appointment or "Entire" for recurring series List filters (applied after fetching all appointments in the date range): - status_filter: e.g., status_filter="Confirmed" - provider_filter: provider_id or provider_name substring (e.g., provider_filter="12345" or provider_filter="Smith") - mode_filter: e.g., mode_filter="Video Consult" - limit: e.g., limit=25 When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values. </instructions>

Manage encounters. <usecase> Complete encounter workflow - create, review, and sign encounters with comprehensive clinical documentation. Essential for clinical workflow from initial documentation through final signature. </usecase> <instructions> Actions: - "list": List encounters for a patient (requires patient_id; optionally filter by filter_by, start_date, end_date, per_page, page) - "create": Create new encounter and document clinical findings (default) - "review": Display complete encounter details for review before signing - "sign": Electronically sign encounter after review and confirmation - "unlock": Unlock a previously signed encounter to allow modifications For creating encounters (two paths): - From appointment: patient_id + appointment_id (provider/facility/date come from the appointment) - From scratch: patient_id + provider_id + facility_id + encounter_date - Optional: visit_type_id, encounter_mode, chief_complaint For reviewing encounters: - Requires: patient_id, encounter_id - Shows comprehensive encounter details including vitals, diagnoses, medications, notes For signing encounters: - Requires: patient_id, encounter_id - Only use after reviewing and confirming all information is accurate For unlocking encounters: - Requires: patient_id, encounter_id, reason - Used to unlock signed encounters when modifications are needed - Must provide a valid reason for unlocking the encounter For updating encounters with template data: - action="update" with chief_complaint always saved as narrative fallback - template_ids: comma-separated IDs of templates to attach to the encounter - entries: JSON array string of populated template entries, e.g. '[{"entry_id":"123","answer":"text"}]' - Templates are attached first, then entries + chief_complaints saved together - entry_id values must come from getPracticeInfo(info_type='template_details') — hallucinated IDs are dropped client-side Recommended workflow: 1. Create encounter: manageEncounter(patient_id, appointment_id, action="create") — or without appointment: manageEncounter(patient_id, provider_id, facility_id, encounter_date, action="create") 2. Add clinical data using managePatientVitals(), managePatientDrugs(), managePatientDiagnoses() 3. Review before signing: manageEncounter(patient_id, encounter_id, action="review") 4. Sign to finalize: manageEncounter(patient_id, encounter_id, action="sign") 5. If modifications needed: manageEncounter(patient_id, encounter_id, reason="reason for changes", action="unlock") When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values. </instructions>

Manage patient and provider messaging across SMS, WhatsApp, and secure messaging channels. <usecase> Send messages to patients, read inbox messages, and retrieve conversation threads. Supports SMS (Twilio/Telnyx), WhatsApp Business, and secure portal messaging. Use this for patient communication, follow-ups, appointment confirmations, and responding to patient inquiries. </usecase> <instructions> Actions: - "send": Send a message to a patient (requires patient_id, content, and facility_id). Channel options: - "sms": Send via text message (patient must have TEXT_NOTIFY_ENABLED) - "whatsapp": Send via WhatsApp (patient must be opted in) - "secure": Send via secure portal message (requires subject) - "auto": Automatically select best available channel (default) facility_id is required for all channels. Use getPracticeInfo() to look up facility IDs. For WhatsApp templates, provide template_name and placeholder values. For secure messages to providers, use recipient_member_ids. - "list": Show recent secure portal messages from inbox. Filter by section: "FROM_PATIENTS" (inbox) or "TO_PATIENTS" (sent). Use facility_id to filter by facility. Note: SMS and WhatsApp conversations are not available via list — use action='get_thread' with a patient_id to retrieve those. - "get_thread": Get full conversation history with a specific patient (requires patient_id). Filter by thread_channel to see only SMS, WhatsApp, secure, or all channels. Before sending clinical content, confirm with the provider. Routine messages (appointment reminders, general notifications) can be sent directly. </instructions>

Manage patients. <usecase> Complete patient management with comprehensive demographic, social, and administrative data. Handles patient creation, updates, status changes, and complex relationships. Supports all CharmHealth patient data fields for complete EHR functionality. </usecase> <instructions> Actions: - "create": Add new patient (requires first_name, last_name, gender, date_of_birth OR age, facility_ids) - "update": Modify existing patient (requires patient_id + fields to change). - "activate": Reactivate deactivated patient (requires patient_id only) - "deactivate": Deactivate patient (requires patient_id only) Update Modes: - update_specific_details=True: Only updates the fields you provide, preserves all other existing data (RECOMMENDED, Default) - update_specific_details=False: Complete record update - must provide all fields or existing data will be lost Demographics: Supports comprehensive patient information including social history, family data Addresses: If any address field provided, country is required (defaults to US) Facilities: Pass as list of facility IDs like "facility_123,facility_456". Categories: Pass as list like [{"category_id": "category_123"}] Complex Relationships: - caregivers: [{"first_name": str, "last_name": str, "relationship": str, "contact": {...}, "address": {...}}] - guarantor: [{"first_name": str, "last_name": str, "relationship": str, "contact": {...}, "address": {...}}] - id_qualifiers: [{"id_qualifier": 1-8 or 99, "id_of_patient": "ID_value"}] When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values. </instructions>

Manage patient drugs and supplements. <usecase> Unified drug management for medications, supplements, and vitamins - prescribe medications, document supplements, manage drug interactions. Includes automatic allergy checking and comprehensive drug safety workflow for optimal patient care. </usecase> <instructions> Actions: - "add": Prescribe new drug (requires drug_name, directions for medications; drug_name, dosage for supplements) - "update": Modify existing prescription (requires record_id + fields to change). IMPORTANT: drug name and strength CANNOT be changed via update — use discontinue + add instead. Updatable fields: directions, dispense, refills, status. - "discontinue": Stop drug (requires record_id) - "list": Show all patient drugs by type (filter by substance_type, optionally filter by status) Substance Types: - "medication": Prescription drugs (requires directions, refills) - "supplement": OTC supplements/vitamins (requires dosage as integer) - "vitamin": Specific vitamins (requires dosage as integer) Safety: Automatically checks allergies before prescribing unless check_allergies=False List filters: - status_filter: e.g., status_filter="active" - limit: e.g., limit=25 For medications: Use clear directions like "Take 1 tablet by mouth twice daily with food" For supplements: Provide dosage as integer (e.g., 5) and use strength for units (e.g., "500mg") When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values. </instructions>

About

CharmHealth MCP Server

An MCP server for CharmHealth EHR that allows LLMs and MCP clients to interact with patient records, encounters, and practice information.

What is an MCP Server?⁠

MCP Info

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/CharmHealth/charm-mcp-server/blob/dae9f695b9ba82026959574d58db7e941703f026/Dockerfile⁠
Commitdae9f695b9ba82026959574d58db7e941703f026
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/charmhealth-mcp-server --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceMIT License

Available Tools (17)

Tools provided by this ServerShort Description
findPatientsFind patients.
getPracticeInfoGet practice information.
manageAppointmentsManage appointments.
manageEncounterManage encounters.
manageFaxSend faxes and check fax delivery status.
manageMessagesManage patient and provider messaging across SMS, WhatsApp, and secure messaging channels.
managePatientManage patients.
managePatientAllergiesManage patient allergies.
managePatientDiagnosesManage patient diagnoses.
managePatientDrugsManage patient drugs and supplements.
managePatientFilesManage patient files and documents.
managePatientLabsManage patient laboratory results.
managePatientNotesManage patient notes.
managePatientRecallsManage patient recalls.
managePatientVitalsManage patient vitals and vital signs.
manageTasksManage CharmHealth tasks.
reviewPatientHistoryReview patient history.

Tools Details

Tool: findPatients

Find patients.

Find patients quickly using natural search terms or specific criteria. Handles everything from "find John Smith" to complex searches like "elderly diabetes patients in California". Essential first step for any patient-related task. Quick searches: Use search_type="name" with query="John Smith" for basic name searches Phone lookups: Use search_type="phone" with query="555-1234" (handles any format) Medical record: Use search_type="record_id" with query="MR123456"

Complex searches: Use search_type="advanced" with multiple criteria:

  • Age ranges: age_min=65, age_max=80 for elderly patients
  • Location: state="CA", city="Los Angeles" for geographic filtering
  • Medical: blood_group="O+", language="Spanish" for clinical needs

Always returns patient_id needed for other tools. Start here before any patient operations.

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
age_maxstringoptional
age_minstringoptional
blood_groupstringoptional
category_idstringoptional
citystringoptional
countrystringoptional
created_afterstringoptional
created_beforestringoptional
facility_idstringoptional
genderstringoptional
has_phr_accountstringoptional
languagestringoptional
limitstringoptional
marital_statusstringoptional
modified_afterstringoptional
modified_beforestringoptional
pagestringoptional
postal_codestringoptional
querystringoptional
search_typestringoptional
sort_bystringoptional
sort_orderstringoptional
statestringoptional
statusstringoptional

Tool: getPracticeInfo

Get practice information.

Get essential practice information needed for other operations - available facilities, providers, vital signs templates, etc. Use this to understand practice setup and get IDs for other tools. - "facilities": List all practice locations with IDs needed for scheduling - "providers": List all providers with IDs needed for appointments and encounters - "vitals": Available vital sign templates for documentation - "overview": Summary of practice setup with key counts and recent activity - "templates": List all available SOAP templates (id, name, type) for the practice - "template_details": Full template schema (widgets + entries) for given template_ids (comma-separated)

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
info_typestringoptional
template_idsstringoptional

Tool: manageAppointments

Manage appointments.

Complete appointment lifecycle management - schedule new appointments, reschedule existing ones, cancel appointments, and list appointments with flexible filtering. Handles the full appointment workflow. Actions: - "schedule": Create new appointment (requires patient_id, provider_id, facility_id, appointment_date, appointment_time). Check the provider's availability with manageAppointments(action='list') and provider_id, and across all facilities for the provider before suggesting a time. - "reschedule": Change existing appointment time (requires appointment_id + new scheduling details) - "cancel": Cancel appointment (requires appointment_id + cancel_reason) - "list": Show appointments with filtering (requires start_date, end_date_range, facility_ids; optionally filter by status/provider/mode)

Time format: Use 12-hour format like "09:30 AM" or "02:15 PM" For recurring: Set repetition to "Weekly" or "Daily" and provide frequency + end_date For double booking: Use provider_double_booking="allow" or resource_double_booking="allow" to override checks For cancellation: Use delete_type "Current" for single appointment or "Entire" for recurring series

List filters (applied after fetching all appointments in the date range):

  • status_filter: e.g., status_filter="Confirmed"
  • provider_filter: provider_id or provider_name substring (e.g., provider_filter="12345" or provider_filter="Smith")
  • mode_filter: e.g., mode_filter="Video Consult"
  • limit: e.g., limit=25

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
actionstring
appointment_datestringoptional
appointment_idstringoptional
appointment_timestringoptional
cancel_reasonstringoptional
consent_formsstringoptional
delete_typestringoptional
duration_minutesstringoptional
end_datestringoptional
end_date_rangestringoptional
facility_idstringoptional
facility_idsstringoptional
frequencystringoptional
limitstringoptional
member_idsstringoptional
message_to_patientstringoptional
modestringoptional
mode_filterstringoptional
patient_idstringoptional
provider_double_bookingstringoptional
provider_filterstringoptional
provider_idstringoptional
questionnairestringoptional
reasonstringoptional
receipt_idstringoptional
repetitionstringoptional
resource_double_bookingstringoptional
resource_idstringoptional
start_datestringoptional
statusstringoptional
status_filterstringoptional
status_idsstringoptional
visit_type_idstringoptional
weekly_daysstringoptional

Tool: manageEncounter

Manage encounters.

Complete encounter workflow - create, review, and sign encounters with comprehensive clinical documentation. Essential for clinical workflow from initial documentation through final signature. Actions: - "list": List encounters for a patient (requires patient_id; optionally filter by filter_by, start_date, end_date, per_page, page) - "create": Create new encounter and document clinical findings (default) - "review": Display complete encounter details for review before signing - "sign": Electronically sign encounter after review and confirmation - "unlock": Unlock a previously signed encounter to allow modifications

For creating encounters (two paths):

  • From appointment: patient_id + appointment_id (provider/facility/date come from the appointment)
  • From scratch: patient_id + provider_id + facility_id + encounter_date
  • Optional: visit_type_id, encounter_mode, chief_complaint

For reviewing encounters:

  • Requires: patient_id, encounter_id
  • Shows comprehensive encounter details including vitals, diagnoses, medications, notes

For signing encounters:

  • Requires: patient_id, encounter_id
  • Only use after reviewing and confirming all information is accurate

For unlocking encounters:

  • Requires: patient_id, encounter_id, reason
  • Used to unlock signed encounters when modifications are needed
  • Must provide a valid reason for unlocking the encounter

For updating encounters with template data:

  • action="update" with chief_complaint always saved as narrative fallback
  • template_ids: comma-separated IDs of templates to attach to the encounter
  • entries: JSON array string of populated template entries, e.g. '[{"entry_id":"123","answer":"text"}]'
  • Templates are attached first, then entries + chief_complaints saved together
  • entry_id values must come from getPracticeInfo(info_type='template_details') — hallucinated IDs are dropped client-side

Recommended workflow:

  1. Create encounter: manageEncounter(patient_id, appointment_id, action="create") — or without appointment: manageEncounter(patient_id, provider_id, facility_id, encounter_date, action="create")
  2. Add clinical data using managePatientVitals(), managePatientDrugs(), managePatientDiagnoses()
  3. Review before signing: manageEncounter(patient_id, encounter_id, action="review")
  4. Sign to finalize: manageEncounter(patient_id, encounter_id, action="sign")
  5. If modifications needed: manageEncounter(patient_id, encounter_id, reason="reason for changes", action="unlock")

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
patient_idstring
actionstringoptional
appointment_idstringoptional
chief_complaintstringoptional
encounter_datestringoptional
encounter_idstringoptional
encounter_modestringoptional
end_datestringoptional
entriesstringoptional
facility_idstringoptional
filter_bystringoptional
pagestringoptional
per_pagestringoptional
provider_idstringoptional
reasonstringoptional
start_datestringoptional
template_idsstringoptional
visit_type_idstringoptional

Tool: manageFax

Send faxes and check fax delivery status.

Fax clinical documents (referrals, records, prior auth forms) to providers, facilities, pharmacies, and insurance companies. Check delivery status of sent faxes. Actions: - "send": Fax a document (requires recipient_fax_number, recipient_name, document_content_base64). document_content_base64 must be a base64-encoded PDF. Optionally include subject, remarks, and reference for the cover page. facility_id determines which facility's fax credentials and return number are used.
  • "status": Check fax delivery status (requires fax_id). Status values: QUEUED, SENT, FAILED, YET_TO_SEND.

Common fax use cases:

  • Referral letters to specialists
  • Medical records requests
  • Prior authorization forms to insurance
  • Prescription orders to pharmacies without e-prescribe
ParametersTypeDescription
actionstring
document_content_base64stringoptional
facility_idstringoptional
fax_idstringoptional
recipient_fax_numberstringoptional
recipient_namestringoptional
referencestringoptional
remarksstringoptional
subjectstringoptional

Tool: manageMessages

Manage patient and provider messaging across SMS, WhatsApp, and secure messaging channels.

Send messages to patients, read inbox messages, and retrieve conversation threads. Supports SMS (Twilio/Telnyx), WhatsApp Business, and secure portal messaging. Use this for patient communication, follow-ups, appointment confirmations, and responding to patient inquiries. Actions: - "send": Send a message to a patient (requires patient_id, content, and facility_id). Channel options: - "sms": Send via text message (patient must have TEXT_NOTIFY_ENABLED) - "whatsapp": Send via WhatsApp (patient must be opted in) - "secure": Send via secure portal message (requires subject) - "auto": Automatically select best available channel (default) facility_id is required for all channels. Use getPracticeInfo() to look up facility IDs. For WhatsApp templates, provide template_name and placeholder values. For secure messages to providers, use recipient_member_ids.
  • "list": Show recent secure portal messages from inbox. Filter by section: "FROM_PATIENTS" (inbox) or "TO_PATIENTS" (sent). Use facility_id to filter by facility. Note: SMS and WhatsApp conversations are not available via list — use action='get_thread' with a patient_id to retrieve those.

  • "get_thread": Get full conversation history with a specific patient (requires patient_id). Filter by thread_channel to see only SMS, WhatsApp, secure, or all channels.

Before sending clinical content, confirm with the provider. Routine messages (appointment reminders, general notifications) can be sent directly.

ParametersTypeDescription
actionstring
channelstringoptional
contentstringoptional
facility_idstringoptional
message_typestringoptional
pagestringoptional
page_sizestringoptional
patient_idstringoptional
recipient_member_idsstringoptional
sectionstringoptional
subjectstringoptional
template_body_placeholdersstringoptional
template_header_placeholdersstringoptional
template_namestringoptional
thread_channelstringoptional

Tool: managePatient

Manage patients.

Complete patient management with comprehensive demographic, social, and administrative data. Handles patient creation, updates, status changes, and complex relationships. Supports all CharmHealth patient data fields for complete EHR functionality. Actions: - "create": Add new patient (requires first_name, last_name, gender, date_of_birth OR age, facility_ids) - "update": Modify existing patient (requires patient_id + fields to change). - "activate": Reactivate deactivated patient (requires patient_id only) - "deactivate": Deactivate patient (requires patient_id only)

Update Modes:

  • update_specific_details=True: Only updates the fields you provide, preserves all other existing data (RECOMMENDED, Default)
  • update_specific_details=False: Complete record update - must provide all fields or existing data will be lost

Demographics: Supports comprehensive patient information including social history, family data Addresses: If any address field provided, country is required (defaults to US) Facilities: Pass as list of facility IDs like "facility_123,facility_456". Categories: Pass as list like [{"category_id": "category_123"}]

Complex Relationships:

  • caregivers: [{"first_name": str, "last_name": str, "relationship": str, "contact": {...}, "address": {...}}]
  • guarantor: [{"first_name": str, "last_name": str, "relationship": str, "contact": {...}, "address": {...}}]
  • id_qualifiers: [{"id_qualifier": 1-8 or 99, "id_of_patient": "ID_value"}]

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
actionstring
address_line1stringoptional
address_line2stringoptional
agestringoptional
areastringoptional
birth_orderstringoptional
blood_groupstringoptional
caregiversstringoptional
categoriesstringoptionalCategories: Pass as list like [{"category_id": "category_123"}]
cause_of_deathstringoptional
citystringoptional
countrystringoptional
county_codestringoptional
custom_field_1stringoptional
custom_field_2stringoptional
custom_field_3stringoptional
custom_field_4stringoptional
custom_field_5stringoptional
date_of_birthstringoptional
deceasedstringoptional
districtstringoptional
dodstringoptional
duplicate_checkstringoptional
emailstringoptional
email_notificationstringoptional
emergency_contact_namestringoptional
emergency_contact_phonestringoptional
emergency_extnstringoptional
employment_statusstringoptional
ethnicitystringoptional
facility_idsstringoptional
first_namestringoptional
genderstringoptional
gender_identitystringoptional
guarantorstringoptional
home_phonestringoptional
id_qualifiersstringoptional
introductionstringoptional
is_multiple_birthstringoptional
languagestringoptional
last_namestringoptional
linked_patient_idstringoptional
maiden_namestringoptional
marital_statusstringoptional
middle_namestringoptional
mother_first_namestringoptional
mother_last_namestringoptional
nick_namestringoptional
patient_idstringoptional
payment_end_datestringoptional
payment_sourcestringoptional
payment_start_datestringoptional
phonestringoptional
post_boxstringoptional
preferred_communicationstringoptional
primary_phonestringoptional
racestringoptional
record_idstringoptional
rep_first_namestringoptional
rep_last_namestringoptional
send_phr_invitestringoptional
sexual_orientationstringoptional
smoking_statusstringoptional
source_namestringoptional
source_valuestringoptional
statestringoptional
suffixstringoptional
text_notificationstringoptional
update_specific_detailsstringoptional
voice_notificationstringoptional
work_phonestringoptional
work_phone_extnstringoptional
zip_codestringoptional

Tool: managePatientAllergies

Manage patient allergies.

Critical allergy management with safety alerts - document patient allergies, update allergy information, and maintain allergy safety checks. Essential for safe prescribing and clinical decision-making. Actions: - "add": Document new allergy (requires allergen, allergy_type, severity, reactions, allergy_date) - "list": Show all patient allergies (optionally filter by severity/type) - "update": Modify existing allergy (requires record_id, allergen, allergy_type, severity, allergy_status — use action='list' first to get current values, then pass all required fields with your changes) - "delete": Remove allergy record (requires record_id)

Safety critical: Always check allergies before prescribing medications. Common allergens: "Penicillin", "Latex", "Shellfish", "Nuts", "Contrast dye" Severity levels: "Mild", "Moderate", "Severe" Allergy types: "Medication", "Drug Substance", "Environmental", "Food", "Plant", "Animal", "Latex" Status values: "Active", "Inactive"

List filters:

  • severity_filter: e.g., severity_filter="Severe"
  • type_filter: e.g., type_filter="Drug"
  • limit: e.g., limit=50

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
actionstring
patient_idstring
allergenstringoptional
allergy_datestringoptional
allergy_statusstringoptional
allergy_typestringoptional
commentsstringoptional
limitstringoptional
reactionsstringoptional
record_idstringoptional
severitystringoptional
severity_filterstringoptional
type_filterstringoptional

Tool: managePatientDiagnoses

Manage patient diagnoses.

Complete diagnosis management for patient problem lists - add new diagnoses, update existing conditions, and maintain accurate medical problem lists. Essential for clinical reasoning and care planning. Actions: - "add": Add new diagnosis (requires diagnosis_name, diagnosis_code, code_type) - "list": Show all patient diagnoses (optionally filter by status, code type, and/or date range) - "update": Modify existing diagnosis (requires record_id + fields to change) - "delete": Remove diagnosis (requires record_id). Ask the user if they are sure they want to delete the diagnosis before proceeding.

Code types: "ICD10", "SNOMED" Status options: "Active", "Inactive", "Resolved" List filters:

  • status_filter: filter by diagnosis_status (e.g., status_filter="Active")
  • code_type_filter: filter by code_type (e.g., code_type_filter="ICD10")
  • from_date / to_date: best-effort date filtering (e.g., from_date="2025-01-01", to_date="2025-12-31")
  • limit: e.g., limit=25 Use encounter_id to link diagnosis to specific visit for billing and documentation

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
actionstring
patient_idstring
code_typestringoptional
code_type_filterstringoptional
commentsstringoptional
diagnosis_codestringoptional
diagnosis_namestringoptional
diagnosis_orderstringoptional
diagnosis_statusstringoptional
encounter_idstringoptional
from_datestringoptional
limitstringoptional
record_idstringoptional
status_filterstringoptional
to_datestringoptional

Tool: managePatientDrugs

Manage patient drugs and supplements.

Unified drug management for medications, supplements, and vitamins - prescribe medications, document supplements, manage drug interactions. Includes automatic allergy checking and comprehensive drug safety workflow for optimal patient care. Actions: - "add": Prescribe new drug (requires drug_name, directions for medications; drug_name, dosage for supplements) - "update": Modify existing prescription (requires record_id + fields to change). IMPORTANT: drug name and strength CANNOT be changed via update — use discontinue + add instead. Updatable fields: directions, dispense, refills, status. - "discontinue": Stop drug (requires record_id) - "list": Show all patient drugs by type (filter by substance_type, optionally filter by status)

Substance Types:

  • "medication": Prescription drugs (requires directions, refills)
  • "supplement": OTC supplements/vitamins (requires dosage as integer)
  • "vitamin": Specific vitamins (requires dosage as integer)

Safety: Automatically checks allergies before prescribing unless check_allergies=False List filters:

  • status_filter: e.g., status_filter="active"
  • limit: e.g., limit=25 For medications: Use clear directions like "Take 1 tablet by mouth twice daily with food" For supplements: Provide dosage as integer (e.g., 5) and use strength for units (e.g., "500mg")

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
actionstring
patient_idstring
check_allergiesstringoptional
commentsstringoptional
directionsstringoptional
dosagestringoptional
dosage_unitstringoptional
dose_formstringoptional
drug_namestringoptional
encounter_idstringoptional
end_datestringoptional
frequencystringoptional
intake_typestringoptional
limitstringoptional
quantitystringoptional
record_idstringoptional
refillsstringoptional
routestringoptional
start_datestringoptional
statusstringoptional
status_filterstringoptional
strengthstringoptional
substance_typestringoptional
weaning_schedulestringoptional

Tool: managePatientFiles

Manage patient files and documents.

Patient file and document management - upload patient photos, manage identity documents, and send PHR (Personal Health Record) invitations. Handles the complete patient file workflow. Actions: - "upload_photo": Upload patient photo (requires photo_file path) - "delete_photo": Remove patient photo (requires only patient_id) - "upload_id": Upload identity document (requires id_file, id_qualifier) - "send_phr_invite": Send PHR portal invitation (requires email)

ID Qualifiers: military_id, state_issued_id, drivers_license_id, passport_id, social_security_number, etc. File paths should be absolute paths to image/PDF files on the system.

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
actionstring
patient_idstring
emailstringoptional
id_filestringoptional
id_of_patientstringoptional
id_qualifierstringoptional
photo_filestringoptional
rep_first_namestringoptional
rep_last_namestringoptional

Tool: managePatientLabs

Manage patient laboratory results.

Laboratory results management - list lab results and get detailed reports. Lab results arrive automatically from integrated labs (LabCorp, Quest). For manual entry, use the CharmHealth web portal. Actions: - "list": Show lab results with filtering (optionally filter by patient_id, reviewer_id, status, date range) - "get_details": Get detailed lab report (requires group_id OR lab_order_id) For detailed results: Use group_id for result groups or lab_order_id for specific orders Status codes: 0 for pending, 2 for final results

List filters (in addition to API parameters):

  • status_filter: 0 (pending) or 2 (final)
  • from_date / to_date: e.g., from_date="2025-01-01", to_date="2025-12-31" (best-effort against common date fields)
  • limit: e.g., limit=50

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
actionstring
from_datestringoptional
group_idstringoptional
is_ascendingstringoptional
lab_order_idstringoptional
limitstringoptional
no_of_recordsstringoptional
patient_idstringoptional
reviewer_idstringoptional
sort_bystringoptional
start_indexstringoptional
statusstringoptional
status_filterstringoptional
to_datestringoptional

Tool: managePatientNotes

Manage patient notes.

Quick clinical note management for important patient information - add care notes, provider communications, and clinical observations that need to be highlighted across all patient interactions. Actions: - "add": Add new clinical note (requires notes content) - "list": Show all patient notes (optionally filter by date range) - "update": Modify existing note (requires record_id + notes content) - "delete": Remove note (requires record_id). Ask the user if they are sure they want to delete the note before proceeding.

Use for: Important care instructions, provider alerts, patient preferences, social determinants Formal encounter notes should use manageEncounter() instead

List filters:

  • from_date / to_date: e.g., from_date="2025-01-01", to_date="2025-12-31"
  • limit: e.g., limit=50

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
actionstring
patient_idstring
from_datestringoptional
limitstringoptional
notesstringoptional
record_idstringoptional
to_datestringoptional

Tool: managePatientRecalls

Manage patient recalls.

Patient recall and follow-up management - schedule preventive care reminders, follow-up appointments, and care plan reminders. Ensures patients receive timely care according to clinical guidelines. Actions: - "add": Schedule new recall (requires recall_type, notes, provider_id, facility_id) - "list": Show all patient recalls (optionally filter by type/date range) - "update": Modify existing recall (requires record_id, recall_type, notes — use action='list' first to get current values, then pass all required fields with your changes) - "delete": Remove recall (requires record_id). Ask the user if they are sure they want to delete the recall before proceeding.

recall_type is a free-form string set by the practice (e.g. "Office Visit", "Follow-up", "Imaging", "Annual Physical"). Do not invent verbose names — use short descriptive terms. Scheduling: PREFER recall_date (ISO date string, e.g. "2026-07-10"). If using recall_time/recall_timeunit instead, recall_period is also REQUIRED (e.g. recall_time=3, recall_timeunit="Months", recall_period="after") — omitting recall_period causes a server error. Reminder timing: email_reminder_before/text_reminder_before in days (e.g., 7 for one week) Use getPracticeInfo() to get valid provider_id and facility_id values

List filters:

  • type_filter: e.g., type_filter="Annual Physical"
  • from_date / to_date: e.g., from_date="2025-01-01", to_date="2025-12-31" (compares against recall_date when available)
  • limit: e.g., limit=25

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
actionstring
patient_idstring
email_reminder_beforestringoptional
encounter_idstringoptional
facility_idstringoptional
from_datestringoptional
limitstringoptional
notesstringoptional
provider_idstringoptional
recall_datestringoptional
recall_periodstringoptional
recall_timestringoptional
recall_timeunitstringoptional
recall_typestringoptional
record_idstringoptional
send_email_reminderstringoptional
send_text_reminderstringoptional
text_reminder_beforestringoptional
to_datestringoptional
type_filterstringoptional

Tool: managePatientVitals

Manage patient vitals and vital signs.

Complete patient vital signs management - record vitals during encounters, review vital trends, update incorrect readings, and track patient health metrics over time. Essential for clinical monitoring. Actions: - "add": Record new vitals (requires patient_id + vitals dict OR individual vital fields, plus encounter_id OR entry_date; defaults to today if neither provided). Check available vitals with getPracticeInfo(info_type='vitals') first to ensure all vital names and units are correct. - "list": Show patient vital history (optionally filter by vital name and/or date range) - "update": Modify existing vital record (requires record_id + fields to change) - "delete": Remove incorrect vital record (requires record_id)

Vitals Format:

  • As dict: keys are EXACT CharmHealth vital names, values are "value unit" strings. Example: {"Systolic BP": "120 mmHg", "Diastolic BP": "80 mmHg", "Weight": "150 lbs", "Temp": "98 F"}
  • Individual: vital_name="Systolic BP", vital_value="120", vital_unit="mmHg"

IMPORTANT: vital_name must be the exact CharmHealth API name. NEVER include units inside the name. Correct: "Systolic BP" | Wrong: "Systolic BP (mmHg)" or "Blood Pressure" Known names: Weight, Height, BMI, Temp, Systolic BP, Diastolic BP, Pulse Rate, Pulse Pattern, Pulse Volume, Vision Call getPracticeInfo(info_type='vitals') to get the full list of valid names and units for this practice.

List filters:

  • vital_name_filter: e.g., vital_name_filter="Blood Pressure" (matches case-insensitively, substring ok)
  • from_date / to_date: e.g., from_date="2025-01-01", to_date="2025-12-31"
  • limit: e.g., limit=20

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
actionstring
patient_idstring
encounter_idstringoptional
entry_datestringoptional
from_datestringoptional
limitstringoptional
record_idstringoptional
to_datestringoptional
vital_namestringoptional
vital_name_filterstringoptional
vital_unitstringoptional
vital_valuestringoptional
vitalsstringoptional

Tool: manageTasks

Manage CharmHealth tasks.

Task management with task creation, updating, and listing. Actions: - "add": Create new task (requires task, owner_id (look up members using getPracticeInfo()), priority (0-Low, 1-Medium, 2-High, 3-Critical), status (Pending, In-progress, Completed), comments, due_date, reminder_options, tasklist. optional: patient_id if task is related to a patient) - "update": Modify existing task (requires task_id, task, owner_id, priority, status, tasklist — use manageTasks(action='list') first to get current values, then pass all required fields with your changes) - "list": Show tasks with filtering (supports view/date range/pagination plus client-side filters) - "change_status": Change the status of a task (requires task_id (use manageTasks(action='list') to get task_id) + new_status (Pending, In-progress, Completed))

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

List filters:

  • status_filter: filter by status (e.g., status_filter="Pending")
  • priority_filter: "0"-"3" or "Low"/"Medium"/"High"/"Critical"
  • owner_filter: filter by owner_id
  • limit: max tasks to return (applied after filtering)

Examples:

  • manageTasks(action="list", view="MyTasks", status_filter="In-progress", limit=20)
  • manageTasks(action="list", view="All", priority_filter="High", owner_filter="12345")
ParametersTypeDescription
actionstring
commentsstringoptional
due_datestringoptional
from_datestringoptional
limitstringoptional
owner_filterstringoptional
owner_idstringoptional
pagestringoptional
patient_idstringoptional
per_pagestringoptional
prioritystringoptional
priority_filterstringoptional
reminder_optionsstringoptional
statusstringoptional
status_filterstringoptional
taskstringoptional
task_idstringoptional
task_idsstringoptional
taskliststringoptional
to_datestringoptional
viewstringoptional

Tool: reviewPatientHistory

Review patient history.

Get comprehensive patient information including medical history, current medications, recent visits. Perfect for clinical decision-making and preparing for patient encounters. Returns a consolidated view of patient information organized by medical relevance. By default includes all sections (include_sections=None). Specify include_sections to focus on specific areas. Results include clinical context and suggestions for next actions.

Optional filters (apply to specific sections):

  • diagnosis_status_filter: filter diagnoses by status (e.g., diagnosis_status_filter="Active")
  • medication_status_filter: filter medications by status (e.g., medication_status_filter="active")
  • supplement_status_filter: filter supplements by status (e.g., supplement_status_filter="active")
  • vitals_limit: limit number of vital entries returned (e.g., vitals_limit=10)
  • encounters_limit: limit number of encounters returned (e.g., encounters_limit=5)

For each filtered section, the response includes <section>_total_count and <section>_filtered_count.

When required parameters are missing, ask the user to provide the specific values rather than proceeding with defaults or auto-generated values.

ParametersTypeDescription
patient_idstring
diagnosis_status_filterstringoptional
encounters_limitstringoptional
include_allergiesbooleanoptional
include_appointmentsbooleanoptional
include_demographicsbooleanoptional
include_diagnosesbooleanoptional
include_encountersbooleanoptional
include_medicationsbooleanoptional
include_supplementsbooleanoptional
include_vitalsbooleanoptional
medication_status_filterstringoptional
supplement_status_filterstringoptional
vitals_limitstringoptional

Use this MCP Server

{
  "mcpServers": {
    "charmhealth-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CHARMHEALTH_BASE_URL",
        "-e",
        "CHARMHEALTH_CLIENT_ID",
        "-e",
        "CHARMHEALTH_CLIENT_SECRET",
        "-e",
        "CHARMHEALTH_REDIRECT_URI",
        "-e",
        "CHARMHEALTH_TOKEN_URL",
        "-e",
        "CHARMHEALTH_API_KEY",
        "-e",
        "CHARMHEALTH_REFRESH_TOKEN",
        "mcp/charmhealth-mcp-server"
      ],
      "env": {
        "CHARMHEALTH_BASE_URL": "your_base_url_here",
        "CHARMHEALTH_CLIENT_ID": "your_client_id_here",
        "CHARMHEALTH_CLIENT_SECRET": "your_client_secret_here",
        "CHARMHEALTH_REDIRECT_URI": "your_redirect_uri_here",
        "CHARMHEALTH_TOKEN_URL": "your_token_url_here",
        "CHARMHEALTH_API_KEY": "<CHARMHEALTH_API_KEY>",
        "CHARMHEALTH_REFRESH_TOKEN": "<CHARMHEALTH_REFRESH_TOKEN>"
      }
    }
  }
}

Why is it safer to run MCP Servers with Docker?⁠

Related servers