Skip to content
CharmHealth logo
MCP server

CharmHealth MCP Server

MCP server for CharmHealth

CharmHealth scores 31 (Limited), licensed MIT and written in Python. It installs as a local process. It declares 16 tools. Filed under Uncategorized. GitHub shows 13 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by charmhealthMITPython13 stars
Trust score
31Limited
Trust score 31 of 100, Limited

Limited trust

31 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 31 comes from

0 + 6 + 4 + 10 + 7 + 4 = 31. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance6 / 20

How recently the repository saw a commit or release.

Maintenance: 6 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security7 / 10

Not archived, a secure install path, a pinned version.

Security: 7 of 10 points.
Docs4 / 10

A real summary, a README with depth, listed tools.

Docs: 4 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "charmhealth-charm-mcp-server": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "mcp/charmhealth-mcp-server"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools16Tool docs quality grade C

All capabilities
  • Advanced patient search with demographics, location, and medical criteria. Essential first step for any patient-related task.

  • Get essential practice information including available facilities, providers, and vital signs templates.

  • Complete appointment lifecycle management including scheduling, rescheduling, cancellation, and flexible filtering.

  • Complete encounter documentation workflow with comprehensive SOAP note capabilities and specialized clinical sections.

  • Patient messaging across secure portal, SMS, and WhatsApp channels. Send messages, list portal inbox/sent, and retrieve full conversation threads per patient. Secure portal messages reach the patient's PHR.

  • Complete patient management with comprehensive demographic, social, and administrative data. Handles patient creation, updates, and status changes.

  • Critical allergy management with safety alerts. Essential for safe prescribing and clinical decision-making.

  • Complete diagnosis management for patient problem lists. Essential for clinical reasoning and care planning.

  • Unified drug management for medications, supplements, and vitamins with automatic allergy checking and drug safety workflow.

  • Patient file and document management including photos, identity documents, and PHR invitations.

  • Complete laboratory results management including listing lab results, detailed reports, and adding new results.

  • Quick clinical note management for important patient information and provider communications.

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.

Python 3.13+ License: MIT

Critical HIPAA Notice

[!CAUTION] This server can access, transmit, and surface protected health information (PHI). Use it only with:

  • HIPAA-compliant LLM services covered by a signed BAA and configured with no training and zero data retention
  • HIPAA-compliant MCP clients, or clients operated entirely within your HIPAA compliance program

If you are using this with actual patient data (non-sandbox data), do not connect non-HIPAA consumer LLM endpoints or clients. You are responsible for enforcing access controls, audit logging, encryption in transit/at rest, and data retention policies for your deployment.

Features

The server provides 16 comprehensive tools for complete EHR functionality:

  • Encounter Management: Complete SOAP note workflow and clinical findings
  • Patient Search & Records: Advanced patient search with demographics, location, and medical criteria
  • Patient Management: Complete demographic and administrative data handling
  • Medical History: Comprehensive patient clinical overview and history review
  • Drug Management: Unified medications, supplements, and prescribing with safety checks
  • Allergy Management: Critical allergy documentation with safety alerts
  • Diagnosis Management: Problem list and diagnosis tracking
  • Clinical Notes: Quick clinical observations and provider communications
  • Recalls & Follow-ups: Preventive care reminders and appointment scheduling
  • Vital Signs: Complete vital signs recording and trend monitoring
  • File Management: Patient photos, documents, and PHR invitations
  • Laboratory Management: Lab results tracking and detailed reporting
  • Practice Setup: Facilities, providers, and vital sign templates
  • Appointment Management: Complete appointment lifecycle with scheduling and rescheduling
  • Task Management: Complete task lifecycle
  • Patient Messaging: Secure portal, SMS, and WhatsApp messaging with conversation threads
  • Fax: Send faxes and track delivery status

Quick Start

  1. Clone and install dependencies:

    git clone https://github.com/CharmHealth/charm-mcp-server.git
    cd charm-mcp-server
    uv sync
    
  2. Configure environment:

    cp .env.example .env
    # Edit .env with your CharmHealth API credentials
    
  3. Run the server:

    uv run --directory src mcp_server.py
    
  4. Configure your HIPAA-compliant MCP client (e.g., an enterprise/HIPAA-compliant deployment of your chosen client) to connect to the server.

Prerequisites

  • Python 3.13 or higher
  • CharmHealth API credentials (sandbox or production)
  • uv to run the server
  • An MCP client that is HIPAA-compliant or operated under your HIPAA program
  • An LLM service that is HIPAA-compliant and covered by a signed BAA

Installation

1. Clone the Repository

