Back to Home
rousseya icon

strava-mcp-server

Verified Safe

by rousseya

Overview

Provides an MCP server to interact with Strava, offering activity retrieval, performance statistics, and activity management tools like renaming and e-bike detection.

Installation

Run Command
uv run python app.py

Environment Variables

  • STRAVA_CLIENT_ID
  • STRAVA_CLIENT_SECRET
  • STRAVA_ACCESS_TOKEN
  • STRAVA_REFRESH_TOKEN
  • SPACE_URL
  • SECRET_KEY
  • API_TOKEN

Security Notes

The `scripts/get_tokens.py` file hardcodes `CLIENT_ID` and `CLIENT_SECRET`. While these appear to be public example credentials often used in Strava API examples and not a leak of private keys, hardcoding credentials in source code is a significant security anti-pattern and should be avoided. The server's main application code (`app.py`, `strava_client.py`) correctly utilizes environment variables for all secrets. `TrustedHostMiddleware` in `app.py` is configured with `allowed_hosts=["*"]`, which is overly permissive for general production use but might be acceptable within a managed container environment like Hugging Face Spaces; for other deployments, it should be restricted. The optional `API_TOKEN` for bearer authentication to the MCP endpoint is a good security feature.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens350
Stars0
Forks0
Last Update2025-12-18

Tags

Strava APIActivity ManagementPerformance TrackingGeocodingMCP Server