Fitbit MCP Server
AI向けFitbit MCPコネクタ
AIアシスタントをFitbitの健康データに接続
AIアシスタントにFitbitデータへのアクセスを許可することで、パーソナライズされた健康情報、トレンド分析、自動トラッキングが可能になります。Claude Desktopやその他のMCP対応AIツールと連携します。
何をするのか
🏃エクササイズとアクティビティ- 詳細なワークアウトログとアクティビティデータを取得
😴睡眠分析- 睡眠パターンと質の指標を取得します
⚖️体重追跡- 時間の経過に伴う体重の傾向にアクセス
❤️心拍数データ- 心拍数のパターンとゾーンを監視
🍎栄養ログ- 食事摂取量、カロリー、マクロを確認
👤プロフィール情報- Fitbit の基本的なプロフィール詳細にアクセスします
AI に「今週の睡眠パターンを見せて」や「トレーニング中の平均心拍数は?」などの質問をします。
Related MCP server: coros-mcp
クイックスタート
🚀 ツールをすぐにテストしてみませんか?
オプション1: npmからインストールする(推奨)
OAuth 2.0 アプリケーションタイプ:
Personalでアプリを作成するコールバック URL を設定します:
http://localhost:3000/callbackクライアントIDとクライアントシークレットをメモしてください
パッケージをグローバルにインストールします。
npm install -g mcp-fitbitClaude Desktop 構成ファイルに以下を追加します:
{
"mcpServers": {
"fitbit": {
"command": "mcp-fitbit",
"args": [],
"env": {
"FITBIT_CLIENT_ID": "your_client_id_here",
"FITBIT_CLIENT_SECRET": "your_client_secret_here"
}
}
}
}設定ファイルの場所:
Windows: %AppData%\Claude\claude_desktop_config.json
macOS: ~/ライブラリ/アプリケーションサポート/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Claude Desktop を再起動して、Fitbit データについて問い合わせてください。
オプション2: 開発セットアップ
Fitbit API 認証情報を取得します(下記のインストールを参照)
次に以下を実行します:
git clone https://github.com/TheDigitalNinja/mcp-fitbit
cd mcp-fitbit
npm install
# Create .env with your Fitbit credentials
npm run devどちらのオプションでもhttp://localhost:5173でMCP インスペクターが開き、すべてのツールを対話型でテストし、OAuth フローを処理できます。
インストール
エンドユーザー向け(npmパッケージ)
dev.fitbit.comでFitbit API 認証情報を取得します。
OAuth 2.0 アプリケーションタイプを
Personalに設定するコールバック URLを
http://localhost:3000/callbackに設定します。
パッケージをインストールします。
npm install -g mcp-fitbitパッケージ ディレクトリに
.envファイルを作成します。mcp-fitbit初めて実行すると、.envファイルを作成する場所が正確に示されます。次のような形式になります。C:\Users\YourName\AppData\Roaming\npm\node_modules\mcp-fitbit\.env.envファイルに資格情報を追加します。FITBIT_CLIENT_ID=your_client_id_here FITBIT_CLIENT_SECRET=your_client_secret_hereサーバーを実行します。
mcp-fitbit
開発者向け(ソースより)
dev.fitbit.comでFitbit API 認証情報を取得します。
OAuth 2.0 アプリケーションタイプを
Personalに設定するコールバック URLを
http://localhost:3000/callbackに設定します。
クローンとセットアップ:
git clone https://github.com/TheDigitalNinja/mcp-fitbit cd mcp-fitbit npm install.envファイルを作成します:FITBIT_CLIENT_ID=your_client_id_here FITBIT_CLIENT_SECRET=your_client_secret_hereサーバーを構築します。
npm run build
利用可能なツール
道具 | 説明 | パラメータ |
| 一定期間にわたる重量データ |
|
| 日付範囲の睡眠ログ(最大100日間) |
|
| 日付以降のアクティビティ/運動ログ |
|
| 目標を含む毎日の活動概要 |
|
| ユーザーのアクティビティ目標(日次/週次) |
|
| アクティビティ時系列データ(最大30日間) |
|
| アクティブゾーン分数時系列(最大1095日) |
|
| 一定期間の心拍数 |
|
| 日付範囲の心拍数(最大1年) |
|
| 1日の栄養データ |
|
| 個々の栄養素の経時変化 |
|
| 日付範囲ごとの個々の栄養素 |
|
| ユーザープロフィール情報 | なし |
栄養源: caloriesIn 、 water 、 protein 、 carbs 、 fat 、 fiber 、 sodium
アクティビティ時系列リソース: steps 、 distance 、 calories 、 activityCalories 、 caloriesBMR 、 tracker/activityCalories 、 tracker/calories 、 tracker/distance
クロードデスクトップ
npm パッケージの使用 (推奨):
claude_desktop_config.jsonに追加:
{
"mcpServers": {
"fitbit": {
"command": "mcp-fitbit",
"args": []
}
}
}ローカル開発バージョンの使用:
claude_desktop_config.jsonに追加:
{
"mcpServers": {
"fitbit": {
"command": "node",
"args": ["C:\\path\\to\\mcp-fitbit\\build\\index.js"]
}
}
}設定ファイルの場所:
Windows:
%AppData%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
初回実行認証
AI アシスタントに Fitbit データを使用するよう初めて指示すると、次のようになります。
サーバーはブラウザで
http://localhost:3000/authを開きます。Fitbitにログインして権限を付与する
成功ページにリダイレクトされます
AIがFitbitデータにアクセスできるようになりました。
発達
npm run lint # Check code quality
npm run format # Fix formatting
npm run build # Compile TypeScript
npm run dev # Run with MCP inspector**アーキテクチャ:**改善の機会と技術的な詳細については、 TASKS.md を参照してください。
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
- AlicenseDqualityFmaintenanceA Model Context Protocol (MCP) implementation for Fitbit, enabling AI assistants to access and analyze your Fitbit health and fitness data. Disclaimer: This is an unofficial integration built using Fitbit's public API and is not affiliated with or endorsed by Fitbit Inc.161410MIT
- AlicenseAqualityAmaintenanceA Model Context Protocol (MCP) server that fetches sleep, HRV, and training data from the unofficial Coros API and exposes them to AI assistants like Claude, enabling natural language queries about fitness metrics and workout management.26111MIT
- AlicenseAqualityAmaintenanceLocal-first MCP server that connects AI agents to your Fitbit activity, sleep, heart-rate, HRV, SpO2 and weight data.331631MIT
- AlicenseNot gradedqualityBmaintenanceA Model Context Protocol (MCP) server that gives Claude access to your WHOOP biometric data — recovery, sleep, strain, and workouts.42MIT
Related MCP Connectors
MCP server for Withings health data — sleep, activity, heart, and body metrics.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Appeared in Searches
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/TheDigitalNinja/mcp-fitbit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server