Skip to main content
Glama

AI向けFitbit MCPコネクタ

フィットビットAPI CI カバレッジステータス ライセンス: MIT npmバージョン npmダウンロード

AIアシスタントをFitbitの健康データに接続

AIアシスタントにFitbitデータへのアクセスを許可することで、パーソナライズされた健康情報、トレンド分析、自動トラッキングが可能になります。Claude Desktopやその他のMCP対応AIツールと連携します。

何をするのか

🏃エクササイズとアクティビティ- 詳細なワークアウトログとアクティビティデータを取得
😴睡眠分析- 睡眠パターンと質の指標を取得します
⚖️体重追跡- 時間の経過に伴う体重の傾向にアクセス
❤️心拍数データ- 心拍数のパターンとゾーンを監視
🍎栄養ログ- 食事摂取量、カロリー、マクロを確認
👤プロフィール情報- Fitbit の基本的なプロフィール詳細にアクセスします

AI に「今週の睡眠パターンを見せて」や「トレーニング中の平均心拍数は?」などの質問をします。

Related MCP server: coros-mcp

クイックスタート

🚀 ツールをすぐにテストしてみませんか?

オプション1: npmからインストールする(推奨)

  1. Fitbit API 認証情報を取得する

    • OAuth 2.0 アプリケーションタイプ: Personalでアプリを作成する

    • コールバック URL を設定します: http://localhost:3000/callback

    • クライアントIDとクライアントシークレットをメモしてください

  2. パッケージをグローバルにインストールします。

npm install -g mcp-fitbit
  1. Claude 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

  1. Claude Desktop を再起動して、Fitbit データについて問い合わせてください。

オプション2: 開発セットアップ

  1. Fitbit API 認証情報を取得します(下記のインストールを参照)

  2. 次に以下を実行します:

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パッケージ)

  1. dev.fitbit.comでFitbit API 認証情報を取得します。

    • OAuth 2.0 アプリケーションタイプをPersonalに設定する

    • コールバック URLをhttp://localhost:3000/callbackに設定します。

  2. パッケージをインストールします。

    npm install -g mcp-fitbit
  3. パッケージ ディレクトリに.envファイルを作成します。

    mcp-fitbit初めて実行すると、 .envファイルを作成する場所が正確に示されます。次のような形式になります。

    C:\Users\YourName\AppData\Roaming\npm\node_modules\mcp-fitbit\.env
  4. .envファイルに資格情報を追加します。

    FITBIT_CLIENT_ID=your_client_id_here
    FITBIT_CLIENT_SECRET=your_client_secret_here
  5. サーバーを実行します。

    mcp-fitbit

開発者向け(ソースより)

  1. dev.fitbit.comでFitbit API 認証情報を取得します。

    • OAuth 2.0 アプリケーションタイプをPersonalに設定する

    • コールバック URLをhttp://localhost:3000/callbackに設定します。

  2. クローンとセットアップ:

    git clone https://github.com/TheDigitalNinja/mcp-fitbit
    cd mcp-fitbit
    npm install
  3. .envファイルを作成します:

    FITBIT_CLIENT_ID=your_client_id_here
    FITBIT_CLIENT_SECRET=your_client_secret_here
  4. サーバーを構築します。

    npm run build

利用可能なツール

道具

説明

パラメータ

get_weight

一定期間にわたる重量データ

period : 1d 、 7d 、 30d 、 3m 、 6m 、 1y

get_sleep_by_date_range

日付範囲の睡眠ログ(最大100日間)

startDate 、 endDate (YYYY-MM-DD)

get_exercises

日付以降のアクティビティ/運動ログ

afterDate (YYYY-MM-DD)、 limit (1~100)

get_daily_activity_summary

目標を含む毎日の活動概要

date (YYYY-MM-DD)

get_activity_goals

ユーザーのアクティビティ目標(日次/週次)

period : daily 、 weekly

get_activity_timeseries

アクティビティ時系列データ(最大30日間)

resourcePath 、 startDate 、 endDate (YYYY-MM-DD)

get_azm_timeseries

アクティブゾーン分数時系列(最大1095日)

startDate 、 endDate (YYYY-MM-DD)

get_heart_rate

一定期間の心拍数

period : 1d 、 7d 、 30d 、 1w 、 1m 、オプションのdate

get_heart_rate_by_date_range

日付範囲の心拍数(最大1年)

startDate 、 endDate (YYYY-MM-DD)

get_food_log

1日の栄養データ

date (YYYY-MM-DD または「今日」)

get_nutrition

個々の栄養素の経時変化

resource 、 period 、オプションのdate

get_nutrition_by_date_range

日付範囲ごとの個々の栄養素

resource 、 startDate 、 endDate

get_profile

ユーザープロフィール情報

なし

栄養源: 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.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

初回実行認証

