Withings MCP logo

Withings MCP

by partymola

Connects AI agents to Withings health data with OAuth, SQLite caching, live queries, and trend analysis.

Install Withings MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "partymola-withings-mcp": {
      "command": "uvx",
      "args": [
        "withings-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

partymola/withings-mcp connects MCP clients to the Withings Health API through OAuth-authenticated tools for body composition, sleep, activity, workouts, devices, and ECG results. It stores most queried data in a local SQLite database, supports incremental synchronization, and can analyze cached data across weekly, monthly, or quarterly periods. Reach for it when an agent needs historical Withings data, offline-friendly queries, or comparisons across health metrics. The server runs over stdio and requires Python 3.13 or newer.

Use cases

  • Sync Withings measurements into a local SQLite cache
  • Query weight, body composition, and vital-sign history
  • Review sleep phases, scores, and respiratory trends
  • Compare activity or body metrics across time periods
  • Inspect workouts, connected devices, or ECG classifications

Key features

  • Incremental Withings data synchronization
  • Local SQLite cache for historical queries
  • Body, sleep, activity, and workout retrieval
  • Trend aggregation and period comparisons
  • Live device and ECG lookups
  • OAuth authorization with token refresh

Tools8

What Withings MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/27 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · withings-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Tools exposed8Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Withings MCP works

What partymola/withings-mcp MCP server does

partymola/withings-mcp exposes Withings Health API data through the Model Context Protocol. It covers body measurements, sleep, daily activity, workout sessions, connected devices, and ECG recordings with atrial fibrillation classifications. The server is read-only with respect to Withings data: its tools retrieve information and do not modify records on Withings servers.

Most historical data is copied into a local SQLite database. This supports queries without contacting the API for every request and provides the data source used by trend calculations. Body measurements include weight, body fat, muscle, bone, blood pressure, oxygen saturation, temperature, and other available metrics.

How it works

Run an initial synchronization to populate the cache. The sync operation accepts a selection of data types and a history length; later runs fetch only data newer than the previous synchronization. Cache-backed query tools can also synchronize automatically when their data is stale, or bypass the database with live=true.

Body, sleep-summary, activity, workout, and trend queries normally use SQLite. Device and ECG queries always call the Withings API. Detailed sleep mode also uses a live request and returns minute-level sleep phases, with a maximum request range of seven days. OAuth handles authorization and refreshes access credentials; tokens are stored locally.

Trend analysis aggregates body, sleep, or activity data by week, month, or quarter. It can also compare two explicitly specified periods and returns averages, extrema, and change indicators where applicable.

Setup and configuration

A Withings developer account and registered application are required. Register the application in the Withings developer dashboard and use http://localhost:8585 as its callback URL. The setup process requires the application’s client ID and client secret.

Install the package with pip, or run it through uvx. The command withings-mcp auth opens the browser-based authorization flow and saves the resulting credentials in the configuration directory. Start the MCP server with the withings-mcp command; it uses stdio transport. Claude Code can register it with claude mcp add and the executable path.

By default, credentials and tokens are kept under ./config/, while the SQLite database is ./withings.db. Set WITHINGS_MCP_CONFIG_DIR to change the credential location or WITHINGS_MCP_DB_PATH to select another database path. The withings-mcp doctor command checks paths and credentials without making an API request.

Tools and capabilities

  • withings_sync downloads selected Withings data into SQLite and reports records synchronized.
  • withings_get_body retrieves body-composition measurements with date and metric filters.
  • withings_get_sleep returns nightly summaries or live, detailed sleep phases with heart-rate and respiratory data.
  • withings_get_activity returns daily steps, distance, calories, and active time.
  • withings_get_workouts lists workout sessions and can filter by workout category.
  • withings_get_heart retrieves ECG records, heart rate, and AFib classifications from compatible devices.
  • withings_get_devices lists connected devices with model, battery, firmware, and session information.
  • withings_trends calculates period aggregates and comparisons for body, sleep, and activity data.

Limitations and notes

Python 3.13 or newer is required. Detailed sleep requests are limited to seven days and do not return raw signal waveforms for ECG data. ECG access requires a Withings device with ECG capability, such as ScanWatch or BPM Core. The server depends on a registered Withings application and completed OAuth authorization. Health data and tokens remain in local storage, so the configuration and database paths should be protected appropriately.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Withings MCP

partymola/withings-mcp is an MCP server that connects AI clients to the Withings Health API. Its main tools synchronize data to SQLite, query body composition, sleep, activity, and workouts, analyze trends, and retrieve live device and ECG information. OAuth handles authorization, while most historical queries can use the local cache.

Install it with `pip install withings-mcp` or run it with `uvx withings-mcp`. For a development checkout, create a Python 3.13 virtual environment and install the project with `uv pip install -e .`.

Authenticate by registering a Withings application, setting its callback URL to `http://localhost:8585`, and running `withings-mcp auth`. The command opens a browser for authorization and saves the resulting tokens locally.

Run the `withings_sync` tool or execute `withings-mcp sync`. The first sync can retrieve a selected number of days, while subsequent syncs fetch only data newer than the last synchronization. Use `--types` to select categories from the command line.

Yes, partymola/withings-mcp works with Claude Code through its stdio transport. Register the executable with `claude mcp add -s user withings -- /path/to/withings-mcp`, then invoke synchronization and query tools through Claude Code.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWithings MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/partymola-withings-mcp?style=directory)](https://allmcps.com/mcp/partymola-withings-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/partymola-withings-mcp"><img src="https://allmcps.com/api/badge/partymola-withings-mcp?style=directory" alt="Withings MCP on AllMCPs" /></a>