Skip to main content
Glama

Fitbit MCP Server

AI向けFitbit MCPコネクタ

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

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

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

何をするのか

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

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

クイックスタート

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

オプション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:5173MCP インスペクターが開き、すべてのツールを対話型でテストし、OAuth フローを処理できます。

インストール

エンドユーザー向け(npmパッケージ)

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

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

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

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

    npm install -g mcp-fitbit
  3. パッケージ ディレクトリに

    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.comFitbit API 認証情報を取得します。

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

    • コールバック URLhttp://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

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

なし

栄養源: caloriesInwaterproteincarbsfatfibersodium

アクティビティ時系列リソース: stepsdistancecaloriesactivityCaloriescaloriesBMRtracker/activityCaloriestracker/caloriestracker/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 を参照してください。

Deploy Server
A
security – no known vulnerabilities
-
license - not tested
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

LLM (Claude など) と Fitbit API を橋渡しするモデル コンテキスト プロトコル サーバー。これにより、LLM は定義されたツールを通じてユーザーの健康とフィットネスのデータを要求および取得できるようになります。

  1. 何をするのか
    1. クイックスタート
      1. オプション1: npmからインストールする(推奨)
      2. オプション2: 開発セットアップ
    2. インストール
      1. エンドユーザー向け(npmパッケージ)
      2. 開発者向け(ソースより)
    3. 利用可能なツール
      1. クロードデスクトップ
      2. 初回実行認証
    4. 発達

      Related MCP Servers

      • -
        security
        -
        license
        -
        quality
        A Model Context Protocol server that allows Claude to interact with Linear's API for managing teams, issues, projects, and cycles.
        Last updated -
        1,454
        2
        MIT License
      • -
        security
        -
        license
        -
        quality
        A Model Context Protocol server that enables Claude to interact with the ConnectWise Manage API to perform operations like retrieving, creating, updating, and deleting tickets, companies, contacts, and other entities.
      • -
        security
        -
        license
        -
        quality
        A Model Context Protocol server that enables LLMs like Claude to interact with SQLite and SQL Server databases, allowing for schema inspection and SQL query execution.
        Last updated -
        3,221
        204
        MIT License
        • Linux
        • Apple
      • A
        security
        -
        license
        A
        quality
        A Model Context Protocol server that provides unified access to multiple LLM APIs including ChatGPT, Claude, and DeepSeek, allowing users to call different LLMs from MCP-compatible clients and combine their responses.
        Last updated -
        7
        16
        8
        MIT License

      View all related MCP servers

      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