
ctvidic/strava-mcp-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Strava API에 액세스 할 수있는 Model Context Protocol (MCP) 서버. 이 서버는 활동, 운동선수 정보, 그리고 더 많은 것을 포함하여 Strava 자료와 상호 작용하는 언어 모형을 가능하게 합니다.
개요
Strava API에 액세스 할 수있는 Model Context Protocol (MCP) 서버. 이 서버는 활동, 운동선수 정보, 그리고 더 많은 것을 포함하여 Strava 자료와 상호 작용하는 언어 모형을 가능하게 합니다. - ♂️ Activity tracking and analysis - A Athlete 통계 - 過去️ Route 시각화 - ö Achievement tracking - Result Social features (kudos, 코멘트) - Python 3.12+ - Strava API 자격 증명 - pip (Python 패키지 설치 프로그램) 1. Strava API 자격 증명을 가진 config/.env 파일을 만드십시오: 2. Strava API 자격 증명을 얻기 위해 : - https://www.strava.com/settings/api로 이동 - 새로운 응용 프로그램을 만들기 - 클라이언트 ID 및 클라이언트 비밀을 참고 - OAuth 2.0 흐름을 따르십시오. 연결된 경우, 다양한 방법으로 Claude를 통해 Strava 데이터와 상호 작용할 수 있습니다. - "내 최근의 활동을 보여" - "내 마지막 실행에 대한 세부 정보를 얻으십시오" - "내가 이번 달에 가장 긴 타기는 무엇입니까?
개요(AI 번역)
Strava API에 액세스 할 수있는 Model Context Protocol (MCP) 서버. 이 서버는 활동, 운동선수 정보, 그리고 더 많은 것을 포함하여 Strava 자료와 상호 작용하는 언어 모형을 가능하게 합니다.
특징
- ♂️ 활동 추적 및 분석
- A Athlete 통계
- ソウル 시각화
- Ö 업적 추적
- 사회 기능 (kudos, 코멘트)
필수품
- 파이썬 3.12+
- Strava API 자격
- pip (Python 패키지 설치자)
설치
-
저장소를 복제:
-
가상 환경을 만듭니다:
-
의존성 설치:
구성
-
Strava API 자격 증명을 가진 [T0]] 파일을 만드십시오:
-
Strava API 자격 증명을 얻기 위하여:
- https://www.strava.com/settings/api로 이동
- 새 신청서 작성
- Client ID 및 Client 비밀 유지
- OAuth 2.0 흐름을 따라 새로 고침 토큰을 얻기
사용법
Claude 사용
연결된 경우, 다양한 방법으로 Claude를 통해 Strava 데이터와 상호 작용할 수 있습니다.
활동 쿼리
- “내 최근의 활동보기”
- “내 마지막 실행에 대한 세부 정보 얻기”
- “이 달에 가장 긴 타고 있었습니까?”
- “개인 레코드를 설정하는 저의 활동을 표시합니다”
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
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)
Prerequisites
- Python 3.12+
- Strava API credentials
- pip (Python package installer)
Installation
- Clone the repository:
git clone https://github.com/yourusername/strava_mcp.git
cd strava_mcp
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
Configuration
- Create a
config/.envfile with your Strava API credentials:
STRAVA_CLIENT_ID=your_client_id
STRAVA_CLIENT_SECRET=your_client_secret
STRAVA_REFRESH_TOKEN=your_refresh_token
- To obtain Strava API credentials:
- Go to https://www.strava.com/settings/api
- Create a new application
- Note down the Client ID and Client Secret
- Follow the OAuth 2.0 flow to get your refresh token
Usage
Using with Claude
Once connected, you can interact with your Strava data through Claude in various ways:
Activity Queries
- “Show me my recent activities”
- “Get details about my last run”
- “What was my longest ride this month?”
- “Show me activities where I set personal records”
- “Display the route map for my latest activity”
Performance Analysis
- “What’s my average running pace this year?”
- “Compare my cycling performance between last month and this month”
- “Show me my heart rate zones from yesterday’s workout”
- “What’s my total elevation gain for all activities?”
- “Calculate my weekly mileage for running”
Social Interactions
- “Who gave kudos on my latest activity?”
- “Show me comments on my marathon run”
- “List all my club activities”
- “Find activities I did with friends”
Achievement Tracking
- “List all my segment achievements”
- “Show my personal records on local segments”
- “What achievements did I earn this week?”
- “Display my progress on yearly goals”
Data Available Through Claude
-
Activity Details:
- Distance, duration, pace
- Route maps and elevation profiles
- Heart rate, power, and cadence data
- Splits and lap information
- Weather conditions during activity
-
Athlete Statistics:
- Year-to-date and all-time totals
- Personal records and achievements
- Training load and fitness trends
- Equipment usage and maintenance
-
Social Data:
- Kudos and comments
- Club activities and leaderboards
- Friend activities and challenges
- Segment efforts and rankings
-
Route Information:
- Detailed maps with elevation data
- Segment analysis
- Popular routes and segments
- Route planning and analysis
As an MCP Server
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"Strava": {
"command": "python",
"args": ["src/strava_server.py"],
"cwd": "/path/to/strava_mcp",
"env": {
"STRAVA_CLIENT_ID": "your_client_id",
"STRAVA_CLIENT_SECRET": "your_client_secret",
"STRAVA_REFRESH_TOKEN": "your_refresh_token"
}
}
}
}