remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Allows analysis of Strava workouts and provides training recommendations based on Strava data using the Model Context Protocol SDK
Strava API integration with Model Context Protocol (MCP) SDK
Integration for training analysis and recommendations based on Strava data using the Model Context Protocol SDK.
🚀 Features
- Analysis of workouts from Strava
- Training Recommendations
- Automatic token update
- Rate limiting for API requests
📋 Requirements
- Python 3.10+
- Claude Desktop
- Strava account
- uv (recommended)
⚙️ Installation
Copy
Installing MCP SDK
Copy
🔧 Setting
Setting up Strava API
- Go to the API settings page
- Create an application:
- Application Name: MCP Strava Integration
- Category: Training Analysis
- Website: http://localhost
- Authorization Callback Domain: localhost
Setting up the environment
- Create a file with environment variables:Copy
- Get access tokens:Copy
- Check the setting:Copy
📚 API and examples
Resources and Tools
Type | Name | Description |
---|---|---|
Resource | strava://activities | List of activities |
Resource | strava://activities/{id} | Activity details |
Resource | strava://athlete/zones | Training zones |
Resource | strava://athlete/clubs | Athlete's clubs |
Resource | strava://gear/{gear_id} | Equipment Information |
Tool | analyze_activity(activity_id) | Training Analysis |
Tool | analyze_training_load(activities) | Load analysis |
Tool | get_activity_recommendations() | Recommendations |
Examples of use
Copy
🛠 Development
CI/CD and Security
Checks in GitHub Actions
Type | Tool | Description |
---|---|---|
Linting | ruff | Code formatting and analysis |
Tests | pytest | Unit and integration tests |
Coating | pytest-cov | Code Coverage Report |
Security and Secrets
- Token protection:
.env
to.gitignore
- GitHub Secrets for CI/CD
- Rate limiting: 100 requests/15 min
- Setting up secrets:Copy
Contributing
- Fork the repository
- Install dependencies:
uv pip install -e ".[dev]"
- Create a branch:
git checkout -b feature/name
- Check the changes:Copy
- Create a Pull Request
📫 Support
- GitHub Issues: create issue
- Telegram: @greg_kisel
📄 License
This server cannot be installed
Integration of Strava API with Model Context Protocol SDK