Skip to content
VS Code

fitbitmcp for VS Code

io.github.davidmosiah/fitbitmcp

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

client:VS Code transport:stdio runtime:npm

Install fitbitmcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "fitbit-client-id",
      "description": "FITBIT_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "fitbit-client-secret",
      "description": "FITBIT_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "fitbit-redirect-uri",
      "description": "FITBIT_REDIRECT_URI",
      "password": true
    },
    {
      "type": "promptString",
      "id": "fitbit-token-path",
      "description": "FITBIT_TOKEN_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "fitbit-privacy-mode",
      "description": "FITBIT_PRIVACY_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "fitbit-cache",
      "description": "FITBIT_CACHE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "fitbit-cache-path",
      "description": "FITBIT_CACHE_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "fitbit-no-cache",
      "description": "FITBIT_NO_CACHE",
      "password": true
    }
  ],
  "servers": {
    "fitbitmcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "fitbit-mcp-unofficial"
      ],
      "env": {
        "FITBIT_CLIENT_ID": "${input:fitbit-client-id}",
        "FITBIT_CLIENT_SECRET": "${input:fitbit-client-secret}",
        "FITBIT_REDIRECT_URI": "${input:fitbit-redirect-uri}",
        "FITBIT_TOKEN_PATH": "${input:fitbit-token-path}",
        "FITBIT_PRIVACY_MODE": "${input:fitbit-privacy-mode}",
        "FITBIT_CACHE": "${input:fitbit-cache}",
        "FITBIT_CACHE_PATH": "${input:fitbit-cache-path}",
        "FITBIT_NO_CACHE": "${input:fitbit-no-cache}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

fitbitmcp in other clients