git clone https://github.com/CharmHealth/charm-mcp-server.git
cd charm-mcp-server

2. Install Dependencies

Using uv (recommended):

uv sync

Note: This project uses pyproject.toml for dependency management. If you prefer pip, you can install from the project definition:

pip install -e .

3. Environment Configuration

Create a .env file in the project root with your CharmHealth API credentials:

# CharmHealth API Configuration
CHARMHEALTH_BASE_URL=your_base_uri_here
CHARMHEALTH_API_KEY=your_api_key_here
CHARMHEALTH_REFRESH_TOKEN=your_refresh_token_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

# Lets this server answer with its OWN credentials when a request carries no
# per-user token. Required for a local stdio server (Claude Desktop, Cursor),
# which has no OAuth flow and always authenticates as itself.
#
# Do NOT set this on a deployment that serves per-user tokens. There, a request
# without a token would be answered as whatever practice this server is
# configured for — a successful response containing the wrong patients.
CHARMHEALTH_ALLOW_SERVER_CREDENTIALS=1

# Optional: Set to "prod" for production logging
ENV=dev

# Enable or disable metric collection using OTEL. This is disabled by default. 
COLLECT_METRICS=false

Important: All environment variables must be properly set before running the server. The server will fail to start if required CharmHealth API credentials are missing.

4. Obtain CharmHealth API Credentials

To get your CharmHealth API credentials:

  1. Contact CharmHealth: Reach out to CharmHealth API support to request API access
  2. OAuth Setup: Follow their OAuth 2.0 setup process to obtain:
    • API Key
    • Client ID
    • Client Secret
    • Refresh Token
    • Redirect URI
  3. Sandbox vs Production: Use sandbox URLs for testing, production URLs for live data

Running the Server

# Stdio mode (default)
uv run --directory src mcp_server.py

# HTTP mode
uv run --directory src mcp_server.py http

Docker Deployment

The MCP server can be run as a Docker container for easier deployment and isolation.

Running with Docker

Stdio Transport Mode (Default)

Run the container with stdio transport for MCP client connections:

docker run --rm -i \
  -e CHARMHEALTH_BASE_URL='https://sandbox3.charmtracker.com/api/ehr/v1' \
  -e CHARMHEALTH_API_KEY='your_api_key_here' \
  -e CHARMHEALTH_REFRESH_TOKEN='your_refresh_token_here' \
  -e CHARMHEALTH_CLIENT_ID='your_client_id_here' \
  -e CHARMHEALTH_CLIENT_SECRET='your_client_secret_here' \
  -e CHARMHEALTH_REDIRECT_URI='your_redirect_uri_here' \
  -e CHARMHEALTH_TOKEN_URL='your_token_url_here' \
  -e CHARMHEALTH_ALLOW_SERVER_CREDENTIALS='1' \
  charm-mcp-server

HTTP Transport Mode

For HTTP mode, expose the port and modify the server configuration:

docker run --rm -i \
  -e CHARMHEALTH_BASE_URL='https://sandbox3.charmtracker.com/api/ehr/v1' \
  -e CHARMHEALTH_API_KEY='your_api_key_here' \
  -e CHARMHEALTH_REFRESH_TOKEN='your_refresh_token_here' \
  -e CHARMHEALTH_CLIENT_ID='your_client_id_here' \
  -e CHARMHEALTH_CLIENT_SECRET='your_client_secret_here' \
  -e CHARMHEALTH_REDIRECT_URI='your_redirect_uri_here' \
  -e CHARMHEALTH_TOKEN_URL='your_token_url_here' \
  -p 8080:8080 \
  charm-mcp-server

This example deliberately leaves out CHARMHEALTH_ALLOW_SERVER_CREDENTIALS. Over HTTP, each request should carry its own user's token. With the flag set, a request that carries no token is answered with the server's own account, so anyone who can reach the port reads that practice's patients. Set it only for stdio, or for an HTTP server that never leaves your machine.

Note: For HTTP mode, you'll need to modify mcp_server.py to use HTTP transport:

mcp_composite_server.run(transport="http", host="0.0.0.0", port=8080)

MCP Client Configuration with Docker

Stdio Transport Mode

Configure your MCP client to use the Docker container:

{
  "mcpServers": {
    "charm-mcp-server-docker": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "CHARMHEALTH_BASE_URL=https://sandbox3.charmtracker.com/api/ehr/v1",
        "-e",
        "CHARMHEALTH_API_KEY=your_api_key_here",
        "-e",
        "CHARMHEALTH_REFRESH_TOKEN=your_refresh_token_here",
        "-e",
        "CHARMHEALTH_CLIENT_ID=your_client_id_here",
        "-e",
        "CHARMHEALTH_CLIENT_SECRET=your_client_secret_here",
        "-e",
        "CHARMHEALTH_REDIRECT_URI=your_redirect_uri_here",
        "-e",
        "CHARMHEALTH_TOKEN_URL=your_token_url_here",
        "charm-mcp-server"
      ]
    }
  }
}

