Labsco
theagilepadawan logo

Strava MCP

โ˜… 2

from theagilepadawan

Integrate your Strava activity data with AI models using a local SQLite database.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

Create Strava MCP

Automated setup tool for integrating Strava data with Claude Desktop via Model Context Protocol (MCP).

What This Tool Does

  1. Downloads the Strava MCP: Clones the Python repository to your local machine
  2. Sets up Python Environment: Creates a virtual environment and installs dependencies
  3. Guides Strava API Setup: Walks you through creating a Strava API application
  4. Handles Authentication: Manages the OAuth flow to get your tokens
  5. Data Sync: Downloads your initial Strava activity data to a local SQLite database
  6. Claude Integration: Automatically updates your Claude Desktop config file
  7. Optional Restart: Can restart Claude Desktop to activate the MCP immediately
  8. Ready to Use: After setup, Claude will have access to your Strava data

Maintenance Commands

# Update your Strava data
cd /path/to/strava-mcp
source venv/bin/activate  # On Windows: venv\Scripts\activate
python strava-sync.py

# Check MCP status
# (View Claude Desktop logs)

Token Security

  • Your App Credentials: Keep Client ID and Client Secret secure but they can be shared with users
  • User Tokens: Each user's Access Token and Refresh Token are personal and should stay private
  • Local Storage: All tokens are stored locally on the user's machine, never sent to you

Alternative to pipx

If users don't want to install pipx, they can also use:

# Direct pip install and run
pip install create-strava-mcp
python -c "import setup_strava_mcp; setup_strava_mcp.main()"

# Or install and use entry point
pip install create-strava-mcp
create-strava-mcp

Support

If you encounter issues:

  1. Check the troubleshooting section above
  2. Check Claude Desktop logs for MCP errors
  3. Re-run python strava-sync.py to refresh data
  4. Create an issue on the GitHub repository

Contributing

Contributions welcome! Please see the main repository for guidelines.

License

MIT License - see LICENSE file for details.