cd /news/ai-agents/show-hn-ask-claude-about-your-garmin… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-179210] src=github.com β†— pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: Ask Claude about your Garmin data via the official Personal API

A developer released a free, open-source MCP server on Cloudflare Workers that lets Claude query a user's own Garmin Connect data through Garmin's official, read-only Personal API. The server locks its /mcp endpoint behind GitHub OAuth so only the account named in ALLOWED_GITHUB_LOGIN can connect, strips names, profile photos and GPS coordinates from responses, and splits date ranges longer than Garmin's 28-day per-request limit into merged 28-day calls. It runs at $0 on Cloudflare's free plan (100,000 requests/day) and Garmin's free Personal API, and exposes tools such as get_daily_summaries, get_sleep_detail, get_hrv_summaries and search_activities for steps, sleep, heart rate, HRV, SpO2, Body Battery, VO2 max and logged strength sets.

key takeaway

A single-user MCP server can run at $0 by caching Garmin's 24-hour access token in Workers KV, refreshing it an hour before expiry, and splitting ranges beyond Garmin's 28-day per-request cap into merged 28-day calls.

read5 min views5 publishedDec 1, 2026
Show HN: Ask Claude about your Garmin data via the official Personal API
Image: Michielbdejong (auto-discovered)

Talk to your own Garmin data in Claude: "How did I sleep this week?", "Did my walks hit my heart-rate target?", "Show the sets I logged at the gym yesterday."

A small, private MCP server on Cloudflare Workers that uses Garmin's official, read-only Connect Personal API. It costs nothing to run for one person.

πŸ“– Full write-up: Talk to your Garmin data in Claude, for free (also on dev.to)

Claude ──OAuth (GitHub sign-in, only you)──▢ Worker /mcp ──Bearer token──▢ Garmin Personal API
                                              β”‚
                                              └─ KV: OAuth grants + cached Garmin token
  • Your Garmin personal API key is a Worker secret. The Worker swaps it for a 24-hour access token, caches it in KV, and refreshes it an hour before it expires.
  • /mcp is locked. Claude has to sign in through OAuth, which sends you to GitHub, and only the GitHub account inALLOWED_GITHUB_LOGIN gets through. If it isn't set, nobody does.
  • Read-only. Every tool is aGET . Names, profile photos and GPS coordinates are stripped from responses before they reach Claude.
Piece Cost
Garmin Connect Personal API Free
Cloudflare Workers, Free plan (100,000 requests/day) Free
Workers KV, Free plan (100,000 reads, 1,000 writes/day) Free. This server writes about once a day
GitHub OAuth app Free
Claude Works on the Free plan, which allows one custom connector
Custom domain Optional, about $10/year. The free *.workers.dev address works fine
Total $0
Tool Data
get_daily_summaries Steps, calories, intensity minutes, resting HR, stress, Body Battery per day
get_daily_steps ,get_daily_stress ,get_hydration Per-day stats
get_sleep_summaries ,get_sleep_detail Sleep per night, or one night in detail
get_daily_heart_rate ,get_hrv_summaries ,get_spo2 Heart rate, HRV, blood oxygen
get_body_battery ,get_vo2_max ,get_fitness_age Recovery and fitness
get_weight Weight and body composition
search_activities ,get_activity ,get_activity_workouts ,list_activity_types Workouts, including strength sets and reps
get_heart_rate_zones ,get_profile_settings Settings

Date-range tools accept up to a year. Garmin's API only allows 28 days per request, so the server splits longer ranges into 28-day requests and merges the results.

Open the Personal API Key page in Garmin Connect (sign in on the web if asked) β†’ Create Key β†’ accept the terms β†’ pick an expiry β†’ Create. Copy the key: it's shown once. Garmin's own guide: Garmin Connect Personal API.

Click Deploy to Cloudflare above. It forks this repo into your GitHub, creates the KV namespace and deploys the Worker. You don't need to edit any files.

