Wellness MCP Server

Local-first CGM MCP for AI agents: Dexcom Developer API + FreeStyle Libre via LibreLink Up.

Local serverstdioGo

What is the Wellness MCP server?

Local-first CGM MCP for AI agents: Dexcom Developer API + FreeStyle Libre via LibreLink Up. The wellness mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 7 defined tools rather than through you.

What it actually does

Local MCP server that exposes CGM data (and synthetic mock data when nothing is configured) to any MCP-aware agent. Two real backends are supported: Dexcom (Developer API, sandbox + production) and FreeStyle Libre (the OTC sensor — Libre 2 / Libre 3) via LibreLink Up. Pick the backend with CGM_PROVIDER; it auto-detects Libre when only Libre credentials are set. Both feed the same ADA time-in-range / GMI / hypo / meal-response engine.

Adding it to your client

delx-wellness-hermes on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Its toolset

Everything the assistant can do here goes through one of these:

  • cgm_agent_manifest — Runtime contract
  • cgm_capabilities — Providers, metrics, privacy modes
  • cgm_connection_status — env, credentials, mode (live vs mock)
  • cgm_privacy_audit — Local storage + outbound destinations
  • cgm_data_inventory — Metric catalog + TIR ranges + GMI formula
  • cgm_glucose_window — All EGVs over last N hours (+ hours_covered — see the Libre ~12h limit)
  • cgm_authorize_url — Dexcom OAuth URL builder

Configuration

You will need 8 environment variables: DEXCOM_ENV, DEXCOM_CLIENT_ID, DEXCOM_CLIENT_SECRET, DEXCOM_REDIRECT_URI, CGM_PROVIDER, LIBRELINKUP_EMAIL, LIBRELINKUP_PASSWORD, LIBRELINKUP_REGION. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the wellness mcp server does with a few real requests.

When to reach for it

This sits in the file and storage access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Wellness's toolset — cgm_agent_manifest, cgm_capabilities, cgm_connection_status and 4 more — is a fair guide to whether it matches your workflow. It is maintained by davidmosiah; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
cgm_agent_manifestRuntime contract
cgm_capabilitiesProviders, metrics, privacy modes
cgm_connection_statusenv, credentials, mode (live vs mock)
cgm_privacy_auditLocal storage + outbound destinations
cgm_data_inventoryMetric catalog + TIR ranges + GMI formula
cgm_glucose_windowAll EGVs over last N hours (+ hours_covered — see the Libre ~12h limit)
cgm_authorize_urlDexcom OAuth URL builder

How to install the Wellness MCP server

{
  "mcpServers": {
    "wellness-cgm": {
      "command": "npx",
      "args": ["-y", "delx-wellness-hermes"],
      "env": {
        "DEXCOM_ENV": "your-value",
        "DEXCOM_CLIENT_ID": "your-value",
        "DEXCOM_CLIENT_SECRET": "your-value",
        "DEXCOM_REDIRECT_URI": "your-value",
        "CGM_PROVIDER": "your-value",
        "LIBRELINKUP_EMAIL": "your-value",
        "LIBRELINKUP_PASSWORD": "your-value",
        "LIBRELINKUP_REGION": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
DEXCOM_ENVConfiguration value read at startup.Optional
DEXCOM_CLIENT_IDConfiguration value read at startup.Optional
DEXCOM_CLIENT_SECRETCredential the server authenticates with.Yes
DEXCOM_REDIRECT_URIFilesystem location the server is allowed to use.Optional
CGM_PROVIDERConfiguration value read at startup.Optional
LIBRELINKUP_EMAILConfiguration value read at startup.Optional
LIBRELINKUP_PASSWORDConfiguration value read at startup.Optional
LIBRELINKUP_REGIONConfiguration value read at startup.Optional

Example prompts to try

  • Use Wellness to cgm agent manifest.
  • Use Wellness to cgm capabilities.
  • Use Wellness to cgm connection status.

Frequently asked questions

It connects Wellness to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (cgm_agent_manifest, cgm_capabilities, cgm_connection_status, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Wellness directly.