selfcoach-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SELFCOACH_HOME | No | Where tokens and the database live. | ~/.selfcoach |
| SELFCOACH_CHINA | No | 1 for accounts on garmin.cn. | 0 |
| SELFCOACH_DB_URL | No | Any SQLAlchemy URL; Postgres needs the postgres extra. | sqlite:///$SELFCOACH_HOME/garmin.db |
| SELFCOACH_TOKENS | No | Token directory. | $SELFCOACH_HOME/tokens |
| SELFCOACH_LANGUAGE | No | Language for the slash commands, e.g. Italian; empty = the language you write in. | |
| SELFCOACH_ALLOW_WRITE | No | 0 = read-only: never write to Garmin Connect. | 1 |
| SELFCOACH_AUTO_SYNC_MINUTES | No | Re-sync recent days when data is older than this. | 30 |
| SELFCOACH_INITIAL_SYNC_DAYS | No | History downloaded on first use if you skipped sync. | 60 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Garmin Connect training companion. You act as the athlete's coach: most users train without a human coach. Data is synced to a local database and tools return compact Markdown summaries.
Daily loop: today_status gives a readiness-based suggestion (rest / easy / moderate / hard) -> agree on today's session -> schedule_workout puts it on the Garmin calendar so it runs step by step on the watch -> after training, analyze_session and add_note (RPE, feelings) -> weekly_review on Sunday to plan the next week. Use set_goal once to record the target event: phase-aware advice depends on it. Slash commands (MCP prompts) wrap these flows: start, today, plan, week, log, progress, goal, coach_report. trends shows 4-52 week patterns plus insights Garmin does not compute (intensity distribution, monotony/strain, ramp rate, rest days). chart_data returns JSON for visual reports.
Rules: never schedule or remove workouts without the athlete agreeing first. If a workout comes from a human coach (source "coach", e.g. Garmin Clipboard) never change it: suggest adjustments for the athlete to discuss with the coach. Suggestions are training guidance, not medical advice: for pain, illness or unusual symptoms tell the athlete to see a professional. Laps in motocross are motos. Reply in the user's language.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| today_statusA | Start here every day. Suggests what kind of session suits today (rest / easy /
moderate / hard) with the reasons, from resting HR vs 4-week baseline, Training
Readiness, Body Battery, acute/chronic load, HRV, sleep, recent hard sessions and
days without rest. Also shows the goal and training phase, today's planned
workout and the last 3 days. |
| plan_vs_doneA | Planned vs executed for the Monday-Sunday week containing |
| analyze_sessionA | Deep dive into one activity (by id, else the latest on |
| trendsA | Weekly table for the last |
| weekly_reviewA | Weekly review for the week containing |
| list_activitiesB | Activities of the last |
| chart_dataA | Compact JSON for charts and visual reports: daily metrics (resting HR with
|
| add_noteB | Save a note in the training journal: perceived effort |
| set_goalA | Record the athlete's goal so advice follows a training phase (base, build,
peak, taper, race week). |
| schedule_workoutA | Create a structured workout and put it on the Garmin Connect calendar for
|
| remove_workoutA | Remove from the Garmin calendar a workout that this server scheduled (ids are in plan_vs_done). Workouts from a coach or other apps are never removed. Only call after the athlete agreed. |
| sync_garminA | Download the last |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| start | First run: checks your data, records your goal and explains the daily routine. |
| today | Morning check: readiness, suggested session for today, option to send it to the watch. |
| plan | Builds one structured workout and puts it on your Garmin watch after your OK. |
| week | Sunday routine: reviews the week and plans next week's sessions on your watch. |
| log | After training: analyses the session and saves your RPE and feelings. |
| progress | Trends over several weeks: fitness, fatigue, consistency and what to change. |
| goal | Records your target event and constraints so advice follows the right phase. |
| coach_report | Weekly report ready to send to a human coach. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Most tools target clearly distinct actions or resources: sync, daily status, weekly review, trends, session analysis, scheduling, notes, and goals. A few reporting tools (chart_data, trends, weekly_review, plan_vs_done) surface overlapping training data, but their descriptions distinguish formats and use cases.
All names use snake_case and are readable. Most are verb_noun (sync_garmin, analyze_session, list_activities, add_note, set_goal, schedule_workout, remove_workout), but several are noun phrases (today_status, plan_vs_done, trends, weekly_review, chart_data), so the convention is not fully predictable.
The 12 tools are well-scoped for a self-coaching server covering sync, analysis, planning, review, notes, goals, and workout scheduling. Each tool appears to earn its place without excessive surface area.
The surface covers the core lifecycle: data sync, activity analysis, trends, weekly review, planning, workout scheduling/removal, notes, and goals. Minor gaps exist, such as no update/edit operation for scheduled workouts and no update/delete for notes, though remove-and-recreate workarounds are available.