Free · Hosted · Model Context Protocol
The MCP server for your cycling training
Connect Claude, ChatGPT or any MCP client to Lean Race Plan. Your AI plans and rebalances your workouts, reads your fitness, fatigue and form, analyses your rides and manages your calorie targets. Every planned workout then shows up on Zwift or your Wahoo.
Already have an account? Sign in
Your server URL
The server is hosted, so there is nothing to install. Every athlete gets a personal URL. Sign in, open Settings → Claude & ChatGPT connector and generate yours. It looks like this:
https://www.leanraceplan.com/api/mcp/<your-token>
Keep it private. The part after /api/mcp/ is your secret key: anyone who has the URL can read and change your training plan. Regenerate it in Settings at any time and the old one stops working straight away.
Connect your client
Replace <your-url> with the URL from Settings. Once connected, ask: “What's on my training plan this week?”
Claude
Web, desktop and mobile. Needs Claude Pro, Max or Team.
- Settings → Connectors → Add custom connector.
- Name it "Lean Race Plan" and paste your URL. Leave the OAuth fields empty.
- Switch the connector on in the chat’s tools menu.
ChatGPT
Needs ChatGPT Plus, Pro or Team.
- Settings → Apps & Connectors → Advanced → turn on Developer mode.
- Click Create, paste your URL and choose No authentication.
- Enable the connector from the chat’s tools menu.
Claude Code
claude mcp add --transport http leanraceplan <your-url>
Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"leanraceplan": {
"url": "<your-url>"
}
}
}VS Code
MCP: Open User Configuration (keep the URL out of workspace files)
{
"servers": {
"leanraceplan": {
"type": "http",
"url": "<your-url>"
}
}
}Stdio-only clients
Bridge with mcp-remote
{
"mcpServers": {
"leanraceplan": {
"command": "npx",
"args": ["-y", "mcp-remote", "<your-url>"]
}
}
}What you can ask
Talk to your AI the way you would talk to a coach. It reads your plan and your rides first, and asks before it changes anything.
More on coaching through your own AI: make ChatGPT or Claude your cycling coach.
15 tools
Every tool tells your client whether it only reads or also changes data. Parameters and examples are in the tool reference.
Training plan
get_planned_workoutsreadPlanned workouts for a date range: type, duration, target TSS, zones, watts and interval blocks.
plan_workoutswriteAdd one workout or a whole block, optionally replacing what is planned in that period.
update_workoutwriteMove, reshape, complete, skip or delete a workout.
Rides
get_recent_activitiesreadCompleted rides from Strava with power, heart rate, TSS/IF and where the TSS comes from.
get_activityreadOne ride in full: NP, best 5 s / 1 / 5 / 20 min, time in zone, decoupling, efficiency factor.
log_rpewriteLog how hard a ride felt (1–10), so a ride without a power meter gets a proper TSS.
set_activity_tsswriteSet the TSS of a ride by hand, or clear it again.
Fitness
get_training_loadreadCTL (fitness), ATL (fatigue), TSB (form) and the weekly ramp rate.
get_athlete_profilereadFTP, weight, height and active goals.
Weight & fuelling
get_weight_goalreadWeight goal, required deficit and whether the planned training gets you there in time.
set_weight_goalwriteSet or change the goal; every future calorie target follows.
get_calorie_targetsreadDaily calorie targets and how each one is built up.
set_calorie_targetwriteA one-off exception for a single day.
log_weightwriteStore a weigh-in.
get_weight_trendreadWeigh-ins, 7-day average and the fluid-filtered trend.
How it fits together
- Lean Race Plan holds your plan, profile, training load and calorie targets, built on the training methodology and the Coggan power zones.
- 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.
Technical details
- Transport
- Streamable HTTP, stateless. Every POST stands on its own and gets a JSON response; there is no SSE stream (GET returns 405).
- Protocol versions
- 2025-06-18, 2025-03-26 and 2024-11-05
- Authentication
- A personal secret in the URL path. No OAuth flow and no headers to configure.
- Capabilities
- 15 tools with readOnlyHint / destructiveHint annotations
- Registry
- Listed in the official MCP Registry as com.leanraceplan/lean-race-plan
- Dates
- YYYY-MM-DD
The connector only reads and writes the training data in your own account. What is stored and how to delete it is described in the privacy policy. Questions? Contact us.
Give your AI a plan to work with
Build your plan, generate your connector URL in Settings and paste it into your AI. It takes about five minutes, and it is free.
Already have an account? Sign in
Frequently Asked Questions
Is the Lean Race Plan MCP server free?
Yes. The connector and all 15 tools, including the ones that change your plan, are part of the free plan, with no time limit and no credit card. You do need an AI client that can add a remote MCP server; in Claude and ChatGPT that means a paid plan.
Which MCP clients does it work with?
Claude and ChatGPT are the clients we test with. Any other client that supports remote MCP servers over Streamable HTTP, such as Claude Code, Cursor or VS Code, connects with the same URL. Clients that only run local servers can use mcp-remote as a bridge.
Why a secret URL instead of OAuth?
A URL works in every client without a login flow, including ChatGPT developer mode and code editors. The key in the URL is yours alone: anyone who has it can read and change your plan, so keep it private. Regenerating it in Settings disables the old one immediately.
Does it read my Strava rides?
Yes, once you connect Strava in Settings. Your AI then sees every completed ride with power, heart rate and TSS, and can open a single ride for normalized power, best efforts, time in zone and aerobic decoupling.
How do the workouts get to Zwift or Wahoo?
Through Intervals.icu, a free account that acts as the bridge to your devices. Connect it once in Settings and every workout your AI plans or changes appears on Zwift or your Wahoo as a structured workout.
Will my AI change my plan without asking?
The server tells your AI to check the current state first and to confirm every change with you before it writes. Every workout it adds or edits is marked with an AI badge in your calendar, so you always see what happened.
Is the server open source?
No. The server is hosted and maintained by Lean Race Plan. The documentation and the registry metadata are public on GitHub under CC BY 4.0.