Sponsored by Deepsite.site

Strava Mcp

Created By
bronteeea month ago
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.
Content

Strava MCP Server

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.

Features

  • OAuth Authentication: Secure authentication with automatic token refresh
  • Activity Data: Get recent activities, detailed activity info, and stats
  • Athlete Profile: Access your Strava profile and statistics

Installation

Prerequisites

  1. Python 3.10+ installed
  2. Strava API Application: Create one at https://www.strava.com/settings/api
    • Set the "Authorization Callback Domain" to 127.0.0.1

Install from GitHub

pip install git+https://github.com/bronteee/strava-mcp.git

Or with uv:

uv pip install git+https://github.com/bronteee/strava-mcp.git

Configure Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "strava": {
      "command": "strava-mcp",
      "env": {
        "STRAVA_CLIENT_ID": "your_client_id",
        "STRAVA_CLIENT_SECRET": "your_client_secret"
      }
    }
  }
}

If installed with uv, use:

{
  "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"
      }
    }
  }
}

Usage

Authentication

  1. Ask Claude: "Connect to my Strava account"
  2. Claude will provide an authorization URL
  3. Open the URL in your browser and authorize the app
  4. You're connected for the current session

Note: Tokens are stored in memory only. You'll need to re-authenticate each time Claude Desktop restarts.

Available Tools

ToolDescription
get_auth_statusCheck if you're authenticated
get_auth_urlGet the Strava authorization URL
authenticateExchange auth code for tokens (usually automatic)
logoutRemove stored tokens
get_activitiesGet recent activities with optional date filters
get_activity_detailsGet detailed info for a specific activity
get_athleteGet your athlete profile
get_athlete_statsGet your running/cycling/swimming stats

Example Prompts

  • "Show me my last 5 Strava activities"
  • "What were my running stats this year?"
  • "Get details for my most recent ride"
  • "How many miles did I run last month?"

Development

Setup

git clone https://github.com/bronteee/strava-mcp.git
cd strava-mcp
uv sync --dev

Run Tests

uv run pytest

Type Check

uv run ty check src

Run the Server Manually

# Set environment variables
export STRAVA_CLIENT_ID=your_client_id
export STRAVA_CLIENT_SECRET=your_client_secret

# Run the server
strava-mcp

Security

  • Tokens are stored in memory only and cleared when the server stops
  • Client credentials are passed via environment variables, never stored in files
  • OAuth flow uses localhost callback - no external servers involved

License

MIT

Server Config

{
  "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"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Serper MCP ServerA Serper MCP Server
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
ChatWiseThe second fastest AI chatbot™
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Tavily Mcp
Playwright McpPlaywright MCP server
Amap Maps高德地图官方 MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
DeepChatYour AI Partner on Desktop
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.