Lean Race Plan MCP Server
README.md
<p align="center">
<img src="assets/logo.png" width="96" height="96" alt="Lean Race Plan logo">
</p>
# Lean Race Plan MCP Server
Let Claude, ChatGPT or any MCP client run your cycling training. Your AI can plan and
rebalance workouts, read your fitness, fatigue and form (CTL/ATL/TSB), analyse your rides,
fix the TSS of rides without a power meter and manage your weight goal and daily calorie
targets. Every planned workout then shows up on Zwift or your Wahoo.
๐ [leanraceplan.com](https://www.leanraceplan.com) ยท
๐ค [Make ChatGPT or Claude your cycling coach](https://www.leanraceplan.com/ai-cycling-coach) ยท
๐ด [Send your plan to Zwift & Wahoo](https://www.leanraceplan.com/zwift-wahoo-sync) ยท
๐ [Training methodology](https://www.leanraceplan.com/methodology)
> This repository holds documentation and registry metadata only. The server is hosted by
> Lean Race Plan, so there is nothing to install or run yourself.
## Example prompts
Once connected, talk to your AI the way you would talk to a coach:
- *"Plan my next two weeks toward my gravel race on the 14th. Max 1 hour on weekdays, long ride on Saturday."*
- *"I skipped Tuesday's intervals. Rebalance the rest of the week."*
- *"What's my form going into Saturday's race? Should I rest tomorrow?"*
- *"Make Thursday 3ร12 min sweet spot at 90% FTP with 4 min easy in between."*
- *"Yesterday's MTB race had no power meter. It felt like an 8 out of 10, log it."*
- *"How much did my heart rate drift on Sunday's long ride?"*
- *"I weighed 71.4 kg this morning. Am I still on track for 69 kg by March?"*
- *"I'm at a wedding on Saturday, set my calories to 3,000 that day."*
Your AI reads the current state first and asks you to confirm before it changes anything.
## How it fits together
```
Lean Race Plan โ your AI (Claude, ChatGPT, โฆ) โ Intervals.icu โ Zwift / Wahoo
โ
Strava (completed rides)
```
- **Lean Race Plan** holds your plan, profile, training load and calorie targets.
- **Your AI** reads and edits it through this MCP server.
- **Intervals.icu** (optional, free) pushes every planned workout to Zwift or your Wahoo as a
structured workout. Change the plan and the device follows.
- **Strava** (optional) supplies your completed rides for analysis and training load.
## Requirements
- A **free** [Lean Race Plan account](https://www.leanraceplan.com/signup). The connector
and the full toolset, including the tools that write, are free.
- An MCP client that supports remote servers over Streamable HTTP. In Claude and ChatGPT,
custom connectors require a paid plan (Claude Pro, Max or Team; ChatGPT Plus, Pro or Team).
## Connect
1. Sign in and open **[Settings โ Claude & ChatGPT connector](https://www.leanraceplan.com/settings?setup=ai)**.
2. Generate your personal connector URL. It looks like:
```
https://www.leanraceplan.com/api/mcp/lrp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
3. Add it to your AI:
| Client | Where |
|---|---|
| **Claude** (web, desktop, mobile) | Settings โ Connectors โ *Add custom connector* โ paste the URL |
| **ChatGPT** | Settings โ Apps & Connectors โ Advanced โ turn on *Developer mode* โ *Create* โ paste the URL, no authentication |
| **Claude Code** | `claude mcp add --transport http leanraceplan <your-url>` |
| **Cursor** | `~/.cursor/mcp.json` โ `{"mcpServers": {"leanraceplan": {"url": "<your-url>"}}}` |
| **VS Code** | user `mcp.json` โ `{"servers": {"leanraceplan": {"type": "http", "url": "<your-url>"}}}` |
4. Ask: *"What's on my training plan this week?"*
Step-by-step instructions for every client: **[docs/setup.md](docs/setup.md)**.
> **Keep your URL private.** It contains a secret key, and anyone who has it can read and
> change your training plan. You can regenerate or revoke it in Settings at any time.
## Tools
| Tool | What it does |
|---|---|
| **Training plan** | |
| `get_planned_workouts` | Planned workouts for a date range: type, duration, target TSS, zones, watts and interval blocks |
| `plan_workouts` | Add one workout or a whole block, optionally replacing what is planned in that period |
| `update_workout` | Move, reshape, complete, skip or delete a workout |
| **Rides** | |
| `get_recent_activities` | Completed rides from Strava with power, heart rate, TSS/IF and where the TSS comes from |
| `get_activity` | One ride in full: NP, best 5 s / 1 / 5 / 20 min, time in zone, decoupling, efficiency factor |
| `log_rpe` | Log how hard a ride felt (1โ10), so a ride without a power meter gets a proper TSS |
| `set_activity_tss` | Set the TSS of a ride by hand, or clear it |
| **Fitness** | |
| `get_training_load` | CTL (fitness), ATL (fatigue), TSB (form) and weekly ramp rate |
| `get_athlete_profile` | FTP, weight, height and active goals |
| **Weight & fuelling** | |
| `get_weight_goal` | Weight goal, required deficit and whether the planned training gets you there in time |
| `set_weight_goal` | Set or change the goal; every future calorie target follows |
| `get_calorie_targets` | Daily calorie targets and how each one is built up |
| `set_calorie_target` | One-off exception for a single day |
| `log_weight` | Store a weigh-in |
| `get_weight_trend` | Weigh-ins, 7-day average and fluid-filtered trend |
Parameters and details: **[docs/tools.md](docs/tools.md)**.
## Privacy & data
The connector reads and writes the training data in your own Lean Race Plan account and
nothing else. What is stored, and how to export or delete it, is described in the
[privacy policy](https://www.leanraceplan.com/privacy). Revoking the URL in Settings cuts off
access immediately.
## Support
Questions or problems: [leanraceplan.com/contact](https://www.leanraceplan.com/contact), or
open an issue in this repository.
## License
The documentation in this repository is licensed under [CC BY 4.0](LICENSE). The Lean Race
Plan service and server are proprietary.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues