Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-chrischall-myatriumhealth-mcp": {
"command": "npx",
"args": [
"-y",
"@chrischall/myatriumhealth-mcp"
],
"env": {
"MAH_WS_PORT": "37149",
"MAH_READ_ONLY": "false",
"MAH_OUTPUT_DIR": "<VALUE>",
"MAH_USERNAME": "<VALUE>",
"MAH_PASSWORD": "<YOUR_VALUE>",
"MAH_DOTENV": "<VALUE>",
"MAH_DEVICE_FILE": "~/.myatriumhealth-mcp/device.json",
"FETCHPROXY_WS_HOST": "<VALUE>",
"FETCHPROXY_IDENTITY_DIR": "<VALUE>",
"MCP_CONFIRM_MODE": "ask-user",
"MCP_CONFIRM_SECRET": "random per process",
"MCP_CONFIRM_TTL_SECONDS": "600"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-chrischall-myatriumhealth-mcp": {
"command": "npx",
"args": [
"-y",
"@chrischall/myatriumhealth-mcp"
],
"env": {
"MAH_WS_PORT": "37149",
"MAH_READ_ONLY": "false",
"MAH_OUTPUT_DIR": "<VALUE>",
"MAH_USERNAME": "<VALUE>",
"MAH_PASSWORD": "<YOUR_VALUE>",
"MAH_DOTENV": "<VALUE>",
"MAH_DEVICE_FILE": "~/.myatriumhealth-mcp/device.json",
"FETCHPROXY_WS_HOST": "<VALUE>",
"FETCHPROXY_IDENTITY_DIR": "<VALUE>",
"MCP_CONFIRM_MODE": "ask-user",
"MCP_CONFIRM_SECRET": "random per process",
"MCP_CONFIRM_TTL_SECONDS": "600"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-chrischall-myatriumhealth-mcp": {
"command": "npx",
"args": [
"-y",
"@chrischall/myatriumhealth-mcp"
],
"env": {
"MAH_WS_PORT": "37149",
"MAH_READ_ONLY": "false",
"MAH_OUTPUT_DIR": "<VALUE>",
"MAH_USERNAME": "<VALUE>",
"MAH_PASSWORD": "<YOUR_VALUE>",
"MAH_DOTENV": "<VALUE>",
"MAH_DEVICE_FILE": "~/.myatriumhealth-mcp/device.json",
"FETCHPROXY_WS_HOST": "<VALUE>",
"FETCHPROXY_IDENTITY_DIR": "<VALUE>",
"MCP_CONFIRM_MODE": "ask-user",
"MCP_CONFIRM_SECRET": "random per process",
"MCP_CONFIRM_TTL_SECONDS": "600"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-chrischall-myatriumhealth-mcp": {
"command": "npx",
"args": [
"-y",
"@chrischall/myatriumhealth-mcp"
],
"env": {
"MAH_WS_PORT": "37149",
"MAH_READ_ONLY": "false",
"MAH_OUTPUT_DIR": "<VALUE>",
"MAH_USERNAME": "<VALUE>",
"MAH_PASSWORD": "<YOUR_VALUE>",
"MAH_DOTENV": "<VALUE>",
"MAH_DEVICE_FILE": "~/.myatriumhealth-mcp/device.json",
"FETCHPROXY_WS_HOST": "<VALUE>",
"FETCHPROXY_IDENTITY_DIR": "<VALUE>",
"MCP_CONFIRM_MODE": "ask-user",
"MCP_CONFIRM_SECRET": "random per process",
"MCP_CONFIRM_TTL_SECONDS": "600"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-chrischall-myatriumhealth-mcp": {
"command": "npx",
"args": [
"-y",
"@chrischall/myatriumhealth-mcp"
],
"env": {
"MAH_WS_PORT": "37149",
"MAH_READ_ONLY": "false",
"MAH_OUTPUT_DIR": "<VALUE>",
"MAH_USERNAME": "<VALUE>",
"MAH_PASSWORD": "<YOUR_VALUE>",
"MAH_DOTENV": "<VALUE>",
"MAH_DEVICE_FILE": "~/.myatriumhealth-mcp/device.json",
"FETCHPROXY_WS_HOST": "<VALUE>",
"FETCHPROXY_IDENTITY_DIR": "<VALUE>",
"MCP_CONFIRM_MODE": "ask-user",
"MCP_CONFIRM_SECRET": "random per process",
"MCP_CONFIRM_TTL_SECONDS": "600"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-chrischall-myatriumhealth-mcp": {
"command": "npx",
"args": [
"-y",
"@chrischall/myatriumhealth-mcp"
],
"env": {
"MAH_WS_PORT": "37149",
"MAH_READ_ONLY": "false",
"MAH_OUTPUT_DIR": "<VALUE>",
"MAH_USERNAME": "<VALUE>",
"MAH_PASSWORD": "<YOUR_VALUE>",
"MAH_DOTENV": "<VALUE>",
"MAH_DEVICE_FILE": "~/.myatriumhealth-mcp/device.json",
"FETCHPROXY_WS_HOST": "<VALUE>",
"FETCHPROXY_IDENTITY_DIR": "<VALUE>",
"MCP_CONFIRM_MODE": "ask-user",
"MCP_CONFIRM_SECRET": "random per process",
"MCP_CONFIRM_TTL_SECONDS": "600"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| MAH_WS_PORT | No | fetchproxy concentrator port (bridge mode only). The whole fleet shares this one port; override only when hosting. Default: 37149 |
| MAH_READ_ONLY | No | true refuses mah_reply_message sends (previews still work). The tool stays listed either way. Default: false |
| MAH_OUTPUT_DIR | No | 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_USERNAME | No | MyAtriumHealth username. Set with MAH_PASSWORD to enable bridge-less mode. Setting only one falls back to the browser bridge with a warning. |
| MAH_PASSWORD secret | No | MyAtriumHealth portal password. Set with MAH_USERNAME to enable bridge-less mode. Setting only one falls back to the browser bridge with a warning. |
| MAH_DOTENV | No | Path to a .env file to read credentials from. The server reads the first .env it finds, in this order: MAH_DOTENV, then ~/.myatriumhealth-mcp/.env, then ./.env. |
| MAH_DEVICE_FILE | No | Session state file (0600). Holds the live cookie jar as well as the device token — treat as a credential. Default: ~/.myatriumhealth-mcp/device.json |
| FETCHPROXY_WS_HOST | No | 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_DIR | No | Absolute path where the fetchproxy long-term identity keypair is stored (default ~/.fetchproxy/identity/). |
| MCP_CONFIRM_MODE | No | What a reply does on a client that cannot show a confirmation prompt (claude.ai, Claude Desktop). ask-user: two steps — the first call sends nothing and returns a preview plus a token, and the model must get your approval in chat before calling again with it. auto: the same two steps, but the model may use the token after reviewing the preview itself. refuse: replies are refused on such clients. A client that can show prompts (Claude Code) always gets the real prompt. An unrecognised value is treated as refuse. Default: ask-user |
| MCP_CONFIRM_SECRET | No | Signing key; set it only if tokens must survive a server restart. Default: random per process |
| MCP_CONFIRM_TTL_SECONDS | No | How long a token stays valid. Default: 600 |