G

Google Health MCP

by davidmosiah · io.github.davidmosiah/google-health-mcp

A local-first MCP server that enables AI agents to read user-authorized Google Health API v4 data from Fitbit, Pixel Watch, and partners via OAuth, with tokens never leaving the machine.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-davidmosiah-google-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-health-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_HEALTH_CLIENT_ID": "<VALUE>",
        "GOOGLE_HEALTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_HEALTH_REDIRECT_URI": "<VALUE>",
        "GOOGLE_HEALTH_TOKEN_PATH": "<VALUE>",
        "GOOGLE_HEALTH_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE_PATH": "<VALUE>",
        "GOOGLE_HEALTH_NO_CACHE": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-davidmosiah-google-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-health-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_HEALTH_CLIENT_ID": "<VALUE>",
        "GOOGLE_HEALTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_HEALTH_REDIRECT_URI": "<VALUE>",
        "GOOGLE_HEALTH_TOKEN_PATH": "<VALUE>",
        "GOOGLE_HEALTH_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE_PATH": "<VALUE>",
        "GOOGLE_HEALTH_NO_CACHE": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-davidmosiah-google-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-health-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_HEALTH_CLIENT_ID": "<VALUE>",
        "GOOGLE_HEALTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_HEALTH_REDIRECT_URI": "<VALUE>",
        "GOOGLE_HEALTH_TOKEN_PATH": "<VALUE>",
        "GOOGLE_HEALTH_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE_PATH": "<VALUE>",
        "GOOGLE_HEALTH_NO_CACHE": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-davidmosiah-google-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-health-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_HEALTH_CLIENT_ID": "<VALUE>",
        "GOOGLE_HEALTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_HEALTH_REDIRECT_URI": "<VALUE>",
        "GOOGLE_HEALTH_TOKEN_PATH": "<VALUE>",
        "GOOGLE_HEALTH_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE_PATH": "<VALUE>",
        "GOOGLE_HEALTH_NO_CACHE": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-davidmosiah-google-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-health-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_HEALTH_CLIENT_ID": "<VALUE>",
        "GOOGLE_HEALTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_HEALTH_REDIRECT_URI": "<VALUE>",
        "GOOGLE_HEALTH_TOKEN_PATH": "<VALUE>",
        "GOOGLE_HEALTH_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE_PATH": "<VALUE>",
        "GOOGLE_HEALTH_NO_CACHE": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-davidmosiah-google-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-health-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_HEALTH_CLIENT_ID": "<VALUE>",
        "GOOGLE_HEALTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_HEALTH_REDIRECT_URI": "<VALUE>",
        "GOOGLE_HEALTH_TOKEN_PATH": "<VALUE>",
        "GOOGLE_HEALTH_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE": "<VALUE>",
        "GOOGLE_HEALTH_CACHE_PATH": "<VALUE>",
        "GOOGLE_HEALTH_NO_CACHE": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
GOOGLE_HEALTH_CLIENT_ID No Google Cloud OAuth client ID for Google Health API. Optional when configured with google-health-mcp-server setup.
GOOGLE_HEALTH_CLIENT_SECRET secret No Google Cloud OAuth client secret. Prefer google-health-mcp-server setup so this secret is stored in ~/.google-health-mcp/config.json instead of MCP client config.
GOOGLE_HEALTH_REDIRECT_URI No Redirect URI configured in the Google Cloud OAuth client. Optional when configured with google-health-mcp-server setup.
GOOGLE_HEALTH_TOKEN_PATH No Optional local path for OAuth tokens. Defaults to ~/.google-health-mcp/tokens.json.
GOOGLE_HEALTH_PRIVACY_MODE No Optional payload mode: summary, structured, or raw. Defaults to structured. raw means full Google Health API payloads, not continuous 24/7 raw sensor telemetry.
GOOGLE_HEALTH_CACHE No Optional SQLite cache toggle. Set to true or sqlite to enable.
GOOGLE_HEALTH_CACHE_PATH No Optional local SQLite cache path. Defaults to ~/.google-health-mcp/cache.sqlite.
GOOGLE_HEALTH_NO_CACHE No 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.

Similar servers