Nitay Rabinovich/fitbit-mcp
Built by Metorial, the integration platform for agentic AI.
Nitay Rabinovich/fitbit-mcp
Server Summary
Retrieve activities
Access sleep logs
Analyze heart rate data
Count steps
Fetch body measurements
A Model Context Protocol (MCP) implementation for Fitbit, enabling AI assistants to access and analyze your Fitbit health and fitness data.
For JSON configuration (for use with AI assistant frameworks):
{
"command": "npx",
"args": ["-y", "fitbit-mcp", "--stdio"],
"env": {
"FITBIT_ACCESS_TOKEN": "YOUR_FITBIT_ACCESS_TOKEN"
}
}
Or with arguments instead of environment variables:
{
"command": "npx",
"args": ["-y", "fitbit-mcp", "--stdio", "--fitbit-token=YOUR_FITBIT_ACCESS_TOKEN"]
}
This MCP provides the following tools for AI assistants to access your Fitbit data:
Most tools accept optional parameters:
date
: Date in YYYY-MM-DD format (defaults to today)period
: Time period for data (1d, 7d, 30d, 1w, 1m)To get a Fitbit access token:
For detailed instructions on OAuth authentication, see the Fitbit API Documentation.
Contributions are welcome! Here's how you can contribute:
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)Every pull request triggers a GitHub Actions workflow that verifies the build process.
# Clone the repository
git clone https://github.com/your-username/fitbit-mcp.git
cd fitbit-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm run dev
To publish a new version to NPM:
package.json
v1.0.1
Make sure you have the NPM_TOKEN
secret configured in your GitHub repository settings.
This project is licensed under the MIT License - see the LICENSE file for details.