MCP Sports Coach
Enables querying and analyzing sports activities from Strava and Garmin Connect, including sleep and recovery data.
README
MCP Sports Coach — Strava & Garmin
Serveur MCP (Model Context Protocol) qui connecte Claude aux comptes Strava et Garmin Connect pour analyser les activités sportives, le sommeil, la récupération et bien plus.
Outils disponibles
Strava
| Outil | Description |
|---|---|
authenticate |
Connexion OAuth Strava (à faire une seule fois) |
get_athlete |
Profil, ville, followers, FTP, poids |
get_recent_activities |
Dernières N activités (distance, durée, FC, D+) |
get_weekly_summary |
Volume, temps total et types d'activités de la semaine |
get_activity_detail |
Détail complet d'une activité par ID |
Garmin Connect
| Outil | Description |
|---|---|
garmin_status |
Vérifie si le compte Garmin est connecté |
get_garmin_activities |
Dernières N activités Garmin |
get_garmin_sleep |
Données de sommeil (total, profond, REM, score) |
get_garmin_body_battery |
Body Battery sur N jours |
get_garmin_hrv |
Variabilité cardiaque (HRV) sur N jours |
Installation
Prérequis
- Python 3.12+
- uv (gestionnaire de paquets)
- Un compte Strava avec une application enregistrée sur strava.com/settings/api
1. Cloner et installer
git clone https://github.com/Naten79/mcp-strava.git
cd mcp-strava
uv sync
2. Configurer les credentials Strava
Copier .env.example en .env et renseigner les credentials Strava :
cp .env.example .env
STRAVA_CLIENT_ID=client_id
STRAVA_CLIENT_SECRET=client_secret
Ces valeurs sont disponibles sur strava.com/settings/api. Régler l'Authorization Callback Domain sur
localhost.
3. (Optionnel) Authentifier Garmin
Lancer ce script une seule fois en terminal pour sauvegarder le token Garmin localement :
uv run garmin_login.py
Les identifiants Garmin ne transitent jamais par Claude.
4. Configurer Claude Desktop
Ajouter la configuration suivante dans claude_desktop_config.json :
{
"mcpServers": {
"sports-coach": {
"command": "uv",
"args": ["run", "python", "strava_mcp.py"],
"cwd": "/chemin/vers/mcp-strava"
}
}
}
5. Authentifier Strava dans Claude
Au premier lancement, utiliser l'outil authenticate dans Claude. Une fenêtre Strava s'ouvre pour autoriser l'accès, puis le token est sauvegardé localement.
Sécurité
- Le fichier
.env(credentials API) n'est jamais commité - Les tokens OAuth (
strava_token.json,garth_tokens/) restent en local uniquement - Les identifiants Garmin ne sont jamais envoyés à Claude, seulement au serveur Garmin
Stack
- MCP Python SDK — FastMCP
- httpx — requêtes HTTP async
- garminconnect — API Garmin non-officielle
- python-dotenv — gestion des variables d'environnement
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.