MCP server for Strava — training load analysis, weekly plans, and activity insights
Project description
Strava MCP
An MCP server that connects Claude to your Strava data. Get training load analysis, weekly plans, and activity insights — all through conversation.
What it does
- Recent activities — distances, times, heart rates
- Training load analysis — ATL, CTL, TSB metrics with advice (rest or train?)
- Weekly training plan — recommended hours and workout types based on your current form
- Weekly statistics — volume trends over time
Installation
Step 1: Create a Strava API application
- Go to https://www.strava.com/settings/api
- Fill in the form:
- Application Name: anything (e.g. "My MCP")
- Category: choose any
- Website:
http://localhost - Authorization Callback Domain:
localhost
- After creating, note your Client ID and Client Secret
Step 2: Install and authenticate
Open a terminal and run:
uvx strava-training-mcp --auth
This will:
- Ask for your Client ID and Client Secret
- Open your browser to authorize with Strava
- Save your tokens to
~/.strava-mcp/config.json
Step 3: Add to Claude Desktop
Open Claude Desktop settings → Developer → Edit Config, and add:
{
"mcpServers": {
"strava": {
"command": "uvx",
"args": ["strava-training-mcp"]
}
}
}
Restart Claude Desktop. You can now ask Claude about your Strava activities!
Example prompts
- "What were my last 5 rides?"
- "How is my training load looking?"
- "Give me a training plan for this week"
- "Show my weekly stats for the past 8 weeks"
Troubleshooting
"Missing credentials" error
Run uvx strava-training-mcp --auth to set up authentication.
"Token expired" errors
Tokens are refreshed automatically. If it persists, run uvx strava-training-mcp --auth again.
Can't find config file
Credentials are stored in ~/.strava-mcp/config.json.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file strava_training_mcp-0.2.0.tar.gz.
File metadata
- Download URL: strava_training_mcp-0.2.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
210e736f5db680d4efd47e99157529d60de14b6a29deff8f1c5801c35e69c13a
|
|
| MD5 |
3686193fda0945394b9b6e02bce3433f
|
|
| BLAKE2b-256 |
01ff4149c54f1ae28a0d3a88a5f340724b61ce7cca6260407010f94512f6aabb
|
File details
Details for the file strava_training_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: strava_training_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e49b13c35e2ddf888febacb601e0e1b87b54f0005eb7712c951fe361e64d3d22
|
|
| MD5 |
c09f6b4075ce96f58cb8541666f2e525
|
|
| BLAKE2b-256 |
cc94b36703d7e194a732694433b00ac97130e1f90b37b6e49bfb2efb2494020c
|