strava-mcp
Connects AI agents to Strava data, enabling profile retrieval, activity listing, detailed views, and weekly summaries via MCP tools.
README
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.
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.py
Setup (Real Data)
1. Get Strava Credentials
- Go to Strava API Settings.
- Create an application.
- Callback Domain:
localhost
- Callback Domain:
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.py
Tokens 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 |
|---|---|
get_athlete_profile |
Returns your profile stats. |
list_activities |
Fetch recent activities (supports date filtering). |
get_activity |
Detailed view of a single activity. |
weekly_summary |
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.
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.