The Fitbit MCP Server acts as a bridge between an LLM (like Claude) and the Fitbit API, enabling health and fitness data retrieval for the user.
Capabilities:
Retrieve Weight Data: Fetch weight data for specified periods (1d, 7d, 30d, 3m, 6m, 1y)
Retrieve Sleep Data: Access sleep logs for specific date ranges (max 100 days) using YYYY-MM-DD format
Retrieve Profile Information: Get user's Fitbit profile including personal details like name, age, gender, height, and weight
The server uses OAuth 2.0 for secure authentication and is designed to be extensible for adding more Fitbit API endpoints in the future.
Retrieves health and fitness data from a user's Fitbit account, including weight measurements, sleep logs, and user profile information. Currently supports endpoints for weight data by period, sleep data by date range, and profile details, with planned support for steps, heart rate, and activity data.
Fitbit MCP Connector for AI
Connect AI assistants to your Fitbit health data
Give your AI assistant access to your Fitbit data for personalized health insights, trend analysis, and automated tracking. Works with Claude Desktop and other MCP-compatible AI tools.
What it does
🏃 Exercise & Activities - Get detailed workout logs and activity data
😴 Sleep Analysis - Retrieve sleep patterns and quality metrics
⚖️ Weight Tracking - Access weight trends over time
❤️ Heart Rate Data - Monitor heart rate patterns and zones
🍎 Nutrition Logs - Review food intake, calories, and macros
👤 Profile Info - Access basic Fitbit profile details
Ask your AI things like: "Show me my sleep patterns this week" or "What's my average heart rate during workouts?"
Quick Start
🚀 Want to test the tools right away?
Option 1: Install from npm (Recommended)
Create an app with OAuth 2.0 Application Type:
Personal
Set Callback URL:
http://localhost:3000/callback
Note your Client ID and Client Secret
Install the package globally:
Add to your Claude Desktop config file:
Config file location:
Windows: %AppData%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop and ask about your Fitbit data!
Option 2: Development Setup
Get Fitbit API credentials (see Installation below)
Then run:
Both options open the MCP Inspector at http://localhost:5173
where you can test all tools interactively and handle the OAuth flow.
Installation
For End Users (npm package)
Get Fitbit API credentials at dev.fitbit.com
Set OAuth 2.0 Application Type to
Personal
Set Callback URL to
http://localhost:3000/callback
Install the package:
npm install -g mcp-fitbitCreate
When you run
mcp-fitbit
for the first time, it will tell you exactly where to create the.env
file. It will look something like:C:\Users\YourName\AppData\Roaming\npm\node_modules\mcp-fitbit\.envAdd your credentials to the
FITBIT_CLIENT_ID=your_client_id_here FITBIT_CLIENT_SECRET=your_client_secret_hereRun the server:
mcp-fitbit
For Developers (from source)
Get Fitbit API credentials at dev.fitbit.com
Set OAuth 2.0 Application Type to
Personal
Set Callback URL to
http://localhost:3000/callback
Clone and setup:
git clone https://github.com/TheDigitalNinja/mcp-fitbit cd mcp-fitbit npm installCreate
FITBIT_CLIENT_ID=your_client_id_here FITBIT_CLIENT_SECRET=your_client_secret_hereBuild the server:
npm run build
Available Tools
Tool | Description | Parameters |
| Weight data over time periods |
:
,
,
,
,
,
|
| Sleep logs for date range (max 100 days) |
,
(YYYY-MM-DD) |
| Activity/exercise logs after date |
(YYYY-MM-DD),
(1-100) |
| Daily activity summary with goals |
(YYYY-MM-DD) |
| User's activity goals (daily/weekly) |
:
,
|
| Activity time series data (max 30 days) |
,
,
(YYYY-MM-DD) |
| Active Zone Minutes time series (max 1095 days) |
,
(YYYY-MM-DD) |
| Heart rate for time period |
:
,
,
,
,
, optional
|
| Heart rate for date range (max 1 year) |
,
(YYYY-MM-DD) |
| Complete nutrition data for a day |
(YYYY-MM-DD or "today") |
| Individual nutrient over time |
,
, optional
|
| Individual nutrient for date range |
,
,
|
| User profile information | None |
Nutrition resources: caloriesIn
, water
, protein
, carbs
, fat
, fiber
, sodium
Activity time series resources: steps
, distance
, calories
, activityCalories
, caloriesBMR
, tracker/activityCalories
, tracker/calories
, tracker/distance
Claude Desktop
Using npm package (recommended):
Add to claude_desktop_config.json
:
Using local development version:
Add to claude_desktop_config.json
:
Config file locations:
Windows:
%AppData%\Claude\claude_desktop_config.json
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Linux:
~/.config/Claude/claude_desktop_config.json
First Run Authorization
When you first ask your AI assistant to use Fitbit data:
The server opens your browser to
http://localhost:3000/auth
Log in to Fitbit and grant permissions
You'll be redirected to a success page
Your AI can now access your Fitbit data!
Development
Architecture: See TASKS.md for improvement opportunities and technical details.
local-only server
The server can only run on the client's local machine because it depends on local resources.
A Model Context Protocol server that bridges LLMs (like Claude) with the Fitbit API, allowing the LLM to request and retrieve user health and fitness data through defined tools.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that allows Claude to interact with Linear's API for managing teams, issues, projects, and cycles.Last updated -102MIT License
- -securityAlicense-qualityA 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 -MIT License
- -securityAlicense-qualityA 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 -417185MIT License
- AsecurityAlicenseAqualityA 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 -7292MIT License