Polar Health Data (self-hosted) for VS Code
io.github.stumason/polar-flow-server
Self-hosted Polar health analytics with a built-in MCP server: sleep, HRV, workouts, baselines.
client:VS Code
transport:stdio
runtime:oci
Install Polar Health Data (self-hosted) in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "database-url",
"description": "DATABASE_URL",
"password": true
},
{
"type": "promptString",
"id": "polar-client-id",
"description": "POLAR_CLIENT_ID",
"password": true
},
{
"type": "promptString",
"id": "polar-client-secret",
"description": "POLAR_CLIENT_SECRET",
"password": true
},
{
"type": "promptString",
"id": "base-url",
"description": "BASE_URL",
"password": true
}
],
"servers": {
"polar-flow-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/stumason/polar-flow-server:1.5.1"
],
"env": {
"DATABASE_URL": "${input:database-url}",
"POLAR_CLIENT_ID": "${input:polar-client-id}",
"POLAR_CLIENT_SECRET": "${input:polar-client-secret}",
"BASE_URL": "${input:base-url}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs