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 uses the same URL:
https://www.leanraceplan.com/api/mcp
When you add it, your AI asks you to sign in to Lean Race Plan and choose Allow. That links the app to your account without sharing your password. You see every connected app under Settings → Claude & ChatGPT connector and can disconnect it there at any time.
Using a client that cannot sign in? Generate a personal URL under the same Settings section. It contains a secret key, so treat it like a password.
Connect your client
Add the URL, sign in once, then 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", paste the URL and add it.
- Click Connect, sign in to Lean Race Plan and choose Allow.
ChatGPT
Needs ChatGPT Plus, Pro or Team.
- Settings → Apps & Connectors → Advanced → turn on Developer mode.
- Click Create, paste the URL and choose OAuth.
- Sign in to Lean Race Plan and choose Allow.
Claude Code
Then run /mcp and choose Authenticate
claude mcp add --transport http leanraceplan https://www.leanraceplan.com/api/mcp
Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"leanraceplan": {
"url": "https://www.leanraceplan.com/api/mcp"
}
}
}VS Code
MCP: Open User Configuration
{
"servers": {
"leanraceplan": {
"type": "http",
"url": "https://www.leanraceplan.com/api/mcp"
}
}
}Stdio-only clients
Bridge with mcp-remote (handles the sign-in too)
{
"mcpServers": {
"leanraceplan": {
"command": "npx",
"args": ["-y", "mcp-remote",
"https://www.leanraceplan.com/api/mcp"]
}
}
}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
- OAuth 2.1 with PKCE and dynamic client registration: you sign in with your Lean Race Plan account. For clients without OAuth, a personal URL with a secret key.
- 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.
How does signing in work?
When you add the connector, your AI sends you to leanraceplan.com. You sign in, see what the app will be able to do and choose Allow. The app never sees your password, and you can disconnect it at any time under Settings. Clients that cannot sign in can use a personal URL with a secret key instead.
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.