r-

r-huijts/strava-mcp

πŸ“‡ ☁️ A Model Context Protocol (MCP) server that connects to Strava API, providing tools to access Strava data through LLMs

#Strava API#LLM integration#MCP server
Publisherr-huijts/strava-mcp
Submitted date4/19/2025

Strava MCP Server Overview

Title

Strava MCP Server

How to Use

The Strava MCP Server acts as a bridge between the Strava API and Large Language Models (LLMs) using the Model Context Protocol (MCP) standard. It enables AI assistants to fetch and interact with Strava data through natural language queries.

Setup Steps:

  1. Installation – Clone the repository, install dependencies, and build the project.
  2. Configure Claude Desktop – Update the configuration file to include the server path.
  3. Strava Authentication – Run the setup script to authenticate with the Strava API.
  4. Restart Claude – Ensure environment variables and configurations are properly loaded.

Key Features

  • πŸƒ Access recent activities, profile, and stats.
  • πŸ“Š Fetch detailed activity streams (power, heart rate, cadence, etc.).
  • πŸ—ΊοΈ Explore, view, star, and manage segments.
  • ⏱️ View detailed activity and segment effort information.
  • πŸ“ List and manage saved routes, with export options (GPX/TCX).
  • πŸ€– AI-friendly JSON responses via MCP.
  • πŸ”§ Uses Strava API V3 with automatic token refreshing.

Use Cases

Natural Language Interaction Examples:

  • Recent Activities & Profile:
    • "Show me my last 3 rides."
    • "What's my Strava username?"
  • Activity Data Analysis:
    • "Get the heart rate data from my morning run yesterday."
    • "What was my cadence profile for my weekend century ride?"
  • Segments & Routes:
    • "List the segments I starred near Boulder, Colorado."
    • "Export my 'Boulder Loop' route as a GPX file."

Advanced Prompt Example:

Generate a professional cycling coach analysis of your Strava activity, complete with data-driven insights, interactive visualizations, and motivational feedback.

Important Notes:

  • Follow the exact setup sequence to avoid issues with environment variables.
  • Optional ROUTE_EXPORT_PATH can be configured for saving route files.
  • Automatic token refreshing ensures continuous API access.

This server is ideal for athletes, coaches, and developers looking to integrate Strava data with AI-powered analysis and automation. πŸš΄β€β™‚οΈπŸƒβ€β™€οΈ

Visit More

View All