myatriumhealth-mcp

v1.7.0
io.github.chrischall/myatriumhealth-mcp Checked 10 hours ago Published 4 days ago

MyAtriumHealth (Epic MyChart) records via your signed-in browser tab

Values you need

VariableWhat it is
MAH_WS_PORToptional Override the fetchproxy WebSocket port (default 37149).
MAH_READ_ONLYoptional true refuses mah_reply_message sends (previews still work) and mah_get_message markRead. Default false.
MAH_OUTPUT_DIRoptional Directory downloaded attachments, documents and oversized or non-viewable images are saved to (0600 files), default ~/Downloads/myatriumhealth-mcp. Local installs only; a hosted deployment returns a download link instead.
MAH_USERNAMEoptional MyAtriumHealth username. Set with MAH_PASSWORD to enable bridge-less mode. Leave both empty to relay through your signed-in browser tab.
MAH_PASSWORDoptional secret Portal password. Both are required; setting only one falls back to the bridge (with a warning).
MAH_DOTENVoptional Path to a .env file read first; failing that ~/.myatriumhealth-mcp/.env, then ./.env. A real MAH_USERNAME / MAH_PASSWORD in the environment always wins.
MAH_DEVICE_FILEoptional Session state (0600), default ~/.myatriumhealth-mcp/device.json. Holds the live cookie jar as well as the device token — treat as a credential.
FETCHPROXY_WS_HOSToptional Bind interface for the fetchproxy concentrator, a literal IP only (default 127.0.0.1). Keep on loopback; it exists for hosted deployments that run each MCP in its own network namespace.
FETCHPROXY_IDENTITY_DIRoptional Absolute path where the fetchproxy long-term identity keypair is stored (default ~/.fetchproxy/identity/).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add myatriumhealth-mcp -- npx -y @chrischall/myatriumhealth-mcp@1.7.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "myatriumhealth-mcp": {
      "args": [
        "-y",
        "@chrischall/myatriumhealth-mcp@1.7.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "myatriumhealth-mcp": {
      "args": [
        "-y",
        "@chrischall/myatriumhealth-mcp@1.7.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "myatriumhealth-mcp": {
      "args": [
        "-y",
        "@chrischall/myatriumhealth-mcp@1.7.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.myatriumhealth-mcp]
command = "npx"
args = ["-y", "@chrischall/myatriumhealth-mcp@1.7.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: mah_list_allergies, mah_list_health_issues, mah_list_immunizations, mah_list_medications, mah_list_care_team, mah_list_goals, mah_list_test_results, mah_get_test_result, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json