HTTP Transport Mode

For clients that support HTTP transport:

{
  "mcpServers": {
    "charm-health-http": {
      "url": "http://localhost:8080/mcp"
    }
  }
}

Docker Compose

For easier management, create a docker-compose.yml file:

version: '3.8'

services:
  charm-mcp-server:
    build: .
    environment:
      - CHARMHEALTH_BASE_URL=https://sandbox3.charmtracker.com/api/ehr/v1
      - CHARMHEALTH_API_KEY=your_api_key_here
      - CHARMHEALTH_REFRESH_TOKEN=your_refresh_token_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
      - ENV=prod
    ports:
      - "8080:8080"  # Only needed for HTTP mode
    stdin_open: true  # Required for stdio transport
    tty: true

Run with Docker Compose:

docker-compose up --build

Docker Environment Variables

All CharmHealth API credentials can be configured via environment variables when running the Docker container:

Environment VariableDescriptionRequired
CHARMHEALTH_BASE_URLCharmHealth API base URLYes
CHARMHEALTH_API_KEYAPI key for authenticationYes
CHARMHEALTH_REFRESH_TOKENOAuth refresh tokenYes
CHARMHEALTH_CLIENT_IDOAuth client IDYes
CHARMHEALTH_CLIENT_SECRETOAuth client secretYes
CHARMHEALTH_REDIRECT_URIOAuth redirect URIYes
CHARMHEALTH_TOKEN_URLOAuth token endpoint URLYes
ENVEnvironment mode (dev/prod)No

Docker Benefits

  • Isolation: Run the MCP server in an isolated environment
  • Consistency: Same runtime environment across different machines
  • Easy Deployment: Simple deployment and scaling
  • No Local Dependencies: No need to install Python or dependencies locally
  • Version Control: Pin specific versions of the server

MCP Client Configuration

MCP Clients with local LLMs (e.g., LM Studio)

Use a local/on-device LLM-based MCP client to keep PHI within your environment. Configure your client to launch this server via stdio.

Example (for clients that accept a JSON-based configuration schema):

{
  "mcpServers": {
    "charm-mcp-server": {
      "command": "uv",
      "args": [
                "--directory",
                "/path/to/charm-mcp-server/src",
                "run",
                "mcp_server.py"
                ],
      "env": {
        "CHARMHEALTH_BASE_URL": "https://sandbox3.charmtracker.com/api/ehr/v1",
        "CHARMHEALTH_API_KEY": "your_api_key_here",
        "CHARMHEALTH_REFRESH_TOKEN": "your_refresh_token_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"
      }
    }
  }
}

Note: Do not use non-HIPAA consumer clients (e.g., Claude Desktop) with PHI.

Other MCP Clients

For other MCP clients, configure them to run the server using:

  • Command: uv run src/mcp_server.py (from project root) or python mcp_server.py (from src/ directory)
  • Transport: stdio
  • Environment: Include all CharmHealth API credentials

Available Tools

The server provides 16 comprehensive tools for complete EHR functionality:

Patient and Encounter Management (12 tools)

  • manageEncounter - Complete encounter documentation workflow with comprehensive SOAP note capabilities and specialized clinical sections.
  • findPatients - Advanced patient search with demographics, location, and medical criteria. Essential first step for any patient-related task.
  • managePatient - Complete patient management with comprehensive demographic, social, and administrative data. Handles patient creation, updates, and status changes.
  • reviewPatientHistory - Get comprehensive patient information including medical history, current medications, and recent visits. Perfect for clinical decision-making.
  • managePatientDrugs - Unified drug management for medications, supplements, and vitamins with automatic allergy checking and drug safety workflow.
  • managePatientAllergies - Critical allergy management with safety alerts. Essential for safe prescribing and clinical decision-making.
  • managePatientDiagnoses - Complete diagnosis management for patient problem lists. Essential for clinical reasoning and care planning.
  • managePatientNotes - Quick clinical note management for important patient information and provider communications.
  • managePatientRecalls - Patient recall and follow-up management for preventive care reminders and care plan tracking.
  • managePatientVitals - Complete patient vital signs management with trend monitoring. Essential for clinical monitoring.
  • managePatientFiles - Patient file and document management including photos, identity documents, and PHR invitations.
  • managePatientLabs - Complete laboratory results management including listing lab results, detailed reports, and adding new results.

