Strava MCP Server
Strava MCP サーバー
Strava APIへのアクセスを提供するモデルコンテキストプロトコル(MCP)サーバー。言語モデルがStrava APIからアスリートのアクティビティデータをクエリできるようにします。
利用可能なツール
サーバーは次のツールを公開します。
アクティビティクエリ
get_activities(limit: int = 10): 認証されたアスリートの最近のアクティビティを取得するget_activities_by_date_range(start_date: str, end_date: str, limit: int = 30): 特定の日付範囲内のアクティビティを取得しますget_activity_by_id(activity_id: int): 特定のアクティビティに関する詳細情報を取得するget_recent_activities(days: int = 7, limit: int = 10): 過去X日間のアクティビティを取得する
日付は ISO 形式 ( YYYY-MM-DD ) で指定する必要があります。
Related MCP server: Strava MCP Server
アクティビティデータ形式
サーバーは、一貫したフィールド名と単位を持つアクティビティ データを返します。
分野 | 説明 | ユニット |
| アクティビティ名 | - |
| スポーツの種類 | - |
| 開始日時 | ISO 8601 |
| 距離 | メートル |
| 合計経過時間 | 秒 |
| 移動時間 | 秒 |
| 平均速度 | メートル毎秒 |
| 最高速度 | メートル毎秒 |
| 総標高差 | メートル |
| 最高標高 | メートル |
| 最低標高 | メートル |
| 消費カロリー | キロカロリー |
| 開始座標 | [緯度、経度] |
| 終了座標 | [緯度、経度] |
認証
このサーバーを使用するには、Strava APIで認証する必要があります。以下の手順に従ってください。
Strava API アプリケーションを作成します。
Strava API設定に移動
クライアントIDとクライアントシークレットを取得するためのアプリケーションを作成する
認証コールバックドメインを
localhostに設定する
リフレッシュトークンを取得します:
付属の
get_strava_token.pyスクリプトを使用します: GXP1指示に従ってアプリケーションを承認してください
スクリプトはトークンを
.envファイルに保存します
環境変数を設定する: サーバーには次の環境変数が必要です。
STRAVA_CLIENT_ID: Strava APIクライアントIDSTRAVA_CLIENT_SECRET: Strava APIクライアントシークレットSTRAVA_REFRESH_TOKEN: Strava API リフレッシュトークン
使用法
デスクトップ版クロード
claude_desktop_config.json (macOS では~/Library/Application\ Support/Claude/claude_desktop_config.json 、Windows では%APPDATA%/Claude/claude_desktop_config.jsonにあります) を更新して、以下を追加します。
{
"mcpServers": {
"strava": {
"command": "uvx",
"args": [
"strava-mcp-server"
],
"env": {
"STRAVA_CLIENT_ID": "YOUR_CLIENT_ID",
"STRAVA_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
"STRAVA_REFRESH_TOKEN": "YOUR_REFRESH_TOKEN"
}
}
}
}クロード・ウェブ
Claude Web の場合、サーバーをローカルで実行し、MCP 拡張機能を使用して接続できます。
クエリの例
接続すると、次のような質問をクロードに尋ねることができます。
「私の最近の活動は何ですか?」
「先週のアクティビティを見せてください」
「過去 1 か月間での最長ランニング距離はどれくらいでしたか?」
「最近のサイクリングアクティビティの詳細を取得する」
エラー処理
サーバーは、一般的な問題に関して人間が判読できるエラー メッセージを提供します。
無効な日付形式
API認証エラー
ネットワーク接続の問題
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceA Model Context Protocol server that provides language models with access to personal Whoop fitness data, allowing queries for cycles, recovery, strain, and workout information from the Whoop API.26
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables language models to interact with Strava data, including activities, athlete statistics, routes, achievements, and social features.6MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables users to access Strava fitness data, including user activities, activity details, segments, and leaderboards through a structured API interface.34MIT
- AlicenseAqualityFmaintenanceA Model Context Protocol (MCP) server for Intervals.icu integration. Access your training data, wellness metrics, and performance analysis through Claude and other LLMs.4835MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
MCP (Model Context Protocol) server for Appwrite
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tomekkorbak/strava-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server