AI アシスタントに Fitbit データを使用するよう初めて指示すると、次のようになります。

  1. サーバーはブラウザでhttp://localhost:3000/authを開きます。

  2. Fitbitにログインして権限を付与する

  3. 成功ページにリダイレクトされます

  4. 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 を参照してください。

Available Tools

13 tools
get_activity_goalsA

Get the raw JSON response for user's activity goals from Fitbit. Supports 'daily' and 'weekly' periods. Returns goal values for steps, distance, calories, floors, active minutes, and active zone minutes.

Inputs: period (required).

get_activity_timeseriesA

Get the raw JSON response for activity time series data from Fitbit over a date range (max 30 days). Supports various resource paths like 'steps', 'distance', 'calories', 'activityCalories', 'caloriesBMR'.

Inputs: resourcePath (required), startDate (required), endDate (required).

get_azm_timeseriesA

Get the raw JSON response for Active Zone Minutes (AZM) time series data from Fitbit over a date range (max 1095 days). Returns total AZM plus breakdown by fat burn, cardio, and peak zones.

Inputs: startDate (required), endDate (required).

get_daily_activity_summaryA

Get the raw JSON response for daily activity summary from Fitbit for a specific date. Includes goals, steps, calories, distances, and heart rate zones. Requires a 'date' parameter in YYYY-MM-DD format.

Inputs: date (required).

get_exercisesB

Get the raw JSON response for exercise and activity logs from Fitbit after a specific date. Requires 'afterDate' parameter in 'YYYY-MM-DD' format. Retrieves a detailed list of logged exercises and activities.

Inputs: afterDate (required), limit.

get_food_logA

Get comprehensive nutrition data (calories, protein, carbs, fat, fiber, sodium) from Fitbit food log for a specific date. Returns daily summary totals and individual food entries with nutritional values.

Inputs: date.

get_heart_rateA

Get the raw JSON response for heart rate data from Fitbit for a specified period ending today or on a specific date. Requires a 'period' parameter such as '1d', '7d', '30d', '1w', '1m' and optionally accepts 'date' parameter.

Inputs: period (required), date.

get_heart_rate_by_date_rangeA

Get the raw JSON response for heart rate data from Fitbit for a specific date range. Requires 'startDate' and 'endDate' parameters in 'YYYY-MM-DD' format. Note: The API enforces a maximum range of 1 year.

Inputs: startDate (required), endDate (required).

get_nutritionC

Get the raw JSON response for nutrition data from Fitbit for a specified resource and period ending today or on a specific date. Requires 'resource' parameter (caloriesIn, water) and 'period' parameter such as '1d', '7d', '30d', '1w', '1m', '3m', '6m', '1y' and optionally accepts 'date' parameter.

Inputs: resource (required), period (required), date.

get_nutrition_by_date_rangeA

Get the raw JSON response for nutrition data from Fitbit for a specific resource and date range. Requires 'resource' parameter (caloriesIn, water), 'startDate' and 'endDate' parameters in 'YYYY-MM-DD' format. Note: The API enforces a maximum range of 1,095 days.

Inputs: resource (required), startDate (required), endDate (required).

get_profileA

Get the raw JSON response for the user's Fitbit profile.

Inputs: no named parameters.

get_sleep_by_date_rangeA

Get the raw JSON response for sleep logs from Fitbit for a specific date range. Requires 'startDate' and 'endDate' parameters in 'YYYY-MM-DD' format. Note: The API enforces a maximum range of 100 days.

Inputs: startDate (required), endDate (required).

get_weightA

Get the raw JSON response for weight entries from Fitbit for a specified period ending today. Requires a 'period' parameter such as '1d', '7d', '30d', '3m', '6m', '1y'

Inputs: period (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools are clearly separated by data type (weight, sleep, heart rate, nutrition, activity), but get_food_log and get_nutrition overlap in nutrition data, and get_daily_activity_summary vs get_activity_timeseries could be confused for similar activity data.

    Naming Consistency4/5

    All tools follow a consistent get_<resource> pattern, with suffixes like _by_date_range and _timeseries for variants. Minor inconsistency: get_food_log vs get_nutrition use different resource names for overlapping data, and get_azm_timeseries uses an abbreviation.

    Tool Count5/5

    13 tools is well-scoped for a Fitbit data retrieval server, covering the major health data categories without excessive fragmentation.

    Completeness3/5

    The server covers read-only retrieval across major Fitbit domains (weight, sleep, heart rate, nutrition, activity, profile), but lacks write operations (logging food, activity, sleep) and some common resources like SpO2 or temperature. For a read-only data access server, the coverage is reasonable but not exhaustive.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      D
      quality
      D
      maintenance
      A 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.
      16
      10
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A 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.
      26
      126
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that gives Claude access to your WHOOP biometric data — recovery, sleep, strain, and workouts.
      32 npm
      MIT