[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110921":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":39,"updatedAt":40,"readmeContent":41,"aiSummary":42,"trendingCount":15,"starSnapshotCount":15,"syncStatus":43,"lastSyncTime":44,"discoverSource":45},110921,"garmin-personal-mcp","Mason-Levyy\u002Fgarmin-personal-mcp","Mason-Levyy","MCP server for Garmin Connect on Garmin's official Personal API: sleep, HRV, body battery, activities, and more from Claude or any MCP client",null,"Python",79,20,1,8,0,3,11,46.5,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"ai-agents","claude","claude-code","claude-desktop","fitness","garmin","garmin-api","garmin-connect","health","hrv","mcp","mcp-server","model-context-protocol","python","sleep","2026-11-15 08:48:20","2026-11-23 17:44:39","\u003Cdiv align=\"center\">\n\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FMason-Levyy\u002Fgarmin-personal-mcp\u002Fmain\u002Fassets\u002Flogo.png\" alt=\"\" width=\"120\">\n\n# Garmin Personal MCP\n\n**Ask your AI about your Garmin data, on Garmin's official API.**\n\n[![Mason-Levyy\u002Fgarmin-personal-mcp MCP server](https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002FMason-Levyy\u002Fgarmin-personal-mcp\u002Fbadges\u002Fscore.svg)](https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002FMason-Levyy\u002Fgarmin-personal-mcp)\n[![PyPI](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fgarmin-personal-mcp?color=0a64e6)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fgarmin-personal-mcp\u002F)\n[![CI](https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Python](https:\u002F\u002Fimg.shields.io\u002Fpython\u002Frequired-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2FMason-Levyy%2Fgarmin-personal-mcp%2Fmain%2Fpyproject.toml)](https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp\u002Fblob\u002Fmain\u002Fpyproject.toml)\n[![GitHub stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FMason-Levyy\u002Fgarmin-personal-mcp?style=flat&logo=github)](https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp\u002Fstargazers)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg)](https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp\u002Fblob\u002Fmain\u002FLICENSE)\n\n[![Install in Cursor](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCursor-Install_Server-000000?style=flat-square&logo=cursor&logoColor=white)](https:\u002F\u002Fcursor.com\u002Fen\u002Finstall-mcp?name=garmin&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyJnYXJtaW4tcGVyc29uYWwtbWNwIl19)\n[![Install in VS Code](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FVS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https:\u002F\u002Finsiders.vscode.dev\u002Fredirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522garmin%2522%252C%2522command%2522%253A%2522uvx%2522%252C%2522args%2522%253A%255B%2522garmin-personal-mcp%2522%255D%257D)\n[![Install in VS Code Insiders](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FVS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https:\u002F\u002Finsiders.vscode.dev\u002Fredirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522garmin%2522%252C%2522command%2522%253A%2522uvx%2522%252C%2522args%2522%253A%255B%2522garmin-personal-mcp%2522%255D%257D)\n\n[Quickstart](#quickstart) · [Tools](#tools) · [Authentication](#authentication) · [Changelog](https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp\u002Fblob\u002Fmain\u002FCHANGELOG.md)\n\n\u003C\u002Fdiv>\n\nGarmin Personal MCP is a free, open-source MCP server that connects your\nGarmin Connect account to Claude, Cursor, VS Code, or any other MCP client.\nAsk about last night's sleep, HRV trends, Body Battery, stress, training load,\nweight, or a specific run, all from your real Garmin account. It runs on\nGarmin's official Personal API with a revocable key, so it never needs your\nGarmin password, and it's read-only.\n\nPublished on PyPI as [`garmin-personal-mcp`](https:\u002F\u002Fpypi.org\u002Fproject\u002Fgarmin-personal-mcp\u002F)\nand in the official MCP Registry as `io.github.Mason-Levyy\u002Fgarmin-personal-mcp`.\n\n\u003C!-- mcp-name: io.github.Mason-Levyy\u002Fgarmin-personal-mcp -->\n\n> **Unofficial project, official API.** This isn't made by Garmin, but it only\n> talks to Garmin's documented\n> [Personal API](https:\u002F\u002Fdeveloper.garmin.com\u002Fgc-developer-program\u002Fpersonal\u002Fpersonal-api)\n> through [Garmin's own Python client](https:\u002F\u002Fgithub.com\u002Fgarmin\u002Fconnect-personal-api-python).\n\n## How is this different from other Garmin MCP servers?\n\nMost Garmin MCP servers sign in with your Garmin password through the\nunofficial `garminconnect` library, which breaks whenever Garmin changes its\nlogin. In October 2026 Garmin opened a Personal\nAPI for individuals. This server uses it:\n\n- **No password, no scraping**: a revocable Personal API key you create in\n  Garmin Connect, exchanged for short-lived tokens\n- **The whole Personal API**: every working endpoint in Garmin's reference\n  has a tool, with every documented filter\n- **Any date range**: ranges longer than an endpoint allows (28 days for\n  steps, 31 for sleep, and so on) are split into requests for you\n- **Model-sized responses**: all-day sample arrays are left out unless you ask\n  for them\n- **Read-only**: the Personal API can't change your account, and neither can\n  this server\n\n## Quickstart\n\n1. Save your Personal API key (one-time; see [Authentication](#authentication)):\n\n   ```bash\n   uvx garmin-personal-mcp auth\n   ```\n\n2. Add the server to your client. The install buttons at the top do this in\n   one click for Cursor and VS Code.\n\n   **Claude Code**\n\n   ```bash\n   claude mcp add garmin -- uvx garmin-personal-mcp\n   ```\n\n   Or install it as a plugin, which asks for your key in place of step 1:\n\n   ```\n   \u002Fplugin install garmin-personal-mcp --marketplace Mason-Levyy\u002Fgarmin-personal-mcp\n   ```\n\n   **Claude Desktop** (`claude_desktop_config.json`), **Cursor**\n   (`~\u002F.cursor\u002Fmcp.json`), **Windsurf** (`~\u002F.codeium\u002Fwindsurf\u002Fmcp_config.json`),\n   and **Cline** (`cline_mcp_settings.json`) all take the same entry:\n\n   ```json\n   {\n     \"mcpServers\": {\n       \"garmin\": {\n         \"command\": \"uvx\",\n         \"args\": [\"garmin-personal-mcp\"]\n       }\n     }\n   }\n   ```\n\n   \u003Cdetails>\n   \u003Csummary>\u003Cb>VS Code, Codex CLI, Gemini CLI\u003C\u002Fb>\u003C\u002Fsummary>\n\n   VS Code (or use the button above):\n\n   ```bash\n   code --add-mcp '{\"name\":\"garmin\",\"command\":\"uvx\",\"args\":[\"garmin-personal-mcp\"]}'\n   ```\n\n   Codex CLI:\n\n   ```bash\n   codex mcp add garmin -- uvx garmin-personal-mcp\n   ```\n\n   Gemini CLI:\n\n   ```bash\n   gemini mcp add garmin uvx garmin-personal-mcp\n   ```\n\n   \u003C\u002Fdetails>\n\n3. Ask it something: *\"how did I sleep last night?\"*, *\"is my HRV trending\n   down this month?\"*, *\"compare my last three long runs\"*.\n\nRequires [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F). Any MCP client that speaks stdio or\nstreamable HTTP works, not just Claude.\n\n> **Finding this useful?** A ⭐ on\n> [GitHub](https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp) helps other\n> Garmin users find it.\n\n## Authentication\n\n1. Sign in to Garmin Connect on the web and open\n   [Settings → Personal API](https:\u002F\u002Fconnect.garmin.com\u002Fapp\u002Fsettings\u002FpersonalApiToken).\n2. Create a key and choose how long it lasts (30 days to a year). Garmin shows\n   it once.\n3. Run `garmin-personal-mcp auth` and paste it at the hidden prompt. The\n   server checks it with Garmin before saving it to\n   `~\u002F.config\u002Fgarmin\u002Fconnect-personal-api-key` with owner-only permissions.\n\nWhere there's no terminal to prompt in (a script, or a shell an agent runs),\npipe the key in instead, e.g. `pbpaste | garmin-personal-mcp auth`.\n\n`garmin-personal-mcp auth --check` reports whether the saved key still works,\nwithout prompting. Garmin emails you about a week before a key expires: create\na new one and run `auth` again. No restart is needed; the server reads the key\non every call.\n\nInstead of the key file you can set `GARMIN_PERSONAL_API_KEY`, which takes\nprecedence. The key file and bearer-token cache are the same ones Garmin's\n`gc-personal` CLI uses, so a key saved by either works for both.\n\n## Docker Compose\n\nRun the server as a background HTTP service using the prebuilt image. Save\nthis as `compose.yaml`:\n\n```yaml\nservices:\n  garmin:\n    image: ghcr.io\u002Fmason-levyy\u002Fgarmin-personal-mcp:latest\n    command: [\"--http\", \"--host\", \"0.0.0.0\"]\n    environment:\n      - GARMIN_PERSONAL_API_KEY\n      - TZ\n    ports:\n      - \"127.0.0.1:8491:8491\"\n    volumes:\n      - garmin-config:\u002Fhome\u002Fgarmin\u002F.config\u002Fgarmin\n      - .\u002Fdownloads:\u002Fhome\u002Fgarmin\u002FDownloads\u002Fgarmin\n    restart: unless-stopped\n\nvolumes:\n  garmin-config:\n```\n\n`latest` is the newest release, the same version PyPI serves. To stay on one\nversion, use a version tag such as `:0.2.0` instead.\n\nFrom the directory containing `compose.yaml`, create the downloads folder and\npull the image:\n\n```bash\nmkdir -p downloads\ndocker compose pull\n```\n\nActivity files from `garmin_download_activity` land in `.\u002Fdownloads`. The tool\nreports the path inside the container (`\u002Fhome\u002Fgarmin\u002FDownloads\u002Fgarmin\u002F...`),\nwhich is the same file. The container runs as uid 1000, so on Linux, if your\nuid isn't 1000, run `sudo chown 1000 downloads`.\n\nDon't mount an existing `~\u002F.config\u002Fgarmin` from the host into the container.\nThe key file there is readable only by its owner, so the container can't read\nit unless your uid is 1000. Use one of the options below instead.\n\nThe container paths above and uid 1000 stay the same across releases.\n\nThe container runs on UTC unless you set `TZ`, and tools that default to\ntoday use the container's date. In the evening west of UTC that's already\ntomorrow, and in the morning east of it, still yesterday. Add your time zone\nto `.env` (or your shell) so \"today\" matches your day:\n\n```dotenv\nTZ=America\u002FLos_Angeles\n```\n\n### Authentication\n\nChoose **one** of these authentication options:\n\n#### 1. Add your API key to a `.env` file\n\nCreate `.env` next to `compose.yaml` and add your Personal API key:\n\n```dotenv\nGARMIN_PERSONAL_API_KEY='your-personal-api-key'\n```\n\nCompose loads this file automatically. You do not need to run `auth`.\n\n#### 2. Use the interactive `auth` command\n\nLeave `GARMIN_PERSONAL_API_KEY` unset in your shell and `.env`, then run:\n\n```bash\ndocker compose run --rm garmin auth\n```\n\nPaste your Personal API key at the prompt. It is saved for subsequent starts.\n\n### Start the server\n\n```bash\ndocker compose up -d\n```\n\nIn your MCP client, add a **Streamable HTTP** server with the URL\n`http:\u002F\u002F127.0.0.1:8491\u002Fmcp`.\n\nThe server only accepts requests addressed to `127.0.0.1` or `localhost`, and\nit has no authentication. To reach it from another machine, keep the port on\n`127.0.0.1`, put an authenticating proxy or tailnet in front (see\n[Remote \u002F HTTP mode](#remote--http-mode)), and add the hostname clients use to\n`command`:\n\n```yaml\n    command: [\"--http\", \"--host\", \"0.0.0.0\", \"--allowed-host\", \"garmin.example.ts.net\"]\n```\n\nWithout `--allowed-host`, requests to any other hostname are rejected.\n\n### Build from source\n\nClone the repository and use [compose.yaml](compose.yaml) in its root, which\nbuilds the image from source. From the repository directory, run:\n\n```bash\ndocker compose build\n```\n\nThen follow the authentication and startup steps above. After updating the\nsource, rebuild and restart with:\n\n```bash\ndocker compose up --build -d\n```\n\n## Tools\n\nAll tools take dates as `YYYY-MM-DD`. Range tools default to the 7 days ending\ntoday. Tools that return a list wrap it as `{\"results\": [...]}`.\n\n| Tool | What it returns |\n| --- | --- |\n| `garmin_get_day` | One day at a glance: summary, sleep, HRV, Body Battery, stress, and activities |\n| `garmin_get_daily_summary` | Every all-day wellness total for one date |\n| `garmin_get_daily_summaries` | Daily summaries across a range (trends over weeks or months) |\n| `garmin_get_steps` | Daily steps, distance, and goal |\n| `garmin_get_stress` | Daily stress level and time in each stress band |\n| `garmin_get_hydration` | Daily intake, goal, and sweat loss |\n| `garmin_get_body_battery` | Daily charge\u002Fdrain and the events behind it; `chunks` for intraday lows\u002Fhighs |\n| `garmin_get_heart_rate` | Resting\u002Fmin\u002Fmax HR, 7-day resting average, abnormal HR alerts; samples on request |\n| `garmin_get_spo2` | Pulse ox averages, hourly averages, acclimation; readings on request |\n| `garmin_get_wellness_activities` | Wellness activities with summary values and time in zones |\n| `garmin_get_sleep` | One night in full: score, stages, timings, overnight vitals |\n| `garmin_get_sleep_summaries` | Nightly sleep records across a range |\n| `garmin_get_hrv` | One night of HRV with every reading |\n| `garmin_get_hrv_summaries` | Nightly HRV, weekly average, baseline, and status across a range |\n| `garmin_get_weight` | Daily weight summaries, range average, and adjacent weigh-ins; every weigh-in with `include_all` |\n| `garmin_get_weight_goals` | Weight goals in effect and their target ranges |\n| `garmin_get_food_log` | Garmin Connect nutrition log: foods, nutrients, goals, meals |\n| `garmin_search_activities` | Activities with every filter Garmin supports (type, dates, distance, power, area, dives, ...) |\n| `garmin_get_activity` | One activity in full, with splits |\n| `garmin_get_activity_workouts` | The structured workout followed during an activity |\n| `garmin_download_activity` | Save an activity's original file (ZIP with the .fit) on the server's machine |\n| `garmin_get_profile` | Units, formats, time zone, and training-day preferences |\n| `garmin_get_heart_rate_zones` | Zone floors per sport and the HRs they're based on |\n| `garmin_get_fitness_age` | Fitness age, achievable fitness age, and its components |\n| `garmin_get_menstrual_cycle` | Cycle phase, day, fertile window, and predictions |\n| `garmin_get_menstrual_day` | One day's logged symptoms, flow, and cycle detail |\n\nWeights are in grams, distances in meters, and durations in seconds, as Garmin\nreturns them.\n\n## Remote \u002F HTTP mode\n\nThe default transport is stdio. For network clients:\n\n```bash\ngarmin-personal-mcp --http --host 127.0.0.1 --port 8491\n```\n\nThis serves streamable HTTP at `\u002Fmcp`. **There is no built-in authentication.\nNever expose it to the internet.** Bind to localhost and front it with\nsomething that authenticates for you: a VPN or tailnet (e.g. `tailscale\nserve`), an authenticating reverse proxy, or an OAuth-aware MCP gateway. Behind\na proxy, pass `--allowed-host \u003Cproxy hostname>` (repeatable) so the\nDNS-rebinding check accepts its Host header.\n\n## Configuration\n\n| Variable | Purpose | Default |\n| --- | --- | --- |\n| `GARMIN_PERSONAL_API_KEY` | Personal API key; overrides the saved key file | – |\n| `GARMIN_MCP_DOWNLOAD_DIR` | Where `garmin_download_activity` saves files; the tool can't write outside it | `~\u002FDownloads\u002Fgarmin` (platform downloads dir) |\n\n## Troubleshooting\n\n- **\"Garmin rejected the Personal API key\"**: the key expired or was deleted.\n  Create a new one and run `garmin-personal-mcp auth`.\n- **\"No usable Garmin Personal API key was found\"**: run `garmin-personal-mcp auth`, or\n  set `GARMIN_PERSONAL_API_KEY` in the client config.\n- **`{\"no_data\": ...}`**: Garmin has nothing for that date yet (today's HRV\n  before you've slept, for example), or your device doesn't record that\n  metric.\n- **HTTP 400 on a long range**: an endpoint without a documented limit\n  rejected the range. Ask for a shorter one.\n\n## FAQ\n\n**Is this the official Garmin API?** Yes. It uses Garmin's Personal API, which\nanyone with a Garmin Connect account can enable without applying, through\nGarmin's Apache-licensed Python client. The project itself is independent.\n\n**Can it change my Garmin data?** No. The Personal API is read-only. The one\ntool that writes anything, `garmin_download_activity`, saves a file on your\nown machine.\n\n**Which MCP clients does it work with?** Any client that runs a stdio or\nstreamable HTTP server, including Claude Desktop, Claude Code, Cursor,\nWindsurf, Cline, and VS Code. AI coding agents can follow\n[llms-install.md](https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp\u002Fblob\u002Fmain\u002Fllms-install.md).\n\n**Where does my data go?** The server talks only to Garmin. Your key and\nbearer token stay in `~\u002F.config\u002Fgarmin\u002F`. Tool results go to whichever MCP\nclient and model you connect it to.\n\n**Can I use it for other people's accounts?** No. Garmin's Personal API is for\nyour own data. Apps serving other users need Garmin's business developer\nprogram.\n\n## How it works\n\n- `garmin-personal-mcp auth` saves the key; each call exchanges it for a\n  bearer token through Garmin's `PersonalApiAuthenticator`, which caches the\n  token until an hour before it expires. A token rejected early gets one\n  retry with a fresh exchange.\n- Each tool maps to one endpoint on `personal.connectapi.garmin.com`\n  (`garmin_get_day` combines several). Ranges longer than an endpoint's\n  documented maximum are fetched in consecutive windows and concatenated.\n- Bulky per-minute sample arrays are dropped by default to keep responses\n  readable for a model; `include_samples` or `chunks` bring them back.\n\n## Development\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp\ncd garmin-personal-mcp\nuv sync\nuv run pytest\n```\n\nTests run against synthetic fixtures; no account needed. Lint and formatting\nare enforced with `ruff` (`uv run ruff check .`, `uv run ruff format .`).\n\n## Contributing\n\nIssues and pull requests are welcome, especially when Garmin adds endpoints to\nthe Personal API. See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, style, and\nthe PR checklist, and [SECURITY.md](SECURITY.md) for how to report\nvulnerabilities privately. Release history is in [CHANGELOG.md](CHANGELOG.md).\n\n## Support the project\n\nIf this server saves you time, please\n[star the repo](https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp). Stars are\nhow other Garmin users find it in GitHub search and MCP directories. Bug\nreports and endpoint requests are just as welcome in\n[issues](https:\u002F\u002Fgithub.com\u002FMason-Levyy\u002Fgarmin-personal-mcp\u002Fissues).\n\n## License\n\n[MIT](LICENSE). Garmin and Garmin Connect are trademarks of Garmin Ltd. or its\nsubsidiaries; this project is not affiliated with or endorsed by Garmin.\n","Garmin Personal MCP 是一个开源的 Model Context Protocol（MCP）服务端，用于安全接入 Garmin Connect 官方个人 API，将用户的健康与运动数据（如睡眠、心率变异性 HRV、Body Battery、活动记录等）暴露给 Claude、Cursor、VS Code 等支持 MCP 的 AI 客户端。它基于 Garmin 官方颁发的可撤销 API 密钥实现只读访问，无需账号密码，保障隐私与安全性。项目采用 Python 编写，轻量部署，适用于希望在本地 AI 工具中自然语言查询个人健康数据的健身爱好者、数字健康开发者及 AI 应用集成者。",2,"2026-11-24 04:39:58","CREATED_QUERY"]