Adaptive AI training coach MCP server backed by Garmin Connect
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An opinionated AI training coach as an MCP server. It pulls your real data from Garmin Connect and prescribes with authority β science-based load management (ACWR), code-enforced injury gates (the server rejects plans that violate an active injury restriction, no matter what the LLM says), and persistent coaching memory so decisions, rationale, and your adaptation patterns survive between conversations. It will tell you "no" when your enthusiasm exceeds your capacity.
All health data and credentials stay on your machine β see Security & Privacy.
You need Python 3.12+, a free Garmin Connect account, and an MCP client (Claude Code, Claude Desktop, or Cursor).
No install step β your MCP client runs the server on demand:
Jump to Connect your MCP client and use uvx as
the command.
The server needs two environment variables: GARMIN_EMAIL and
GARMIN_PASSWORD. Optional: COACH_DATA_DIR (where your coaching data lives)
and ANTHROPIC_API_KEY (only for the standalone daily_loop.py --llm script).
From a source checkout, a .env file works too.
Or in .mcp.json:
Running from source instead: claude mcp add coach-mcp -- python /full/path/to/coach-mcp/server.py
In claude_desktop_config.json (Settings β Developer β Edit Config):
In .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
If you installed with pip install garmin-coach-mcp instead of uvx, use
"command": "garmin-coach-mcp" with no args in any of the blocks above.
Create your profile. From a source checkout, run the interactive wizard:
It creates your athlete profile, training config, and empty plan/memory files in the data directory. Alternatively, create the two required files by hand and let the coach fill in the rest via conversation:
Pull your Garmin baseline. In your MCP client, say:
"Run refresh_athlete_baseline and set up my training."
The coach pulls your name, weight, age, HR data, and training capacity from Garmin, then starts the onboarding conversation β goals, constraints, injury history, race calendar.
Garmin MFA / expired session. Garmin logins are token-cached. If tools
start returning AUTH_REQUIRED, recover with:
It does a fresh credential login, prompts for the MFA code if Garmin asks, and saves new tokens. Restart the MCP server afterwards.
get_coaching_snapshot(): current time context, 7-day week grid (rest days
explicit), fitness metrics, plan adherence, open anomalies, injuries, sleep
gate.update_weekly_plan and
push_plan_to_garmin reject sessions that violate an active injury's
restricted activities, and every non-rest session must carry a purpose or
the save is refused.49 tools β you don't call them directly; the coach uses them during conversation:
| Category | Tools |
|---|---|
| Coaching core | get_coaching_snapshot (canonical, sectioned), get_compliance_report, get_coaching_score |
| Planning | get_weekly_plan, update_weekly_plan, push_plan_to_garmin, get_week_constraints, get_weekly_prescription, get_periodization_status, update_phase |
| Garmin data | query_metrics (kind=fitness/intensity/daily/readiness/personal_records), get_activities_range |
| Athlete | get_athlete, update_athlete, set_ftp, set_threshold_pace, analyze_ftp_test, refresh_athlete_baseline, refresh_fitness_history, get_onboarding_guide |
| Methodology | get_methodology, update_methodology |
| Races | races (action=list/add/update/research), remove_race |
| Strength | sync_strength_session, get_strength_baseline, approve_progression, set_exercise_preference, generate_strength_workout, add_exercise |
| Injuries | diagnose_injury, research_injury, update_injury_status |
| Research | research_exercise, list_exercises, research_sport |
| Memory | log_coaching_decision, get_active_decisions, update_decision_status, record_athlete_response, get_response_patterns, resolve_anomaly |
| Approvals | propose_coaching_action, list_pending_approvals, approve_proposal, reject_proposal |
| Interactive | generate_smart_brief, interactive_check_in |
Every tool carries MCP annotations (read-only / destructive / idempotent / open-world), enforced by tests.
5 prompts: weekly_planning, morning_brief, injury_assessment,
week_review, onboarding.
6 resources: coach://athlete/profile, coach://plan/current,
coach://config/training, coach://coaching/decisions, coach://context/now,
coach://coaching/doctrine (the long-form coaching doctrine).
Everything stays on your machine:
GARMIN_EMAIL/GARMIN_PASSWORD live in your MCP client
config or a local .env. Garmin OAuth tokens are cached in a local token
store (.garth/ in a source checkout, a per-user garmin-tokens directory
for installed copies; override with COACH_TOKEN_DIR).daily_loop.py --llm, one request to the Anthropic API.COACH_DATA_DIRs.See SECURITY.md for details and how to report issues.
Resolution order: COACH_DATA_DIR env var β data/ in a source checkout β a
per-user data directory (created on first run for installed packages). The
only file shipped with the package is methodology.json (safety rules, race
templates, personas); everything personal is created locally and never
committed.
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/coach-mcp)<a href="https://allmcps.com/mcp/coach-mcp"><img src="https://allmcps.com/api/badge/coach-mcp?style=directory" alt="Coach MCP on AllMCPs" /></a>