Strava MCP Server
Strava MCP サーバー
Strava API と対話するためのモデル コンテキスト プロトコル (MCP) サーバー。
ユーザーガイド
インストール
uvxを使用すると、Strava MCP を簡単にインストールできます。
uvx strava-mcpStrava認証情報の設定
Strava API アプリケーションを作成する:
https://www.strava.com/settings/apiにアクセスしてください。
クライアントIDとクライアントシークレットを取得するには、新しいアプリケーションを作成します。
「認証コールバックドメイン」には
localhostと入力します。
資格情報を設定する: 資格情報ファイルを作成します (例:
~/.ssh/strava.sh):export STRAVA_CLIENT_ID=your_client_id export STRAVA_CLIENT_SECRET=your_client_secretClaude Desktop を構成する: Claude 構成 (
/Users/<username>/Library/Application Support/Claude/claude_desktop_config.json) に以下を追加します。"strava": { "command": "bash", "args": [ "-c", "source ~/.ssh/strava.sh && uvx strava-mcp" ] }
認証
Strava MCP ツールを初めて使用する場合:
認証フローが自動的に開始されます
ブラウザが開き、Strava認証ページが表示されます。
承認後、ローカルページにリダイレクトされます
リフレッシュトークンは将来使用するために自動的に保存されます
利用可能なツール
ユーザーアクティビティを取得する
認証されたユーザーのアクティビティを取得します。
パラメータ:
before(オプション): フィルタリングのエポックタイムスタンプafter(オプション): フィルタリングのエポックタイムスタンプpage(オプション):ページ番号(デフォルト:1)per_page(オプション):ページあたりのアイテム数(デフォルト:30)
アクティビティを取得
特定のアクティビティに関する詳細情報を取得します。
パラメータ:
activity_id: アクティビティのIDinclude_all_efforts(オプション):セグメントの取り組みを含める(デフォルト:false)
アクティビティセグメントを取得する
特定のアクティビティからセグメントを取得します。
パラメータ:
activity_id: アクティビティのID
セグメントリーダーボードを取得
特定のセグメントのリーダーボードを取得します。
パラメータ:
segment_id: セグメントのIDさまざまなオプションフィルター(性別、年齢層など)
Related MCP server: Strava MCP Server
開発者ガイド
プロジェクトのセットアップ
リポジトリをクローンします。
git clone <repository-url> cd strava依存関係をインストールします:
uv install環境変数を設定します。
export STRAVA_CLIENT_ID=your_client_id export STRAVA_CLIENT_SECRET=your_client_secretまたは、これらの変数を含む
.envファイルを作成します。
開発モードで実行
MCP CLI を使用してサーバーを実行します。
mcp dev strava_mcp/main.py手動認証
次のコマンドを実行すると、リフレッシュ トークンを手動で取得できます。
python get_token.pyプロジェクト構造
strava_mcp/: メインパッケージディレクトリ__init__.py: パッケージの初期化config.py: pydantic-settings を使用した構成設定models.py: Strava API エンティティの Pydantic モデルapi.py: Strava 用の低レベル API クライアントauth.py: Strava OAuth 認証の実装oauth_server.py: スタンドアロン OAuth サーバーの実装service.py: ビジネスロジックのサービス層server.py: MCP サーバーの実装
tests/: ユニットテストstrava_mcp/main.py: サーバーを実行するためのメインエントリポイントget_token.py: リフレッシュトークンを手動で取得するためのユーティリティスクリプト
テストの実行
pytestPyPIへの公開
パッケージの構築
# Build both sdist and wheel
uv buildPyPIへの公開
# Publish to Test PyPI first
uv publish --index testpypi
# Publish to PyPI
uv publishライセンス
謝辞
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
- AlicenseBqualityFmaintenanceA Model Context Protocol server that provides language models with access to Strava API data, allowing them to query and analyze athlete activities from Strava.422MIT
- 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
- AlicenseAqualityDmaintenanceAn MCP server that enables interaction with the Strava API v3 to manage fitness activities, athlete profiles, segments, and routes. It supports retrieving detailed performance metrics, exploring geographic data, and managing club information through natural language.45ISC
- Alicense-qualityCmaintenanceMCP server for Strava integration, enabling LLMs to query activities, athlete stats, segments, routes, and perform training analysis.7MIT
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/yorrickjansen/strava-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server