strava-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Strava MCP Server
An open-source Model Context Protocol (MCP) server that connects AI agents to your Strava data.
Features
Headless Adapter: No UI, just pure MCP tools and resources.
Privacy First: Tokens stored locally (
~/.config/strava-mcp/), never sent to 3rd parties.Resilient: Built-in rate limiting (handles 429s) and SQLite caching.
Educational: Clean, readable Python 3.11+ code with type hints.
Related MCP server: Strava MCP Server
Prerequisites
Python 3.11 or higher
Strava Account (for API credentials)
Quick Start (Dry Run)
You can test the server immediately without Strava credentials using the mock data mode.
# Install dependencies
python3 -m pip install -e .
# Run the smoke test (verifies MCP protocol via stdio)
python3 scripts/smoke_test.pySetup (Real Data)
1. Get Strava Credentials
Go to Strava API Settings.
Create an application.
Callback Domain:
localhost
2. Authorization
Run the local helper script to perform the OAuth handshake. This will open your browser.
export STRAVA_CLIENT_ID=your_client_id
export STRAVA_CLIENT_SECRET=your_client_secret
python3 scripts/strava_auth.pyTokens are saved to ~/.config/strava-mcp/credentials.json.
3. Usage with Claude Code
Configure claude to use this server.
File: ~/.config/claude/config.json (or equivalent MCP manager config)
{
"mcpServers": {
"strava": {
"command": "python3",
"args": ["-m", "strava_mcp.server"],
"env": {
"PYTHONPATH": "/path/to/strava-mcp/src"
}
}
}
}Or run directly if installed in your environment:
{
"mcpServers": {
"strava": {
"command": "uv",
"args": ["run", "python", "-m", "strava_mcp.server"]
}
}
}Tools Available
Tool | Description |
| Returns your profile stats. |
| Fetch recent activities (supports date filtering). |
| Detailed view of a single activity. |
| Aggregated stats (distance, elevation) for a given week. |
Resources
strava://athlete/profile: Direct read of profile.strava://activities/recent: Most recent 10 activities.
Architecture
Tech Stack: Python, FastMCP, Httpx, SQLite, Pydantic.
Caching: GET requests are cached in SQLite with a TTL (default 5 mins for lists).
Rate Limiting: Respects
X-RateLimit-*headers to prevent API bans.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Strava MCP tools for AI: athletes, activities, segments, clubs, routes. Powered by HAPI MCP server.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Pace is a remote MCP server that exposes wearable and fitness data to Claude via the Model Context Protocol. It connects to Garmin, Oura, Whoop, Polar, Fitbit and 20+ devices and provides 15 tools for querying sleep, activity, recovery, and training data. Hosted on Google Cloud Run, OAuth 2.1 authentication, Streamable HTTP transport. Instructions: First you need to create an account at: https://pacetraining.co and connect your wearables. After that you can connect the remote Server via Custom Connector in Claude and OAuth 2.1 Flow startet.
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Related MCP Servers
- 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.8132 npmMIT
- FlicenseAqualityDmaintenanceEnables AI agents to interact with the Strava API to retrieve athlete statistics and activity data. It provides tools for listing recent activities and fetching detailed information for specific workout sessions.7-
- AlicenseNot gradedqualityCmaintenanceMCP server for Strava integration, enabling LLMs to query activities, athlete stats, segments, routes, and perform training analysis.9MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that provides AI agents with secure, read-only access to personal Strava fitness data, including activities, performance stats, and more through 21 MCP tools.MIT