Strava Run Coach MCP Server
Connects to Strava to access athlete profiles, activities, PRs, training load, yearly stats, and shoe mileage; supports syncing and searching activities, plus managing running goals and race calendar entries.
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.
Strava Run Coach MCP Server
A local MCP server that connects Claude Desktop to your Strava data, enabling a personalized running coach experience.
Features
Strava Integration: Access your training data, activities, and PRs
Training Analysis: Weekly/monthly mileage trends and training load
Shoe Tracking: Monitor shoe mileage, wear, and usage patterns
Goal Tracking: Set and track your running goals
Race Calendar: Manage upcoming races with goal times
Related MCP server: Strava MCP Server
Setup
1. Create a Strava API Application
Go to Strava API Settings
Create a new application:
Application Name: Run Coach (or any name)
Category: Training
Website: http://localhost
Authorization Callback Domain: localhost
Note your Client ID and Client Secret
2. Install Dependencies
cd /Users/.../runcoach
pip install -e .Or install dependencies directly:
pip install mcp httpx3. Authenticate with Strava
Run the authentication flow:
python -m runcoach.authThis will:
Ask for your Client ID and Client Secret
Open a browser for Strava authorization
Save your tokens to
data/tokens.json
4. Add to Claude Desktop
Add the MCP server to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"runcoach": {
"command": "/path/to/python",
"args": ["-m", "runcoach.server"],
"cwd": "/path/to/runcoach"
}
}
}Note: Use the full path to your Python executable (find it with which python or python -c "import sys; print(sys.executable)") and the full path to the runcoach directory.
Then restart Claude Desktop.
Available Tools
Strava Data
Tool | Description |
| Your Strava profile (name, location, stats) |
| Last N runs with pace, distance, HR |
| Deep dive on a specific run (splits, laps) |
| Overall stats including all-time totals |
| Weekly/monthly mileage trends |
| Sync all activities to local cache for historical analysis |
| Search cached activities by year, distance, type |
| Aggregated running stats by year |
Shoe Tracking
Tool | Description |
| List all shoes with mileage, wear status, and replacement recommendations |
| Analyze which shoes you use for different run types, distances, and paces |
Goals & Races
Tool | Description |
| List your running goals |
| Add or update a goal |
| Remove a goal |
| List upcoming races |
| Add an upcoming race |
| Update race details |
| Remove a race |
Example Prompts
Once set up, you can ask Claude things like:
Basic Activity Queries
"What were my recent runs?"
"How did my 10K on Saturday go? Show me the splits."
"What's my training load been like the past month?"
"Show me all runs over 20km from this year"
Training Analysis
"What's my average pace at different heart rate zones?"
"Has my pace improved at the same heart rate over the past 6 months?"
"Compare my January and February training volume"
"How much elevation have I gained in my runs this year?"
"Am I running more consistently this year compared to last year?"
Performance Insights
"Based on my 10K PR, what marathon time should I target?"
"How has my heart rate changed at marathon pace over the past year?"
"What's my average pace on hilly vs flat routes?"
"Show me my progression on my usual 10km route"
"Are my long runs getting faster or am I maintaining better consistency?"
Goal Setting & Race Prep
"Add a goal to run a sub-50 minute 10K by March"
"I'm racing the Chicago Marathon on October 13th, goal time 3:30"
"Based on my recent training, am I ready for my upcoming half marathon?"
"Create a 12-week marathon training plan based on my current fitness"
Historical Analysis
First sync your data with "Sync all my Strava activities", then:
"Show my yearly running stats"
"Find my longest runs from 2024"
"Compare my 2023 and 2024 training volume"
"What were my peak training weeks before my last marathon?"
"How many runs did I do per week during my last marathon build-up?"
Shoe Management
"What shoes do I have and how worn are they?"
"Which shoes should I retire?"
"Which shoes do I use for fast workouts vs easy runs?"
"How many km are on my Pegasus?"
"Recommend which shoe I should wear for my long run this weekend"
Advanced Coaching
"I want to run a sub-3:15 marathon in June. Based on my PRs and training history, is this realistic?"
"Analyze my heart rate data - am I improving my aerobic efficiency?"
"What's the optimal weekly mileage for me based on what I've done before?"
"I have a half marathon in 4 weeks. Should I taper and how much?"
File Structure
runcoach/
├── pyproject.toml # Project config
├── src/runcoach/
│ ├── __init__.py
│ ├── server.py # MCP server
│ ├── strava.py # Strava API client
│ ├── auth.py # OAuth management
│ └── storage.py # Local JSON storage
├── data/
│ ├── tokens.json # OAuth tokens (gitignored)
│ ├── goals.json # Your goals
│ └── races.json # Upcoming races
└── README.mdTroubleshooting
"No tokens found" error
Run the authentication flow:
python -m runcoach.authToken refresh fails
Delete data/tokens.json and re-authenticate.
Server not showing in Claude Desktop
Check the config file path is correct
Ensure Python can find the module (try
python -m runcoach.servermanually)Restart Claude Desktop completely
Security Notes
data/tokens.jsoncontains sensitive OAuth tokens and is gitignoredTokens auto-refresh when expired (Strava tokens expire after 6 hours)
Only you can access your Strava data through this local server
License
MIT License - see LICENSE file for details.
Contributing
Contributions welcome!
Acknowledgments
Built with Model Context Protocol (MCP)
Powered by Strava API
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
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).
Connect Intervals.icu to Claude and ChatGPT: read training, plan workouts. Training never stored.
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Related MCP Servers
- FlicenseAqualityDmaintenanceConnects Claude to your Strava account for analyzing training, predicting race times, and generating periodized training plans via natural language.13-
- AlicenseAqualityDmaintenanceConnects Claude to your Strava account so you can query your activities, stats, routes, and segments using natural language.2717 npm1MIT
- AlicenseAqualityDmaintenanceConnects Strava training data to Claude, enabling personalized coaching through analysis of training load, workout planning, gear maintenance, and power metrics.1070 PyPI1MIT
- FlicenseNot gradedqualityDmaintenanceIntegrates Strava data for marathon coaching and training analysis, enabling Claude Desktop to access recent runs, weekly mileage, and pace trends.1-