Skip to main content
Glama

Fitbit MCP Server

AI向けFitbit MCPコネクタ

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. パッケージ ディレクトリに.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.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一定期間にわたる重量データperiod1d7d30d3m6m1y
get_sleep_by_date_range日付範囲の睡眠ログ(最大100日間)startDateendDate (YYYY-MM-DD)
get_exercises日付以降のアクティビティ/運動ログafterDate (YYYY-MM-DD)、 limit (1~100)
get_daily_activity_summary目標を含む毎日の活動概要date (YYYY-MM-DD)
get_activity_goalsユーザーのアクティビティ目標(日次/週次)period : dailyweekly
get_activity_timeseriesアクティビティ時系列データ(最大30日間)resourcePathstartDateendDate (YYYY-MM-DD)
get_azm_timeseriesアクティブゾーン分数時系列(最大1095日)startDateendDate (YYYY-MM-DD)
get_heart_rate一定期間の心拍数period : 1d7d30d1w1m 、オプションのdate
get_heart_rate_by_date_range日付範囲の心拍数(最大1年)startDateendDate (YYYY-MM-DD)
get_food_log1日の栄養データdate (YYYY-MM-DD または「今日」)
get_nutrition個々の栄養素の経時変化resourceperiod 、オプションのdate
get_nutrition_by_date_range日付範囲ごとの個々の栄養素resourcestartDateendDate
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 を参照してください。

Install Server
A
security – no known vulnerabilities
A
license - permissive license
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
        F
        license
        -
        quality
        A Model Context Protocol server for tracking personal health and well-being, offering tools for workout logging, nutrition management, and daily journaling with AI-assisted analysis integration.
        Last updated -
        8
        Python
      • -
        security
        A
        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 -
        28
        2
        TypeScript
        MIT License
      • -
        security
        A
        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.
        Last updated -
        JavaScript
        MIT License
        • Apple
      • -
        security
        A
        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 -
        606
        134
        TypeScript
        MIT License
        • Linux
        • Apple

      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