Labsco
ctvidic logo

Strava MCP Server

β˜… 6

from ctvidic

Access the Strava API to interact with activities, athlete information, and other Strava data.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

Strava MCP Server

A Model Context Protocol (MCP) server that provides access to the Strava API. This server enables language models to interact with Strava data, including activities, athlete information, and more.

Features

  • πŸƒβ€β™‚οΈ Activity tracking and analysis
  • πŸ“Š Athlete statistics
  • πŸ—ΊοΈ Route visualization
  • πŸ† Achievement tracking
  • 🀝 Social features (kudos, comments)

Development

Project Structure

strava_mcp/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ strava_server.py      # MCP server implementation
β”‚   β”œβ”€β”€ strava_http_server.py # HTTP API server
β”‚   β”œβ”€β”€ map_utils.py          # Map visualization utilities
β”‚   └── templates.py          # HTML templates
β”œβ”€β”€ config/
β”‚   └── .env                  # Environment variables (not in git)
β”œβ”€β”€ requirements.txt          # Python dependencies
└── run_server.sh            # Server startup script

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Security

  • Never commit .env files or API credentials
  • The .gitignore file is configured to prevent sensitive data from being committed
  • Use environment variables for all sensitive configuration