XERT Cycling Training
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
XERT MCP Server
A Model Context Protocol (MCP) server that connects Claude to the XERT API, providing access to your fitness signature, training load, workouts, and activities.
Features
📊 Fitness Signature - Get your current FTP, LTP, HIE, and Peak Power
🎯 Training Status - Check freshness, training load, and recommended XSS
🏋️ Workout of the Day - AI-powered workout recommendations
📋 Workouts - List, view details, and export (ZWO/ERG)
🚴 Activities - Browse activities with full XSS metrics and MPA data
⬆️ Upload - Upload FIT files for analysis
Related MCP server: Strava MCP Server
Installation
Prerequisites
Node.js 18 or later
A XERT account (free or premium)
Setup
Clone the repository:
git clone https://github.com/Milofax/xert-mcp.git cd xert-mcpInstall dependencies:
npm installAuthenticate with XERT:
npm run setup-authEnter your XERT email and password when prompted. Tokens will be saved to
.env.Build the project:
npm run build
Configuration
Add to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"xert": {
"command": "node",
"args": ["/path/to/xert-mcp/dist/server.js"]
}
}
}Replace /path/to/xert-mcp with the actual path to your installation.
Restart Claude Desktop to load the server.
Docker
You can also run the server via Docker:
1. Build the image
docker build -t xert-mcp .2. Get your XERT tokens
Run the setup script locally first to authenticate:
npm install
npm run setup-authThis creates xert-tokens.json with your access and refresh tokens.
3. Configure Claude Desktop
{
"mcpServers": {
"xert": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "XERT_ACCESS_TOKEN",
"-e", "XERT_REFRESH_TOKEN",
"xert-mcp"
],
"env": {
"XERT_ACCESS_TOKEN": "your-access-token-from-xert-tokens.json",
"XERT_REFRESH_TOKEN": "your-refresh-token-from-xert-tokens.json"
}
}
}
}Note: Access tokens expire after 7 days. When they expire, run npm run setup-auth again and update the tokens in your config.
Available Tools
Tool | Description |
| Get fitness signature, training status, load, and WOTD |
| List all your saved workouts |
| Get detailed workout intervals |
| Export workout as ZWO or ERG file |
| List activities in a time range |
| Get activity details with XSS metrics |
| Upload a FIT file for analysis |
Usage Examples
Ask Claude questions like:
"What's my current FTP and training status?"
"Show me my workout of the day"
"List my activities from the last 7 days"
"What was my XSS breakdown for yesterday's ride?"
"Did I have any breakthroughs this week?"
"Show me my saved workouts"
"Export my 'Sunday Endurance' workout as a ZWO file"
XERT Concepts
FTP - Functional Threshold Power (1-hour sustainable power)
LTP - Lower Threshold Power (fat-burning threshold)
HIE - High Intensity Energy (anaerobic work capacity)
PP - Peak Power (maximum instantaneous power)
XSS - Xert Strain Score (training load metric)
MPA - Maximum Power Available (real-time power limit)
Development
# Run in development mode
npm run dev
# Build for production
npm run build
# Start production server
npm startToken Management
The server handles tokens automatically:
Access tokens expire after 7 days
Refresh tokens expire after 6 months
Tokens are stored in
xert-tokens.json(created automatically)On 401 errors, tokens are refreshed automatically
New tokens are persisted to survive server restarts
If authentication fails completely, run npm run setup-auth again.
MCP Funnel / Environment Variables
When using mcp-funnel or similar tools, tokens from xert-tokens.json take priority over environment variables. This ensures refreshed tokens are used even when env vars contain outdated values.
License
MIT
Credits
XERT - Advanced cycling analytics
Model Context Protocol - AI integration standard
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect Claude to your Intervals.icu watch data for fitness, workout review, and plan writing.
Turn Claude or ChatGPT into a cycling coach that plans your week, grades it, and adapts. Free beta.
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
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).
Related MCP Servers
- AlicenseAqualityDmaintenanceConnects Claude with the Intervals.icu API to retrieve fitness data including activities, workouts, wellness metrics, and training events.610388GPL 3.0
- AlicenseAqualityDmaintenanceConnects Claude to your Strava account for analyzing training, predicting race times, and generating periodized training plans via natural language.1383 npmISC
- AlicenseNot gradedqualityCmaintenanceConnects Claude to Strava data for natural language queries about rides, stats, and activities.5 npmMIT
- AlicenseAqualityDmaintenanceConnects Strava training data to Claude, enabling personalized coaching through analysis of training load, workout planning, gear maintenance, and power metrics.1065 PyPI1MIT