Privacy-first, unofficial Fitbit MCP server for AI health, sleep, activity and heart-rate agents.
Privacy-first, unofficial Fitbit MCP server for AI health, sleep, activity and heart-rate agents.
This is a well-structured Fitbit OAuth MCP server with proper authentication via OAuth 2.0, secure local token storage, and appropriate permissions scoping. The code demonstrates good security practices including input validation with Zod schemas, no hardcoded credentials, and privacy-aware data handling. Minor code quality issues and broad exception handling do not significantly impact the security posture. Supply chain analysis found 3 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.
5 files analyzed · 8 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: FITBIT_CLIENT_ID
Environment variable: FITBIT_CLIENT_SECRET
Environment variable: FITBIT_REDIRECT_URI
Environment variable: FITBIT_TOKEN_PATH
Environment variable: FITBIT_PRIVACY_MODE
Environment variable: FITBIT_CACHE
Environment variable: FITBIT_CACHE_PATH
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-davidmosiah-fitbitmcp": {
"env": {
"FITBIT_CACHE": "your-fitbit-cache-here",
"FITBIT_CLIENT_ID": "your-fitbit-client-id-here",
"FITBIT_CACHE_PATH": "your-fitbit-cache-path-here",
"FITBIT_TOKEN_PATH": "your-fitbit-token-path-here",
"FITBIT_PRIVACY_MODE": "your-fitbit-privacy-mode-here",
"FITBIT_REDIRECT_URI": "your-fitbit-redirect-uri-here",
"FITBIT_CLIENT_SECRET": "your-fitbit-client-secret-here"
},
"args": [
"-y",
"fitbit-mcp-unofficial"
],
"command": "npx"
}
}
}From the project's GitHub README.
Unofficial, local-first Model Context Protocol server for connecting AI agents to user-authorized Fitbit data through the official Fitbit Web API.
It is designed for Claude, Cursor, Windsurf, Hermes, OpenClaw and other MCP clients that need safe access to activity, sleep, heart-rate, HRV, weight and nutrition context.
Not affiliated with, endorsed by, or sponsored by Fitbit or Google. Not medical advice.
summary, structured, raw.Create a Fitbit app at dev.fitbit.com/apps and set the callback URL to:
http://127.0.0.1:3000/callback
Recommended read scopes:
activity heartrate profile settings sleep weight nutrition
Then run:
npx -y fitbit-mcp-unofficial setup
npx -y fitbit-mcp-unofficial auth
npx -y fitbit-mcp-unofficial doctor
Start the MCP server:
npx -y fitbit-mcp-unofficial
{
"mcpServers": {
"fitbit": {
"command": "npx",
"args": ["-y", "fitbit-mcp-unofficial"]
}
}
}
npx -y fitbit-mcp-unofficial setup --client hermes --no-auth
npx -y fitbit-mcp-unofficial doctor --client hermes
After config changes, reload MCP with /reload-mcp or hermes mcp test fitbit. A normal Fitbit data-access issue should not require restarting the Hermes gateway.
Core setup and safety:
fitbit_agent_manifestfitbit_capabilitiesfitbit_connection_statusfitbit_get_auth_urlfitbit_exchange_codefitbit_privacy_auditfitbit_cache_statusfitbit_revoke_accessData tools:
fitbit_get_profilefitbit_list_devicesfitbit_get_activity_dayfitbit_list_activitiesfitbit_get_activityfitbit_get_sleep_dayfitbit_list_sleepfitbit_get_heart_dayfitbit_get_heart_intradayfitbit_get_hrv_dayfitbit_get_spo2_dayfitbit_get_breathing_rate_dayfitbit_get_weight_dayfitbit_get_food_dayfitbit_get_water_dayWorkflow tools:
fitbit_daily_summaryfitbit_weekly_summaryTokens are stored locally under ~/.fitbit-mcp/ with user-only permissions. The server never prints access tokens or refresh tokens.
Privacy modes:
summary: minimal fields for safe agent use.structured: normalized Fitbit data for analysis.raw: upstream Fitbit JSON, only when explicitly requested.Health data is sensitive. Do not paste raw payloads publicly. This MCP is for personal context and training/wellness reflection, not diagnosis or treatment.
npm install
npm test
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by Taylorwilsdon · Productivity
Control Gmail, Calendar, Docs, Sheets, Drive, and more from your AI