Skip to main content

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

  1. Go to https://www.strava.com/settings/api
  2. Fill in the form:
    • Application Name: anything (e.g. "My MCP")
    • Category: choose any
    • Website: http://localhost
    • Authorization Callback Domain: localhost
  3. After creating, note your Client ID and Client Secret

Step 2: Install and authenticate

Open a terminal and run:

uvx strava-mcp --auth

This will:

  1. Ask for your Client ID and Client Secret
  2. Open your browser to authorize with Strava
  3. 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-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-mcp --auth to set up authentication.

"Token expired" errors Tokens are refreshed automatically. If it persists, run uvx strava-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

strava_training_mcp-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strava_training_mcp-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file strava_training_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: strava_training_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for strava_training_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 39364753aed319d31240bcaa66d9d23fd601a9206ea36d58fd2bc53e77dadb65
MD5 83b6a36078a0bda043c2ed9a3b72443d
BLAKE2b-256 5ec3292663a4b16387ad63fc3762542775cf07f7914d0a2f14b407c4d11d6892

See more details on using hashes here.

File details

Details for the file strava_training_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for strava_training_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 693329ae90e480c8d9c60634ddfa38abdca85fd5a5bc897469c31d611ebb760f
MD5 8afb4b634acabcb5c46a2dab61969539
BLAKE2b-256 d5ad154489a7d63839d1ce2a4b973188d38533a4ad060fb631c2df663ec92a80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page