fitbitmcp

v0.4.5
io.github.davidmosiah/fitbitmcp Checked 51 minutes ago Published 6 months ago

Privacy-first, unofficial Fitbit MCP server for AI health, sleep, activity and heart-rate agents.

Values you need

VariableWhat it is
FITBIT_CLIENT_IDoptional Fitbit OAuth client ID. Optional when configured with fitbit-mcp-server setup.
FITBIT_CLIENT_SECREToptional secret Fitbit OAuth client secret. Prefer fitbit-mcp-server setup so this secret is stored in ~/.fitbit-mcp/config.json instead of MCP client config.
FITBIT_REDIRECT_URIoptional Redirect URI configured in the Fitbit Developer Dashboard. Optional when configured with fitbit-mcp-server setup.
FITBIT_TOKEN_PATHoptional Optional local path for OAuth tokens. Defaults to ~/.fitbit-mcp/tokens.json.
FITBIT_PRIVACY_MODEoptional Optional payload mode: summary, structured, or raw. Defaults to structured. raw means full Fitbit API payloads, not continuous 24/7 raw sensor telemetry.
FITBIT_CACHEoptional Optional SQLite cache toggle. Set to true or sqlite to enable.
FITBIT_CACHE_PATHoptional Optional local SQLite cache path. Defaults to ~/.fitbit-mcp/cache.sqlite.
FITBIT_NO_CACHEoptional Set to true to bypass the in-memory HTTP response cache (60s TTL for GET only). POST/PUT/DELETE and 4xx/5xx responses are never cached regardless.

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add fitbitmcp -- npx -y fitbit-mcp-unofficial@0.4.5
Add to claude_desktop_config.json
{
  "mcpServers": {
    "fitbitmcp": {
      "args": [
        "-y",
        "fitbit-mcp-unofficial@0.4.5"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "fitbitmcp": {
      "args": [
        "-y",
        "fitbit-mcp-unofficial@0.4.5"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "fitbitmcp": {
      "args": [
        "-y",
        "fitbit-mcp-unofficial@0.4.5"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.fitbitmcp]
command = "npx"
args = ["-y", "fitbit-mcp-unofficial@0.4.5"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: fitbit_data_inventory, fitbit_agent_manifest, fitbit_capabilities, fitbit_quickstart, fitbit_demo, fitbit_get_auth_url, fitbit_exchange_code, fitbit_get_profile, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json