withingsmcp

v0.4.7
io.github.davidmosiah/withingsmcp Checked 1 hour ago Published 5 months ago

Privacy-first, unofficial Withings MCP server for AI health, sleep, activity and heart-rate agents.

Values you need

VariableWhat it is
WITHINGS_CLIENT_IDoptional Withings OAuth client ID. Optional when configured with withings-mcp-server setup.
WITHINGS_CLIENT_SECREToptional secret Withings OAuth client secret. Prefer withings-mcp-server setup so this secret is stored in ~/.withings-mcp/config.json instead of MCP client config.
WITHINGS_REDIRECT_URIoptional Redirect URI configured in the Withings Developer Dashboard. Optional when configured with withings-mcp-server setup.
WITHINGS_TOKEN_PATHoptional Optional local path for OAuth tokens. Defaults to ~/.withings-mcp/tokens.json.
WITHINGS_PRIVACY_MODEoptional Optional payload mode: summary, structured, or raw. Defaults to structured. raw means full Withings API payloads, not continuous 24/7 raw sensor telemetry.
WITHINGS_CACHEoptional Optional SQLite cache toggle. Set to true or sqlite to enable.
WITHINGS_CACHE_PATHoptional Optional local SQLite cache path. Defaults to ~/.withings-mcp/cache.sqlite.
WITHINGS_NO_CACHEoptional Set to true to bypass the in-memory HTTP response cache (60s TTL for GET only). POST/PUT/DELETE and 4xx/5xx responses are never cached regardless. Note: Withings's wbsapi.withings.net is POST-only today, so this is currently a no-op.

npm (npx) verified

Requires Node.js 18+

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

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: withings_data_inventory, withings_agent_manifest, withings_capabilities, withings_quickstart, withings_demo, withings_get_auth_url, withings_exchange_code, withings_list_body_measures, ….
  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