A coach's morning report from your Garmin data, for any LLM via MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A coach's morning report from your Garmin data, for any LLM via MCP.
Every other Garmin MCP server hands the LLM a filing cabinet of raw JSON β one night of sleep is ~52K tokens, one activity stream ~155K. The model can't read it, so it skims and improvises. Fartlek does the synthesis server-side: computed sports-science metrics (CTL/ATL/TSB, ACWR, monotony, calibrated training load), personal baselines with significance floors, safety alerts β delivered as compact, verdict-first reports the model can actually reason about.
The token contract (v0.1): calling every tool in the catalog once, at default arguments, costs under 9K tokens β a sixth of one raw Garmin sleep payload. Excluding the garmin_raw escape hatch, the whole synthesis surface sums to under 4K. Hard caps are enforced per response by the renderer, with disclosed truncation.
Status: v0.1 (Phase 1). 8 synthesis tools; the trend suite (weekly review, multi-week load, fitness/race outlook, recovery audit) ships with v0.2. Design:
docs/DESIGN.mdΒ· plan:ROADMAP.mdΒ· contributors:docs/HANDOFF.md.
| Tool | What it answers | Cap |
|---|---|---|
garmin_brief | "How am I today β can I train hard?" Fused GREEN/AMBER/RED verdict vs your own baselines | 600 |
garmin_activities | Browse the log, get activity IDs | 1,300 |
garmin_activity | One session in depth: reps, fade, comparison to your most similar past session | 1,000β4,000 |
garmin_athlete | Reference card: zones, PRs, goal, data coverage | 600 |
garmin_gear | Shoe/bike mileage vs your Garmin-set retirement limits, and what you're actually rotating | 500 |
garmin_set_profile | Tell it your goal race / phase / availability (local only) | 200 |
garmin_log | Log RPE, wellness, illness/injury β the athlete outranks the sensors | 120 |
garmin_sync | Force refresh / deepen history backfill | 150 |
garmin_raw | Bounded, compacted escape hatch to named raw sources | 5,000 |
First call on a fresh install runs the cold start automatically (~30 API calls, β1 minute): 180 days of history, warm CTL/ATL from day 0, then background sleep/HRV backfill.
Install with either:
Or clone and run from source (requires Python β₯ 3.12 and uv):
Then point your MCP client at the server.
Any MCP-compatible client works β the server speaks standard JSON-RPC over stdio, so it is client-agnostic. The snippets below are just the per-client config formats; Claude Desktop, Claude Code, Cursor, Continue, Cline, Windsurf, Zed, VS Code (Copilot Chat), and Gemini CLI all work. The universal invocation is
uvx fartlek-mcp.
Claude Code β from this directory, .mcp.json is picked up automatically. From anywhere else:
Claude Desktop β claude_desktop_config.json:
Cursor β .cursor/mcp.json, same command/args block as above.
Continue / Cline / Windsurf / Zed β same pattern: wherever the client keeps its MCP server list, add a fartlek entry with command: "uvx", args: ["fartlek-mcp"]. Most editors adopt the Claude Desktop format verbatim.
Any other stdio MCP client β invoke the server binary directly:
Ask things like "can I go hard today?", "analyze my last run", "how did I sleep this week?" β and tell it how sessions felt: your reported RPE and illness notes gate the readiness verdict.
Build and run locally:
For fartlek auth, run it interactively once to populate the volume, then use the image as the MCP server:
| Command | What it does |
|---|---|
fartlek auth | one-time Garmin Connect login (MFA supported), tokens stored locally |
fartlek sync [--nights N] | manual sync (tier 0+1, optional N-night sleep/HRV backfill) |
fartlek doctor | check tokens, Garmin connectivity, local store health |
fartlek accounts | list local accounts |
fartlek export [dir] | export the store (consistent SQLite snapshot + CSV per table) |
fartlek reset | wipe all local tokens and data (asks confirmation) |
Environment: GARMINTOKENS overrides the token location, FARTLEK_HOME the data directory (default ~/.fartlek).
Releases are published via trusted publishing (OIDC) β no API tokens anywhere.
fartlek-mcp Β· owner: matisdsp Β· repo: fartlekrelease.yml Β· environment: pypiversion in pyproject.toml, commit, then tag and push:The release workflow builds, runs tests, and uploads to PyPI. A published version can't be overwritten β to fix a mistake, bump to the next patch (0.1.1).
Local-first: stdio transport, your credentials and health data never leave your machine. The server only talks to Garmin's API with your own tokens, sequentially and rate-limited. fartlek export gives you everything; fartlek reset removes everything.
Garmin has an official developer programme, and Fartlek is not part of it. Like every other open-source Garmin client, it signs in with your own credentials and reads the same endpoints the Garmin Connect apps use. Those endpoints are not published for third-party use, and Garmin's Terms of Use list, among examples of prohibited conduct, "using any process, whether automated or manual, that accesses, copies, or scrapes content from the Site through any means not purposely made available through the Site."
What that means in practice:
garmin_log, garmin_set_profile) write to the local SQLite store and nothing else. Pushing structured workouts was specified and then dropped β see docs/DESIGN.md Β§2.4. Garmin's Training API is the sanctioned route for that, and it requires a cloud-to-cloud integration, which would mean your data leaving your machine.If that trade-off is not one you want to make, do not connect an account. This is stated here rather than buried, because it is the kind of thing you should decide before installing, not discover afterwards.
Apache 2.0. Fartlek is an independent open-source project, not affiliated with, endorsed by, or sponsored by Garmin Ltd. "Garmin" is used only to describe compatibility with Garmin Connect data.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/fartlek)<a href="https://allmcps.com/mcp/fartlek"><img src="https://allmcps.com/api/badge/fartlek?style=directory" alt="Fartlek on AllMCPs" /></a>