Skip to main content
Glama

Разъем Fitbit MCP для ИИ

API-интерфейс Fitbit КИ Статус покрытия Лицензия: Массачусетский технологический институт npm-версия npm-загрузки

Подключите помощников с искусственным интеллектом к данным о состоянии здоровья Fitbit

Предоставьте вашему помощнику с искусственным интеллектом доступ к данным Fitbit для персонализированной информации о состоянии здоровья, анализа тенденций и автоматического отслеживания. Работает с Claude Desktop и другими совместимыми с MCP инструментами искусственного интеллекта.

Что он делает

🏃 Упражнения и активность — получайте подробные журналы тренировок и данные об активности
😴 Анализ сна — получение данных о режимах сна и показателях качества
⚖️ Отслеживание веса — отслеживайте тенденции веса с течением времени
❤️ Данные о частоте сердечных сокращений — отслеживайте модели и зоны частоты сердечных сокращений
🍎 Журналы питания — просматривайте потребление пищи, калории и макросы
👤 Информация о профиле — доступ к основным данным профиля Fitbit

Задайте своему ИИ такие вопросы, как: «Покажи мне мой режим сна на этой неделе» или «Какой у меня средний пульс во время тренировок?»

Related MCP server: coros-mcp

Быстрый старт

🚀 Хотите протестировать инструменты прямо сейчас?

Вариант 1: Установка из npm (рекомендуется)

  1. Получить учетные данные API Fitbit

    • Создайте приложение с OAuth 2.0 Тип приложения: Personal

    • Установить URL обратного вызова: http://localhost:3000/callback

    • Запишите свой идентификатор клиента и секретный код клиента.

  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: ~/Library/Application Support/Claude/claude_desktop_config.json

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

  1. Перезапустите Claude Desktop и спросите о своих данных Fitbit!

Вариант 2: Настройка разработки

  1. Получите учетные данные API Fitbit (см. раздел «Установка» ниже)

  2. Затем выполните:

git clone https://github.com/TheDigitalNinja/mcp-fitbit
cd mcp-fitbit
npm install
# Create .env with your Fitbit credentials
npm run dev

Оба варианта открывают MCP Inspector по адресу http://localhost:5173 где вы можете интерактивно протестировать все инструменты и управлять потоком OAuth.

Установка

Для конечных пользователей (пакет npm)

  1. Получите учетные данные API Fitbit на dev.fitbit.com

    • Установите тип приложения 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. Получите учетные данные API Fitbit на dev.fitbit.com

    • Установите тип приложения 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 (ГГГГ-ММ-ДД)

get_exercises

Журналы активности/упражнений после даты

afterDate (ГГГГ-ММ-ДД), limit (1-100)

get_daily_activity_summary

Ежедневная сводка активности с целями

date (ГГГГ-ММ-ДД)

get_activity_goals

Цели активности пользователя (ежедневные/еженедельные)

period : daily , weekly

get_activity_timeseries

Данные временного ряда активности (макс. 30 дней)

resourcePath , startDate , endDate (ГГГГ-ММ-ДД)

get_azm_timeseries

Временной ряд минут активной зоны (макс. 1095 дней)

startDate , endDate (ГГГГ-ММ-ДД)

get_heart_rate

Частота сердечных сокращений за период времени

period : 1d , 7d , 30d , 1w , 1m , необязательная date

get_heart_rate_by_date_range

Частота сердечных сокращений за диапазон дат (макс. 1 год)

startDate , endDate (ГГГГ-ММ-ДД)

get_food_log

Полные данные о питании на день

date (ГГГГ-ММ-ДД или «сегодня»)

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

Разрешение на первый запуск

Когда вы впервые просите своего помощника на базе искусственного интеллекта использовать данные Fitbit:

  1. Сервер открывает ваш браузер по адресу http://localhost:3000/auth

  2. Войдите в Fitbit и предоставьте разрешения

  3. Вы будете перенаправлены на страницу успешного завершения.

  4. Теперь ваш ИИ может получить доступ к данным 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