polarmcp for VS Code
io.github.davidmosiah/polarmcp
Privacy-first unofficial Polar AccessLink v4 MCP server for AI health, sleep and training agents.
client:VS Code
transport:stdio
runtime:npm
Install polarmcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"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": "polar-redirect-uri",
"description": "POLAR_REDIRECT_URI",
"password": true
},
{
"type": "promptString",
"id": "polar-token-path",
"description": "POLAR_TOKEN_PATH",
"password": true
},
{
"type": "promptString",
"id": "polar-privacy-mode",
"description": "POLAR_PRIVACY_MODE",
"password": true
},
{
"type": "promptString",
"id": "polar-cache",
"description": "POLAR_CACHE",
"password": true
},
{
"type": "promptString",
"id": "polar-cache-path",
"description": "POLAR_CACHE_PATH",
"password": true
},
{
"type": "promptString",
"id": "polar-no-cache",
"description": "POLAR_NO_CACHE",
"password": true
}
],
"servers": {
"polarmcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"polar-mcp-unofficial"
],
"env": {
"POLAR_CLIENT_ID": "${input:polar-client-id}",
"POLAR_CLIENT_SECRET": "${input:polar-client-secret}",
"POLAR_REDIRECT_URI": "${input:polar-redirect-uri}",
"POLAR_TOKEN_PATH": "${input:polar-token-path}",
"POLAR_PRIVACY_MODE": "${input:polar-privacy-mode}",
"POLAR_CACHE": "${input:polar-cache}",
"POLAR_CACHE_PATH": "${input:polar-cache-path}",
"POLAR_NO_CACHE": "${input:polar-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