Strava Coach MCP Server
Provides tools for accessing and analyzing Strava running activity data, enabling AI assistants to retrieve and interpret running performance metrics.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Strava Coach MCP Serveranalyze my last 5 runs for pace trends"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Strava Coach MCP Server
š MISTRAL MCP HACKATHON WINNER š
@Loucienne @leotrois @gregoire-rouviere @Ulysse6307 @colinfrisch
A Model Context Protocol (MCP) server that provides AI assistants with access to Strava running data, route planning, and weather information. This server enables intelligent running coaching by combining Strava activity analysis with real-time weather data and route generation capabilities.
Setup
Prerequisites
Python 3.13+
Active Strava account with API access
OpenWeatherMap API key
OpenRouteService API key
Environment Variables
Create a .env file in the project root with the following variables:
STRAVA_ACCESS_TOKEN=your_strava_access_token
WEATHER_API_KEY=your_openweathermap_api_key
ORS_KEY=your_openrouteservice_api_keyGetting API Keys (all for free)
Strava API Token:
Go to Strava API Settings
Create an application if you haven't already
Use the "Create & View a Refresh Token" tool or follow Strava's OAuth flow
Copy the access token
OpenWeatherMap API Key:
Sign up at OpenWeatherMap
Subscribe to the 5 Day / 3 Hour Forecast API (free tier available)
Copy your API key
OpenRouteService API Key:
Register at OpenRouteService
Get your free API key from the dashboard
Installation
Clone and setup:
git clone <your-repo-url>
cd chathletique-mcpInstall Python dependencies:
# Install project dependencies
pip install -e .
# Install development dependencies (for contributing)
pip install -e ".[dev]"Configure environment:
# Create .env file with your API keys
cp .env.example .env
# Edit .env with your actual API keysSet up code quality tools (for contributors):
# Install pre-commit hooks for automatic code quality checks
pre-commit install
# Optional: Run pre-commit on all files to check everything
pre-commit run --all-filesRelated MCP server: Strava MCP Server
Architecture
The server is built using:
FastMCP: For MCP protocol implementation
Stravalib: For Strava API integration
OpenRouteService: For route generation
OpenWeatherMap API: For weather data
Matplotlib: For data visualization
Project Structure
chathletique-mcp/
āāā src/strava_mcp/
ā āāā __init__.py # Package initialization
ā āāā main.py # MCP server entry point
ā āāā strava_tools.py # Strava API integration tools
ā āāā weather_tools.py # Weather prediction tools
ā āāā mcp_utils.py # MCP server configuration
āāā tests/ # Test suite
āāā .pre-commit-config.yaml # Code quality configuration
āāā pyproject.toml # Project configuration and dependencies
āāā uv.lock # Lock file for reproducible installs
āāā README.md # This fileš ļø Development & Code Quality
This project uses modern Python development tools for maintaining high code quality:
Code Quality Tools
Ruff: Ultra-fast Python linter and formatter with comprehensive rules
MyPy: Static type checking for better code reliability
Pre-commit: Automatic code quality checks before each commit
Pytest: Testing framework with coverage reporting
Black: Code formatting (integrated with Ruff)
Pre-commit Hooks
The project includes automatic quality checks that run before each commit:
Code formatting: Automatic code formatting with Ruff
Import sorting: Organize imports consistently
Linting: Check for bugs, security issues, and style problems
Type checking: Verify type annotations with MyPy
Docstring validation: Enforce Google-style docstrings
Security scanning: Detect potential security vulnerabilities
Spell checking: Catch typos in code and documentation
Use Cases
AI Running Coach: Integrate with Le Chat or other AI assistants for personalized running advice
Training Analysis: Analyze performance trends and provide insights
Route Discovery: Generate new running routes based on preferences and weather
Weather-aware Planning: Plan runs based on upcoming weather conditions
This server cannot be deployed
Maintenance
Related MCP Connectors
- Coach MCPOAuthai.iamcoach
Your endurance training data in your AI assistant: activities, recovery, plan, workout edits.
AI running coach. Reads Strava, Suunto, Polar, Apple Health or Health Connect. Adapts to your feel.
Your AI writes training plans that arrive as structured workouts on iPhone and Apple Watch.
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with Strava's API to access and manage activities, athlete data, routes, segments, clubs, and gear through natural language.224 npmMIT
- AlicenseBqualityDmaintenanceIntegrates with the Strava API to allow AI assistants to access fitness data including athlete profiles, activity history, and segment statistics. It enables users to query detailed performance metrics and explore geographic segment data through natural language commands.843 npmMIT
- AlicenseBqualityDmaintenanceEnables users to interact with their Strava data through natural language to analyze workouts, track fitness progress, and explore routes. It supports retrieving detailed activity stats, heart rate data, and segment insights directly within AI assistants.26338 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to directly access and analyze Strava activity data, including runs, rides, and swims, through natural language queries.45 npmMIT