
Strava Mcp
@bronteee
Strava Mcp について
An MCP (Model Context Protocol) server that connects Claude to your Strava data. Query your activities, stats, and athlete profile directly from Claude Desktop or any MCP-compatible client.
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"strava": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/bronteee/strava-mcp.git",
"strava-mcp"
],
"env": {
"STRAVA_CLIENT_ID": "your_client_id",
"STRAVA_CLIENT_SECRET": "your_client_secret"
}
}
}
}ツール
8Check current Strava authentication status. Returns: Authentication status including whether tokens exist and expiry info.
Get the Strava authorization URL to start OAuth flow. The OAuth callback server is running automatically at http://127.0.0.1:5050. After authorization, tokens will be saved automatically to the system keychain. Args: redirect_uri: The URL Strava should redirect to after authorization. Default is http://127.0.0.1:5050/strava-oauth Returns: The authorization URL and instructions.
Exchange authorization code for access tokens. Call this after the user has authorized the app and you have the code from the redirect URL. Args: code: The authorization code from Strava's OAuth redirect. Returns: Success status and athlete information.
Remove stored Strava tokens from system keychain (logout). Returns: Confirmation message.
Get recent Strava activities for the authenticated athlete. Args: after: Start date in YYYY-MM-DD format (e.g. '2025-12-01'). Only activities after this date. before: End date in YYYY-MM-DD format. Only activities before this date. limit: Maximum number of activities to return (default 10). Returns: List of activity summaries with key details.
Get profile information for the authenticated Strava athlete. Returns: Athlete profile with name, stats, and other details.
Get statistics for the authenticated athlete or a specific athlete. Args: athlete_id: The Strava ID of the athlete. If None, returns stats for the authenticated athlete. Returns: Athlete statistics including recent (last 4 weeks), year-to-date, and all-time totals.
Get detailed information about a specific Strava activity. Args: activity_id: The unique ID of the activity. Returns: Detailed activity information including description, gear, and splits.
概要
What is Strava Mcp?
Strava Mcp is an MCP server that connects Claude Desktop (or any MCP‑compatible client) to your Strava data. It lets you query your activities, stats, and athlete profile using natural language, and handles OAuth authentication with automatic token refresh.
How to use Strava Mcp?
Install the server with pip or uv from GitHub, then configure Claude Desktop with your Strava client ID and secret in environment variables. After setup, ask Claude to “Connect to my Strava account,” follow the authorization URL, and you can then ask about your activities, stats, or profile. Tokens are stored in memory only and need to be re‑authorized each session.
Key features of Strava Mcp
- OAuth authentication with automatic token refresh
- Retrieve recent activities with optional date filters
- Get detailed information for a specific activity
- Access your athlete profile and statistics
- Tools for checking auth status and logging out
- Secure local OAuth flow – no external servers
Use cases of Strava Mcp
- Ask Claude “Show me my last 5 Strava activities” to quickly review recent workouts
- Query running, cycling, or swimming stats for the year
- Get a detailed breakdown of a single ride or run
- Check your athlete profile without opening the Strava app
FAQ from Strava Mcp
Do I need a Strava API application?
Yes. You must create a Strava API app at https://www.strava.com/settings/api and set the callback domain to 127.0.0.1. Your client ID and secret are then passed as environment variables.
How do I authenticate?
Tell Claude “Connect to my Strava account.” Claude will provide an authorization URL. Open it in your browser, approve the app, and you are connected for the current session.
Where are authentication tokens stored?
Tokens are stored in memory only. They are cleared when the server stops, so you must re‑authenticate each time Claude Desktop restarts.
What tools does Strava Mcp expose?
It provides get_auth_status, get_auth_url, authenticate, logout, get_activities, get_activity_details, get_athlete, and get_athlete_stats.
Is my Strava data ever sent to a third party?
No. The OAuth flow uses a localhost callback, and all API calls are made directly from your machine to Strava. Credentials and tokens never leave your environment.
「その他」の他のコンテンツ
ICSS
chokcoco不止于 CSS
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
コメント