Running Companion MCP Server
Personal project, not offered for public use.
# Running Companion
My personal running and health dashboard, built on Garmin's read-only Personal API. It runs on my Windows laptop:
the Garmin key and the database stay there. Claude can read the data through the app's MCP connector. Races,
predictions and training plans stay in Garmin Connect.
This is a personal project. It isn't set up or supported for anyone else.
## Install and run
1. Download `Running-Companion-Setup-<version>.exe` from the [latest release](https://github.com/Dtsiakas/running-companion/releases/latest)
and run it. It brings its own Node and needs no administrator rights. Windows warns about an unsigned installer the
first time: More info → Run anyway.
2. Start **Running Companion** from the Start Menu. A window opens along with the browser. Closing the window turns
the app off.
3. The first start shows the setup page: choose a password and paste a
[Garmin Personal API key](https://connect.garmin.com/app/settings/personalApiToken).
- **Data:** `%LOCALAPPDATA%\Running Companion\data`. Installing a new version or uninstalling never touches it.
- **Forgot the password:** Start Menu → "Running Companion (new password)".
- **Phone and Claude on the web:** with Tailscale connected, the window asks once whether to open a public HTTPS
address through Tailscale Funnel (only while the window is open). The answer is kept in `desktop.json` next to the
data folder; delete that file to be asked again.
- **Claude connector:** Settings → Claude shows the address (`https://<machine>.ts.net/mcp`). Add it in Claude as a
custom connector and approve it with the password.
- **Food log:** ask Claude to log a meal ("log this", with a photo or a description). It only logs when asked. Meals
show on Today (removable there) and the last two weeks with feedback on Body.
- **Backups:** one a day in `data\backups`, automatic. To restore: close the app, then from a clone run
`npm run restore -- <file>` with `COMPANION_DATA_DIR` pointing at the data folder.
## Development
Node 26 (it runs the TypeScript directly).
| Command | What it does |
|---|---|
| `npm run demo` | The app on generated data at http://localhost:8788: no key, no login |
| `npm start` | The server on http://localhost:8787 with data in `data/` |
| `npm run dev:web` | The dashboard with instant reload, proxying `/api` to `npm start` |
| `npm run build` | Builds the dashboard |
| `npm run sync`, `npm run metrics` | Sync from Garmin; recompute metrics (`--full` for everything) |
| `npm run backup`, `npm run restore -- <file>` | Back up or restore the data folder |
| `npm run set-password` | New login password |
| `npm test`, `npm run typecheck` | Tests (synthetic data only) and types |
**Releasing:** put the notes under a new version in `CHANGELOG.md`, set that version in every `package.json`, push,
then publish a release with tag `v<version>` on GitHub. CI builds the installer, installs, starts and uninstalls it
on Windows, and attaches it to the release.
## Notes
- **Metrics:** formulas and their assumptions are in `packages/metrics/src` and in the MCP tool `describe_data`.
Thresholds (LTHR, max and resting HR) come from the latest Garmin profile.
- **Weather:** [Open-Meteo](https://open-meteo.com), no key. It receives coordinates rounded to about 100 m and dates.
- **Maps:** OpenStreetMap tiles.
- **Privacy:** when Claude reads the data, the tool results it uses are sent to Anthropic as part of that chat.
## License
Copyright (C) 2026 Dimitris Tsiakas. AGPL-3.0-or-later, see [LICENSE](LICENSE).
Not affiliated with Garmin. Not medical advice.
TDQS
Scored across 15 tools
Most tools target a clearly distinct slice of the data: get_today (daily snapshot), list_activities/get_activity (activity drill-down), get_trend (aggregates), get_run_forecast (weather), get_progress (lifetime/PBs), describe_data/query (raw SQL). The report family (get_weekly_report, get_sleep_stress_report, get_body_report, get_insights) overlaps domain-wise with get_today and get_weekly_summary, but descriptions give explicit guidance ('Start every weekly review from this', 'one row per Monday-based week') that keeps selection tractable.
Eleven tools use a clean get_<subject> pattern (get_today, get_trend, get_weekly_report, get_run_forecast...), plus list_activities, a coherent verb_noun shape elsewhere. Minor deviations: bare `query` and the loose `_report` ordering vary between subject-first and domain-first (get_weekly_report vs get_sleep_stress_report), but the convention is recognizable throughout.
Fifteen tools is at the upper end of a healthy set and each one maps to a distinct question an agent would actually ask (today, activity, trend, week, sleep, body, forecast, progression, insights, raw SQL). No tool looks like padding or a synonym for another.
Read coverage is excellent across training, recovery, sleep, stress, body composition, weather and lifetime progress, with query as an escape hatch for anything unmodeled. The gap is write-side: RPE is surfaced in list_activities but there is no tool to set RPE, notes, tags or goals, so the agent can never annotate or correct the data it reads.