Polar Health Data (self-hosted)

v1.6.3
io.github.StuMason/polar-flow-server Checked 3 hours ago Published 18 days ago

Self-hosted Polar health analytics with a built-in MCP server: sleep, HRV, workouts, baselines.

Not smoke-tested: package runs a local HTTP server (not smoke-tested yet).

Values you need

VariableWhat it is
DATABASE_URLrequired secret PostgreSQL connection string, e.g. postgresql+asyncpg://user:pass@host:5432/polar
POLAR_CLIENT_IDrequired Polar AccessLink OAuth client id (register at admin.polaraccesslink.com)
POLAR_CLIENT_SECRETrequired secret Polar AccessLink OAuth client secret
BASE_URLoptional Public HTTPS base URL of this deployment; enables OAuth sign-in for MCP connectors

No installable package or endpoint was found. See the README for build-from-source steps.

For AI agents

  1. Ask the user for: DATABASE_URL, POLAR_CLIENT_ID, POLAR_CLIENT_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (none) and that the values above are set.

Machine-readable: install.md · manifest.json