Strava Coach MCP Server

Strava Coach MCP Server

Enables AI assistants to access Strava running data, route planning, and weather information for intelligent running coaching.

Category
Visit Server

README

Strava Coach MCP Server

šŸ† MISTRAL MCP HACKATHON WINNER šŸ†

@Loucienne </n> @leotrois </n> @gregoire-rouviere </n> @Ulysse6307 </n> @colinfrisch </n>

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_key

Getting API Keys (all for free)

Strava API Token:

  1. Go to Strava API Settings
  2. Create an application if you haven't already
  3. Use the "Create & View a Refresh Token" tool or follow Strava's OAuth flow
  4. Copy the access token

OpenWeatherMap API Key:

  1. Sign up at OpenWeatherMap
  2. Subscribe to the 5 Day / 3 Hour Forecast API (free tier available)
  3. Copy your API key

OpenRouteService API Key:

  1. Register at OpenRouteService
  2. Get your free API key from the dashboard

Installation

  1. Clone and setup:
git clone <your-repo-url>
cd chathletique-mcp
  1. Install Python dependencies:
# Install project dependencies
pip install -e .

# Install development dependencies (for contributing)
pip install -e ".[dev]"
  1. Configure environment:
# Create .env file with your API keys
cp .env.example .env
# Edit .env with your actual API keys
  1. Set 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-files

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:

  1. Code formatting: Automatic code formatting with Ruff
  2. Import sorting: Organize imports consistently
  3. Linting: Check for bugs, security issues, and style problems
  4. Type checking: Verify type annotations with MyPy
  5. Docstring validation: Enforce Google-style docstrings
  6. Security scanning: Detect potential security vulnerabilities
  7. 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured