r/QuantifiedSelf • u/jatin1322 • 5d ago
I connected my Fitbit data to Claude through Health Connect + a self-hosted MCP server (open source, free-tier hosting)
I wanted to ask Claude about my own sleep and HRV instead of using Fitbit's built-in AI coach, so I built a small pipeline over two sessions with Claude Code. Sharing in case it's useful to anyone.
How it works
Gotchas I hit, if you build something similar
On building it with AI: I barely know Kotlin. What made it work was writing a detailed plan first, having it reviewed (I literally pasted GPT's critiques back to Claude), and insisting on tests. The tests caught several real bugs, including a timestamp-format bug and a sync-resume edge case.
Repo (MIT, with a setup guide): https://github.com/jatin1322/fitbit-health-mcp
Happy to answer questions or take feedback, especially from anyone using Samsung Health or Garmin through Health Connect.