Skip to content
VS Code

health4ai for VS Code

io.github.jefflitt1/health4ai

Query your Apple Health data from your own Supabase/Postgres via local MCP.

client:VS Code transport:stdio runtime:pypi

Install health4ai in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "database-url",
      "description": "DATABASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "healthkit-user-id",
      "description": "HEALTHKIT_USER_ID",
      "password": true
    }
  ],
  "servers": {
    "health4ai": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "health4ai"
      ],
      "env": {
        "DATABASE_URL": "${input:database-url}",
        "HEALTHKIT_USER_ID": "${input:healthkit-user-id}"
      }
    }
  }
}

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

health4ai in other clients