TrainingPeaks MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TrainingPeaks MCP Server Show my workouts for this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TrainingPeaks MCP Server
Connect TrainingPeaks to Claude and other AI assistants via the Model Context Protocol (MCP). Query workouts, build structured intervals, track fitness trends, and write comments/feedback on your calendar through natural conversation.
No more expired cookies. This server features automatic login using your TrainingPeaks username and password. The credentials remain local on your machine and are only transmitted directly to TrainingPeaks over secure HTTPS.
What You Can Do
Ask your AI assistant things like:
"Build me a 4x8min threshold session for Tuesday with warm-up and cool-down"
"Show my workouts for this week and check if I've completed them"
"Analyze my compliance for yesterday's run and add a feedback comment in TrainingPeaks"
"What's my CTL, ATL, and TSB trend for the last 90 days?"
"Get my profile and account type"
Related MCP server: TrainingPeaks MCP Server
Tools (8)
Workouts & Intervals
tp_get_workouts: List planned and completed workouts in a date range (max 90 days).tp_create_workout: Create planned workouts on a calendar date (supports complex nested interval structures, auto-computed TSS/IF, and planned start times).tp_delete_workout: Delete planned workouts by ID.
Comments & Feedback
tp_get_workout_comments: Fetch the list of comments from a workout.tp_add_workout_comment: Add a text comment (e.g. analysis, compliance review) to a workout.
Performance & Summary
tp_get_profile: Get athlete profile info (Athlete ID, Name, Email, Premium/Basic account status).tp_get_weekly_summary: Aggregate view of workouts, total TSS, total duration, and end-of-week fitness.tp_get_fitness: Fetch CTL (Fitness), ATL (Fatigue), and TSB (Form) performance metrics.
Setup in Claude Desktop
Add the server to your claude_desktop_config.json:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"trainingpeaks": {
"command": "python",
"args": [
"-m",
"tp_mcp",
"serve"
],
"env": {
"TP_USERNAME": "YOUR_TRAININGPEAKS_USERNAME",
"TP_PASSWORD": "YOUR_TRAININGPEAKS_PASSWORD"
}
}
}
}Ensure you run this inside the virtual environment wheretp-mcp is installed, or point the "command" path directly to the python.exe/python binary of the virtual environment.
Security & Privacy
This server is designed to be completely secure and private:
100% Local: Runs on your local machine. No external databases, no middleware, no credential sharing.
Direct Connection: Authenticates directly with TrainingPeaks official servers using HTTPS.
No exposed ports: Uses standard input/output (stdio) to communicate with Claude Desktop. It does not open any network ports.
Development & Testing
To set up the project locally and run the tests:
# Clone the repository
git clone https://github.com/tildecomunicacion/trainingpeaks_mcp.git
cd trainingpeaks-mcp
# Create a virtual environment and install dependencies
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
# Run unit tests
pytestLicense
MIT
Available Tools
8 toolstp_add_workout_commentB
Add a new text comment to a specific workout by its workout ID.
Inputs: workout_id (required), comment (required).
tp_create_workoutB
Create a planned TrainingPeaks workout on a specific date (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS) with optional planned duration, distance, TSS, and description.
Inputs: date_str (required), sport (required), title (required), duration_minutes, +4 more.
tp_delete_workoutA
Delete a planned workout from TrainingPeaks calendar by its workout ID.
Inputs: workout_id (required).
tp_get_fitnessB
Get historical and current TrainingPeaks fitness, fatigue, and form metrics (CTL, ATL, TSB).
Inputs: days, start_date, end_date.
tp_get_profileA
Get athlete profile information from TrainingPeaks (athlete ID, name, email, account type).
Inputs: no named parameters.
tp_get_weekly_summaryB
Get an aggregated weekly view of TrainingPeaks workouts and fitness metrics (CTL, ATL, TSB) for a specific week.
Inputs: week_of.
tp_get_workout_commentsB
Get comments associated with a specific workout by its workout ID.
Inputs: workout_id (required).
tp_get_workoutsA
List planned and completed workouts from TrainingPeaks in a date range (ISO format YYYY-MM-DD). Maximum range is 90 days.
Inputs: start_date (required), end_date (required), workout_filter.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct operation: workout CRUD, comments, fitness metrics, profile, and weekly summary. No overlap in purpose.
All tools follow the tp_verb_noun pattern in snake_case, with verbs like add, create, delete, get, and clear nouns. Consistent and predictable.
8 tools is well-scoped for a training data server, covering workouts, comments, metrics, and profile without bloat or deficiency.
Covers core workflows: workout create/delete/get, comments add/get, fitness metrics, profile. Slight gaps like update workout and delete comment, but not critical for basic use.
Related MCP Connectors
Connect Intervals.icu to Claude and ChatGPT: read training, plan workouts. Training never stored.
Connect Claude to your Intervals.icu watch data for fitness, workout review, and plan writing.
tri-train is a training platform for triathletes that syncs activities from Strava and Garmin and exposes them to Claude through a remote MCP server. Ask Claude how your last block went, why your run pace dropped, or whether you are fresh enough for Sunday's race, and it answers from your real data: activities with laps and grade-adjusted pace, weekly load and the performance management chart (CTL/ATL/TSB), sleep, HRV and resting heart rate, and your race calendar with predictions. Claude can also act: create and adjust planned workouts with structured intervals, push them to your Garmin watch, add races and write notes. Every change is journaled and can be undone. Read and write access are separate OAuth scopes, and the server enforces them on every call. Built and hosted in Switzerland by a triathlete; data stays on our own servers (Swiss revDSG / GDPR).
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Related MCP Servers
- AlicenseBqualityDmaintenanceConnect TrainingPeaks to Claude and other AI assistants via the Model Context Protocol to query workouts, build structured intervals, manage calendar, track fitness trends, and control training through natural conversation.65MIT
- FlicenseNot gradedqualityAmaintenanceConnects an athlete's TrainingPeaks account to AI assistants so they can query and create workouts with structured intervals, manage calendars, events, notes and equipment, log health metrics, and track CTL/ATL/TSB fitness trends and power PRs through natural language, using cookie-based authentication that requires no API approval. It also covers coach workflows such as athlete groups, workout libraries, and applying multi-week training plans.-
- FlicenseNot gradedqualityAmaintenanceConnects Claude and other AI assistants to a TrainingPeaks account through secure cookie authentication that requires no API approval, enabling users to query and analyze workouts, fitness trends (CTL/ATL/TSB), power and running PRs, health metrics, and equipment via natural language. It also supports building structured interval and strength sessions, scheduling workouts and plans, managing races, calendar notes, and athlete groups, and updating thresholds and zones.-
- FlicenseNot gradedqualityAmaintenanceConnects TrainingPeaks accounts to Claude and other AI assistants through secure cookie authentication, with no API approval required. Enables natural-language querying and management of workouts, structured intervals, calendars, events, health metrics, equipment, and CTL/ATL/TSB fitness trends, power PRs, and training plans.-