Prefer doing it by hand? Fork the repo, then in Cloudflare go to Workers & Pages β†’ Create β†’ Import a repository, pick your fork, and set the deploy command to npx wrangler deploy.

Open the Worker's address, for example https://garmin-mcp.<your-subdomain>.workers.dev (Cloudflare shows it on the Worker's page). The page lists the exact callback URL and connector URL to copy in the next steps, and which secrets are still missing.

GitHub β†’ Settings β†’ Developer settings β†’ OAuth Apps β†’ New OAuth App:

  • Homepage URL: your Worker address
  • Authorization callback URL: the callback URL shown on your Worker's page (its address + /callback )
  • Leave wildcard matching and device flow off

Copy the Client ID, and generate a Client secret.

Cloudflare β†’ your Worker β†’ Settings β†’ Variables and Secrets β†’ Add, type Secret:

Name Value
ALLOWED_GITHUB_LOGIN your GitHub username. Only this account can sign in
GARMIN_API_KEY from step 1
GITHUB_CLIENT_ID from step 4
GITHUB_CLIENT_SECRET from step 4

claude.ai/customize/connectors β†’ Add custom connector β†’ URL: the connector URL shown on your Worker's page (its address + /mcp) β†’ Connect β†’ approve β†’ sign in with GitHub.

Start a new chat and ask: "Summarise my last 7 days from Garmin."

curl -s -o /dev/null -w '%{http_code}\n' -X POST https://YOUR-WORKER/mcp   # must print 401

skills/garmin-health-coach/SKILL.md teaches the agent how to use these tools: which ones answer which question, how to read recovery signals together, and how to answer like a coach rather than dumping JSON. It's free, like everything else here.

  • claude.ai: downloaddist/garmin-health-coach-plugin.zip (clickDownload raw file ), then Settings β†’ Plugins β†’Add β†’ Upload plugin and pick the zip.
  • Claude Code: add this repo as a plugin marketplace and install it: Or copy
/plugin marketplace add yershalom/claude-garmin-mcp
/plugin install garmin-health-coach@claude-garmin-mcp

skills/garmin-health-coach into~/.claude/skills/ .

  • Other agents that readSKILL.md files: put the folder wherever that agent loads skills from.

Then try: "Should I train hard today?" or "Compare this week's sleep with last week's."

npm install
cp .dev.vars.example .dev.vars      # fill in your key, a local GitHub OAuth app, your username
npm run check-garmin                # tests your Garmin key directly, no server needed
npm run dev                         # http://localhost:8787

For the local GitHub OAuth app, use the callback http://localhost:8787/callback. To try the tools, run npx @modelcontextprotocol/inspector and connect to http://localhost:8787/mcp. Claude itself can't reach localhost, so deploy before connecting Claude.

npm run typecheck checks the TypeScript.

Older versions had ALLOWED_GITHUB_LOGIN and PUBLIC_URL in wrangler.jsonc. After you update, add ALLOWED_GITHUB_LOGIN as a secret (step 5). Until you do, sign-in is refused. PUBLIC_URL is no longer needed; you can still set it under vars in wrangler.jsonc to pin one address if your Worker has a custom domain as well as workers.dev.

  • Secrets live only in Cloudflare (or your git-ignored .dev.vars ). None are in the repo.
  • To cut off access, remove the connector in Claude, delete the key in Garmin Connect, or both.
  • The Garmin key expires on the date you picked. Make a new one and update GARMIN_API_KEY . The cached token is tied to the key, so it refreshes by itself.
  • The Personal API is for your own data. Each person runs their own copy with their own key.

Endpoint list and auth flow from Garmin's official connect-personal-api-python client. Built with workers-oauth-provider and the MCP TypeScript SDK.

MIT licensed.

── more in #ai-agents 4 stories Β· sorted by recency
── more on @claude 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/show-hn-ask-claude-a…] indexed:0 read:5min 2026-12-01 Β· β€”