Practice Information (2 tools)

  • getPracticeInfo - Get essential practice information including available facilities, providers, and vital signs templates.
  • manageAppointments - Complete appointment lifecycle management including scheduling, rescheduling, cancellation, and flexible filtering.

Communication (1 tool)

  • manageMessages - Patient messaging across secure portal, SMS, and WhatsApp channels. Send messages, list portal inbox/sent, and retrieve full conversation threads per patient. Secure portal messages reach the patient's PHR.

Task Management (1 tool)

  • manageTasks - Complete task lifecycle management including creating, updating, listing, and changing the status of practice tasks.

Health Check

The server includes a health check endpoint:

GET /health

Returns:

{
  "status": "healthy",
  "timestamp": "2024-01-01T12:00:00Z"
}

Features

Logging & Telemetry

  • Structured logging for debugging and monitoring
  • OpenTelemetry integration for metrics and tracing
  • Tool-level performance metrics tracking

Error Handling

  • Comprehensive error handling with informative messages
  • Automatic token refresh for expired authentication

Security

  • Secure credential management via environment variables
  • API key rotation support

HIPAA and PHI Compliance

When handling PHI, you must ensure your entire toolchain is HIPAA compliant:

  • Only use HIPAA-compliant LLMs under a signed BAA. Configure zero data retention and disable model training.
  • Only use HIPAA-compliant MCP clients, or run clients within a controlled environment covered by your HIPAA program. Validate any third-party extensions or tools used by the client.
  • Enforce least-privilege access controls, audit logging, and encryption in transit and at rest.
  • Avoid sending PHI to logs or telemetry. Keep COLLECT_METRICS=false unless your telemetry backend is HIPAA-compliant and covered by a BAA.
  • Review and adhere to your organization’s HIPAA policies for data handling, retention, and breach notification.

Development

Project Structure

charm-mcp-server/
├── src/
│   ├── mcp_server.py                # Main server entry point
│   ├── api/
│   │   ├── __init__.py
│   │   └── api_client.py            # CharmHealth API client
│   ├── tools/
│   │   ├── __init__.py
│   │   └── *.py                     # All 16 MCP tools, grouped by sub-server
│   ├── common/
│   │   ├── __init__.py
│   │   └── utils.py                 # Utility helpers
│   ├── telemetry/
│   │   ├── __init__.py
│   │   ├── telemetry_config.py      # Telemetry and monitoring
│   │   └── tool_metrics.py          # Tool performance tracking
│   └── charm_mcp_server.egg-info/   # Package metadata
├── pyproject.toml                   # Python project configuration
├── uv.lock                          # Dependency lock file
├── DOCKER.md                        # Docker deployment guide
└── README.md                        # This file

Testing

Test individual tools by running the server and connecting with an MCP client, or test using MCP Inspector:

cd path/to/charm-mcp-server
npx @modelcontextprotocol/inspector uvx uv run src/mcp_server.py

Troubleshooting

Common Issues

  1. Authentication Errors

    • Verify all CharmHealth API credentials are correct
    • Check that the refresh token is still valid
    • Ensure the API key has the necessary permissions
  2. Connection Issues

    • Confirm the base URL is correct (sandbox vs production)
    • Check network connectivity to CharmHealth servers
    • Verify firewall settings allow outbound HTTPS connections
  3. Tool Errors

    • Check the server logs for detailed error messages
    • Verify required parameters are provided
    • Ensure patient IDs and other identifiers are valid

Debug Mode

Set the environment variable for more detailed logging:

export ENV=dev

This will provide more detailed debug information in the console output.

Support

For issues, questions, or feature requests, contact vibhu@charmhealthtech.com.

When reporting issues, please include:

  • Server logs with error messages
  • Environment configuration (sanitized)
  • Tool(s) being called
  • Expected vs actual behavior

Frequently asked questions

What is CharmHealth MCP Server?

MCP server for CharmHealth

How do I install CharmHealth MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. CharmHealth MCP Server runs locally from the Docker image mcp/charmhealth-mcp-server with the command docker run -i --rm mcp/charmhealth-mcp-server.

Is CharmHealth MCP Server free and open source?

Yes. CharmHealth MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does CharmHealth MCP Server support remote (HTTP) connections?

No remote endpoint is listed for CharmHealth MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does CharmHealth MCP Server provide?

CharmHealth MCP Server provides 16 tools, including findPatients, getPracticeInfo, manageAppointments, and manageEncounter. See the full tool list for descriptions and parameters.

How is CharmHealth MCP Server's trust score calculated?

CharmHealth MCP Server scores 31 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server