Skip to main content
Glama
Lean Race Plan MCP Server

Lean Race Plan MCP Server

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 Β· πŸ€– Make ChatGPT or Claude your cycling coach Β· 🚴 Send your plan to Zwift & Wahoo Β· πŸ“ Training 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.

Related MCP server: TrainingPeaks MCP Server

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. 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.

  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.

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.

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. Revoking the URL in Settings cuts off access immediately.

Support

Questions or problems: leanraceplan.com/contact, or open an issue in this repository.

License

The documentation in this repository is licensed under CC BY 4.0. The Lean Race Plan service and server are proprietary.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to query and create workouts with structured intervals, manage calendars and events, analyze power PRs and CTL/ATL/TSB fitness trends, handle workout libraries, equipment and health metrics through natural language. Uses secure cookie-based authentication stored in the system keyring, so no API approval is required and any account can be set up in minutes.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to query and analyze workouts, build structured intervals, manage calendars, events and libraries, and track fitness metrics such as CTL/ATL/TSB and power PRs through natural language. Uses secure cookie authentication stored in the system keyring, so no API approval or special account permissions are required.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables athletes and coaches to query workouts, build structured intervals, manage calendars, events, health metrics and multi-week plans, and track CTL/ATL/TSB fitness and power PRs through natural language. Uses secure cookie-based authentication that any account can set up in minutes, with no API approval required.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables Claude, Code, Cowork, and other AI assistants to query workouts, build structured intervals, manage calendars, log health metrics, track CTL/ATL/TSB fitness trends and power PRs, and control training data through natural language. Uses secure cookie authentication so any account can connect without official API approval.
      -