H
happyc0der/garmin-connect-api
Read and write Garmin Connect from Claude, Python or HTTP: activities, strength sets, health data, workouts, weigh-ins. MCP server.
SECURITY.md ✓
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
- 复制上面的命令
- 粘成
claude_desktop_config.json里mcpServers的一项(本地服务器用 command + args,示例见 客户端接法) - 重启客户端
客户端配置(取自该仓库的安装命令)
{
"mcpServers": {
"happyc0der-garmin-connect-api": {
"command": "uvx",
"args": ["garmin-connect-api@latest"]
}
}
}解析自我们于 2026-10-26 抓取的该仓库 README;我们未执行过。
command/args 来自仓库写明的安装命令;不确定时请以该项目 README 为准。
VS Code(.vscode/mcp.json —— 键名是 servers)
{
"servers": {
"happyc0der-garmin-connect-api": {
"command": "uvx",
"args": ["garmin-connect-api@latest"]
}
}
}VS Code 顶层键是 <code>servers</code>,其余与上面那份相同。
Claude Code(命令行)
claude mcp add --transport stdio happyc0der-garmin-connect-api -- uvx garmin-connect-api@latest
Claude Code 不收 JSON 文件,用这条命令直接加。
配置项的键名以你的客户端为准:客户端与 CLI
- ★ 数取值
- 2 ★ · happyc0der/garmin-connect-api · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-10-23 · 最近见到 2026-11-14 · 共见到 26 次 · 被 23 个来源列出
- 评分构成
- 综合分 2,300 · 2 ★ · 23 个来源 · mcp
- 安装
uvx garmin-connect-api@latest
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
uvx garmin-connect-api@latest。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
happyc0der/garmin-connect-api;我们收录于 2026-10-23;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。# garmin-connect-api
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Read and write Garmin Connect from an MCP client such as Claude, from Python, or over a local HTTP
API: activities with per-set strength detail, daily health data, planned workouts, completed
strength sessions, and weigh-ins with full body composition.
> Unofficial. Not affiliated with or endorsed by Garmin. It uses the same private endpoints as
> the Garmin Connect website, through python-garminconnect,
> because Garmin offers no public API for individuals. Those endpoints can change without notice,
> and using them is not sanctioned by Garmin's terms. It is meant for your own account and your
> own data.
## Status
v0.3. Reads activities with per-set strength detail, laps and pool-swim lengths, daily health,
trends over up to two years and named personal records; writes strength, run, ride and swim
workouts, completed strength sessions, set corrections and weigh-ins with body composition. 38
tools, every one checked against a real account. Bug reports and feature requests go to
GitHub Issues.
## Quick start
You need uv and Python 3.12 or newer.
1. Log in once, at a terminal:
bash
uvx --from garmin-connect-api garmin login
This is the only place a password is ever typed. It asks for your Garmin email, password and any
multi-factor code, then stores tokens in ~/.garmin-api/default, readable by your user only.
Nothing else ever prompts for a password; without tokens, every tool says to run this.
2. Add the server to your MCP client.
Claude Code:
bash
claude mcp add --scope user --transport stdio garmin -- uvx garmin-connect-api@latest
Claude Desktop, in claudedesktopconfig.json (in ~/Library/Application Support/Claude/ on
macOS, %APPDATA%\Claude\ on Windows):
json
"mcpServers": {
"garmin": {
"command": "uvx",
"args": ["garmin-connect-api@latest"]
@latest makes uvx check for a new release each time the server starts. Without it, uvx keeps
running the first version it downloaded.
3. Ask. "How did I sleep this week?", "Did my pace hold up in yesterday's swim?",
"How has my resting heart rate moved since summer?", "Show my last strength session's sets, and
change sets 3 to 5 to dumbbell rows", "Schedule a swim for Thursday: 200 easy, then 8 x 100 free
on 20 seconds rest, in a 25-yard pool".
## What it can do
38 tools, each annotated so your client knows which only read (24), which add something (8) and
which delete or overwrite (6), and can ask before running those. Every argument, down to a
workout step's pace target, carries a description.
| Read | Write |
| Activities, filtered by type and date | Create a strength workout, schedule it, push it to a watch |
| Per-set strength detail: exercise, reps, weight | Create a run, ride or pool swim workout, with targets |
| Laps for runs and rides; pace per 100 for pool swims | Log a completed strength session, with every set |
| A day in one answer: steps, heart rate, stress, body battery, sleep, HRV, readiness | Correct a session's sets: exercise, reps, weight |
| Trends over up to two years: twelve metrics, daily, weekly or monthly | Record a weigh-in, or a full body composition reading |
| Personal records, named and in units | Rename an activity or change its description |
API: activities with per-set strength detail, daily health data, planned workouts, completed
strength sessions, and weigh-ins with full body composition.
> Unofficial. Not affiliated with or endorsed by Garmin. It uses the same private endpoints as
> the Garmin Connect website, through python-garminconnect,
> because Garmin offers no public API for individuals. Those endpoints can change without notice,
> and using them is not sanctioned by Garmin's terms. It is meant for your own account and your
> own data.
## Status
v0.3. Reads activities with per-set strength detail, laps and pool-swim lengths, daily health,
trends over up to two years and named personal records; writes strength, run, ride and swim
workouts, completed strength sessions, set corrections and weigh-ins with body composition. 38
tools, every one checked against a real account. Bug reports and feature requests go to
GitHub Issues.
## Quick start
You need uv and Python 3.12 or newer.
1. Log in once, at a terminal:
bash
uvx --from garmin-connect-api garmin login
This is the only place a password is ever typed. It asks for your Garmin email, password and any
multi-factor code, then stores tokens in ~/.garmin-api/default, readable by your user only.
Nothing else ever prompts for a password; without tokens, every tool says to run this.
2. Add the server to your MCP client.
Claude Code:
bash
claude mcp add --scope user --transport stdio garmin -- uvx garmin-connect-api@latest
Claude Desktop, in claudedesktopconfig.json (in ~/Library/Application Support/Claude/ on
macOS, %APPDATA%\Claude\ on Windows):
json
"mcpServers": {
"garmin": {
"command": "uvx",
"args": ["garmin-connect-api@latest"]
@latest makes uvx check for a new release each time the server starts. Without it, uvx keeps
running the first version it downloaded.
3. Ask. "How did I sleep this week?", "Did my pace hold up in yesterday's swim?",
"How has my resting heart rate moved since summer?", "Show my last strength session's sets, and
change sets 3 to 5 to dumbbell rows", "Schedule a swim for Thursday: 200 easy, then 8 x 100 free
on 20 seconds rest, in a 25-yard pool".
## What it can do
38 tools, each annotated so your client knows which only read (24), which add something (8) and
which delete or overwrite (6), and can ask before running those. Every argument, down to a
workout step's pace target, carries a description.
| Read | Write |
| Activities, filtered by type and date | Create a strength workout, schedule it, push it to a watch |
| Per-set strength detail: exercise, reps, weight | Create a run, ride or pool swim workout, with targets |
| Laps for runs and rides; pace per 100 for pool swims | Log a completed strength session, with every set |
| A day in one answer: steps, heart rate, stress, body battery, sleep, HRV, readiness | Correct a session's sets: exercise, reps, weight |
| Trends over up to two years: twelve metrics, daily, weekly or monthly | Record a weigh-in, or a full body composition reading |
| Personal records, named and in units | Rename an activity or change its description |
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/happyc0der-garmin-connect-api/)
- 来源
- awesome · https://github.com/happyc0der/garmin-connect-api
- 按领域浏览
- MCP 服务
- Traction
- 2 ★
- 收录来源
- 23 个独立来源
- 收录于
- 今天
- 安全策略
- 该仓库根目录有
SECURITY.md(我们只核文件存在,未核内容)
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。