Running Companion MCP Server
Personal project, not offered for public use.
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Personal running and health data from the user's Garmin watch, synced into a local SQLite database. How far back each kind of data goes depends on the user's watch and accessories: describe_data and get_today say what's there. Running dynamics need a chest strap or running pod; body composition needs a smart scale.
How to use these tools:
"How am I doing / should I train hard today?" → get_today and get_insights (today's warnings and watch items). "How was my week/month?" → get_weekly_summary or get_trend.
"What affects my sleep/recovery/runs?" → get_insights (personal patterns with sample sizes and p-values; associations, not proof of cause).
Sleep, bedtime, sleep debt, stress, Body Battery → get_sleep_stress_report (and get_insights for what affects them). Suggest gradual bedtime shifts (about 30 minutes at a time), not overnight overhauls.
When to run today or tomorrow, heat and humidity → get_run_forecast. A past run's air temperature, heat cost and cool-weather-equivalent pace → get_activity (weather).
Milestones, PBs, streaks, a year in review, running form over months → get_progress.
Races, race predictions and race plans are Garmin's: the app has none of its own. Point to Garmin Connect for those.
Weight, body composition, food and fluids → get_body_report (pass run_minutes for a fuel plan). General sports-nutrition ranges only; never push aggressive weight loss.
Weekly reviews → get_weekly_report first (the computed facts), then the weeks before it for comparison. Answers stay in the chat; the app doesn't store them.
A specific run → list_activities then get_activity. Personal bests → get_best_efforts.
Anything else → call describe_data first (schema, units, formulas, caveats), then query with read-only SQL.
Data may be stale: get_today reports when each stream was last synced; offer sync_garmin when it matters.
How to answer:
Garmin is the coach: its suggested workouts, training status, race predictions and plans. Complement it: explain the numbers, connect them across sleep, recovery and training, and suggest; don't contradict Garmin without a clear reason from the data.
Give paces as min/km and distances in km. Explain what a number means for the user, not just its value.
Be honest about limits: several metrics rest on approximations (see describe_data). Never present them as medical facts; for persistent abnormal health signals, suggest a doctor.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_todayB | Recovery status (green/amber/red with reasons), HRV, resting HR, sleep, training load (fitness/fatigue/form), last night in detail (score, stages, bedtime, breathing rate, SpO2), energy (Body Battery this morning, yesterday's stress), everyday activity (steps, calories, weekly intensity minutes), weight trend, fitness age with its biggest lever and the weight goal, the latest run, and how fresh the data is. Pass a date for a past day. |
| get_weekly_summaryB | One row per Monday-based week: runs, km, hours, load, intensity split, efficiency, fitness/form, weight, sleep, HRV, resting HR. |
| list_activitiesB | Activities newest first, with pace, HR, load, intensity split, efficiency and RPE. Filter by date range, run category or activity type. |
| get_activityA | Everything about one activity: summary, running dynamics, zones, the planned workout steps, planned vs actual per step (executed_steps: auto-laps merged back into steps, pace judged against the target as on/fast/slow), every lap and best efforts. Defaults to the latest activity. |
| get_best_effortsB | Fastest time for 400 m, 1 km, 1 mile, 3 km, 5 km, 10 km, half and marathon found inside any run. Optionally only since a date. |
| get_trendB | A metric aggregated per week or month. Metrics: fitness (Fitness (CTL) at period end); form (Average form (TSB)); load (Total training load (TRIMP)); run_km (Running distance (km)); runs (Number of runs); hrv (Average nightly HRV (ms)); resting_hr (Average resting HR (bpm)); sleep_h (Average sleep (hours)); sleep_need_h (Average Garmin sleep need (hours)); weight_kg (Weight trend (kg) at period end); body_fat_pct (Body fat trend (%) at period end); easy_efficiency (Metres per heartbeat on easy outdoor runs); pace_at_ref_hr (Pace at the reference HR on outdoor runs); decoupling (Average decoupling (%) on steady runs of 30+ min); low_intensity_pct (Share of running time below LT1 (%)); sleep_score (Garmin's sleep score (0–100), average per night); deep_sleep_h (Deep sleep per night (hours)); rem_sleep_h (REM sleep per night (hours)); breathing_rate (Overnight breathing rate (breaths per minute)); spo2 (Overnight blood oxygen, SpO2 (%)); sleep_stress (Stress during sleep (0–100)); stress (All-day stress (0–100), average per day); body_battery_morning (Body Battery peak of the day, usually right after waking (0–100)); steps (Steps per day); calories (Calories burned per day (resting + active)); active_calories (Active calories per day); intensity_minutes (Intensity minutes, total for the period (vigorous count double, as Garmin and the WHO count them)). |
| describe_dataA | Schema of every table, units, how each derived metric is calculated, the HR thresholds in use and known caveats. Read before writing SQL. |
| queryA | Run one read-only SQLite SELECT against the database (max 200 rows). Call describe_data first for tables, units and conventions. |
| sync_garminA | Fetch new data from Garmin (activities, sleep, HRV, wellness, weigh-ins) and recompute metrics. Usually takes 10–30 seconds. |
| get_insightsA | Signals for a day (warnings such as possible illness, overreaching, load spikes; watch items such as easy-run drift, sleep debt, irregular bedtimes, stress streaks; positives) and the user's personal patterns: comparisons from two years of their own data (late bedtimes, short nights, hard sessions, stressful days, evening runs, running after short nights or in heat), each with sample sizes, p-values (p raw, q adjusted for the number of comparisons: q decides what counts as an effect), effect size d and a caveat. Patterns are associations, not proof of cause; say so. Pass a date (defaults to the latest day with data). |
| get_weekly_reportA | The computed report for one Monday-to-Sunday week: a headline, training (volume against the previous four weeks, intensity balance, form), key sessions with planned vs actual, recovery (HRV, resting heart rate, status days, sleep against need, sleep score, bedtime regularity), life (stress, Body Battery), body (weight trend), new personal bests and the signals raised during the week. Lines carry a tone (good, neutral, concern). Start every weekly review from this. Defaults to the last complete week. |
| get_body_reportB | Weight trend against the user's goal with a safe-rate assessment and projected date, body composition (two-week averages of fat and muscle, a muscle-loss flag), Garmin's fitness age, calories burned on rest, training and big days, the user's own sweat rates (ml/h, overall and warm vs cool), and daily protein and carbohydrate ranges for their weight from the ACSM/ISSN position stands. Pass run_minutes (and hard) for a fuel and fluid plan for one run. This is general sports-nutrition guidance, not a diet: never suggest aggressive deficits, and point to a sports dietitian for personal plans. |
| get_sleep_stress_reportB | Sleep: the last 4 weeks of nights (bedtime, wake time, hours, Garmin's sleep need, score), tonight's suggested bedtime (Garmin's need counted back from the usual wake time for tomorrow's kind of day, plus a realistic 30-minute step when the target is far from the usual bedtime), 7-night sleep debt, timing consistency (spread of bed and wake times, weekday vs weekend shift) and the stage mix against Garmin's ideal ranges. Stress: Body Battery charged vs drained (2-week balance and morning levels), what charges and drains it per day (sleep, naps, workouts, stress, everyday), awake minutes at each stress level, workdays vs weekends. Clock times are local. For what affects sleep for this user, also see get_insights (bedtime, short nights, evening runs). |
| get_run_forecastA | Hourly forecast for today's remaining hours and tomorrow (06:00 to 22:00) where the user usually runs, from Open-Meteo: air temperature, dew point, humidity, wind, chance of rain, and the heat cost of each hour (Hadley's temperature plus dew point rule: estimated % slower at the same effort). Each day has the coolest dry window and the hour to avoid. Clock hours are local. A run's own weather and heat-adjusted pace are in get_activity. |
| get_progressA | Lifetime totals, milestones passed with their dates (total km, run counts, first times under round times per distance), the next milestones with an estimated date at the recent pace, records (longest run, biggest week and month, weekly streaks) and personal bests per distance. Pass year for that year in review (volume, consistency, PBs set, fitness and resting values from start to end of year, time of day, hottest and coldest run, against the previous year). Pass form: true for running form by month on easy runs, adjusted to the same pace. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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.