withings-mcp
withings-mcp
OAuth、ローカルSQLiteキャッシュ、トレンド分析機能を備えたWithings Health API用MCPサーバーです。
他のWithings MCPサーバーとの違い:
高速なオフラインクエリと過去のトレンド分析のためのローカルSQLiteキャッシュ
増分同期 - 前回の同期以降の新しいデータのみを取得
200種類以上のすべてのWithings測定タイプをサポート(体組成、睡眠、アクティビティ、ワークアウト、ECG)
自動OAuthトークン更新(アクセストークン: 3時間、リフレッシュトークン: 1年)
mcp以外の依存関係なし(HTTPは標準ライブラリを使用)Python 3.13+対応
ツール
ツール | 説明 |
| Withings APIからローカルキャッシュへデータを同期 |
| 体組成(体重、体脂肪率、筋肉量、骨量、血圧、SpO2) |
| 睡眠サマリーまたは詳細なフェーズ時系列データ |
| 毎日の歩数、距離、消費カロリー、アクティブ時間 |
| ワークアウトセッション(タイプ、期間、心拍数) |
| ECG記録およびAFib(心房細動)検出 |
| バッテリー状態を含む接続済みデバイス |
| 期間平均、週次/月次/四半期ごとのトレンド、比較 |
Related MCP server: Withings MCP Server
前提条件
Python 3.13+
uv(推奨)または pip
Withings開発者アカウントおよび登録済みアプリケーション
インストール
git clone https://github.com/partymola/withings-mcp.git
cd withings-mcp
uv venv --python 3.13 .venv
uv pip install -e .セットアップ
1. Withingsアプリの登録
新しいアプリケーションを作成
コールバックURLを
http://localhost:8585に設定クライアントIDとクライアントシークレットを控える
2. 認証
.venv/bin/withings-mcp authこれによりブラウザが開き、Withingsの認証が行われます。承認後、トークンはローカルの config/ ディレクトリに保存されます。
3. Claude Codeへの登録
claude mcp add -s user withings -- /path/to/withings-mcp/.venv/bin/withings-mcp4. 初回同期
Claude Codeで「Sync my Withings data」と入力してください。
これにより withings_sync が実行され、ローカルキャッシュが作成されます。以降の同期では新しいデータのみが取得されます。
設定
環境変数 | デフォルト | 説明 |
|
| 認証情報とトークン用のディレクトリ |
|
| SQLiteデータベースのパス |
プロンプト例
「Sync my Withings data」(Withingsデータを同期して)
「Show my weight for the last 3 months」(過去3ヶ月の体重を表示して)
「How has my sleep changed this year?」(今年の睡眠はどう変化した?)
「Compare my body composition this month vs last month」(今月と先月の体組成を比較して)
「What workouts did I do in March?」(3月にはどんなワークアウトをした?)
「What Withings devices do I have connected?」(接続されているWithingsデバイスは何?)
「Show my sleep trends quarterly」(四半期ごとの睡眠トレンドを表示して)
開発
# Install with dev dependencies
uv pip install -e . && uv pip install pytest
# Run tests (74 tests, all use in-memory SQLite with fictional data)
.venv/bin/python -m pytest tests/ -vセキュリティ
読み取り専用: Withingsサーバー上のデータを変更するツールはありません
ローカルストレージ: 健康データはローカルのSQLiteデータベース内にのみ保持されます
トークンストレージ: OAuthトークンは
config/に保存されます(gitignored、ファイル権限は0600)エラーメッセージ: 健康データの値は含まれず、ステータスコードのみが表示されます
プリコミットフック: データベースファイルや認証情報がコミットされるのを防ぎます
コントリビューション
開発環境のセットアップ、テストワークフロー、プリコミットフックについては CONTRIBUTING.md を参照してください。変更履歴は CHANGELOG.md で管理されています。
ライセンス
GPL-3.0-or-later
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables retrieval of health data from Withings smart scales including weight measurements and comprehensive body composition metrics like fat mass, muscle mass, and hydration levels. Supports multiple users, unit preferences, and OAuth authentication for secure access to personal health data.2
- AlicenseAqualityBmaintenanceEnables access to Withings Health API data including body measurements, activity tracking, sleep analysis, workouts, and heart rate monitoring through OAuth2 authentication.81MIT
- AlicenseCqualityDmaintenanceProvides access to body composition data from Renpho smart scales, enabling users to query weight, BMI, body fat percentage, muscle mass, and other health metrics with trend analysis over customizable time periods.3264MIT
- Alicense-qualityCmaintenanceRead-only Model Context Protocol server for Withings weight and body-composition history, providing normalized measurements, weight history, and latest measurements via OAuth 2.0.MIT
Related MCP Connectors
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Connect your Oura Ring account securely in minutes. Enable authorized access to your sleep, activi…
Glucose readings from your LibreLink Up sensor: graph, logbook, stats and summaries (read-only). Sec
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/partymola/withings-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server