
st3v/garmin-workouts-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Garmin Connect でワークアウトを管理するツールを持つ MCP サーバー
概要
MCP 互換のクライアントを通じて自然な言語の説明を使用して、Garmin Connect のワークアウトを作成、リスト、および管理できる MCP サーバー。 - : 人工知能を用いた自然言語説明から構造化されたGarminのワークアウトを生成 - : Garmin Connectの既存のワークアウトをすべて表示 - : 特定のワークアウトに関する詳細な情報を取得する - : Garmin Connectの特定の日付のスケジュールのワークアウト - : Garmin Connectのワークアウトを削除します - : リスト、ビュー、および完了したアクティビティの気象データを取得する - : ワークアウトとアクティビティのカレンダーデータを表示 - : MCP互換クライアント(Claude Desktopなど)で動作します。 2. MCP クライアントの設定 (例、Claude デスクトップ): Garmin Workouts MCP Server は、Garmin Connect をガース [[[https://github.com/matin/garth].]] で認証します。 Garmin資格情報を提供する2つの主要な方法があります。 MCP サーバーを起動する前に、Garmin Connect 電子メールとパスワードを環境変数として設定できます.
概要(AI 翻訳)
MCP 互換のクライアントを通じて自然な言語の説明を使用して、Garmin Connect のワークアウトを作成、リスト、および管理できる MCP サーバー。
##特徴
- ワークアウトを作成: AIを用いた自然言語記述から構成されたGarminワークアウトを生成
- リストワークアウト: Garmin Connectで既存のワークアウトをすべて表示
- ワークアウトの細部を得て下さい: 特定のトレーニングに関する詳細情報を取得します。
- スケジュールワークアウト: Garmin Connect の特定の日付でワークアウトをスケジュールする
- ワークアウトを削除: Garmin Connectからワークアウトを削除
- 活動管理: 完成したアクティビティの気象データをリスト、ビュー、取得
- カレンダーの統合: ワークアウトやアクティビティでカレンダーデータを見る -MCPインテグレーション:任意のMCP互換クライアント(Claude Desktopなど)と連携
セットアップ
1。 uvxを使用してインストールして実行します。
- MCP クライアントの設定 (例、Claude デスクトップ):
MCP クライアントの設定に追加します。
##認証
Garmin Workouts MCP Server は、 [garth] を使用して Garmin Connect を認証します。 [[[https://github.com/matin/garth].]] Garmin資格情報を提供する2つの主要な方法があります。
##1. 環境変数の使用
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Garmin Workouts MCP Server
An MCP server that allows you to create, list, and manage Garmin Connect workouts using natural language descriptions through MCP-compatible clients.
Features
- Create workouts: Generate structured Garmin workouts from natural language descriptions using AI
- List workouts: View all your existing workouts on Garmin Connect
- Get workout details: Retrieve detailed information about specific workouts
- Schedule workouts: Schedule workouts on specific dates in Garmin Connect
- Delete workouts: Remove workouts from Garmin Connect
- Activity management: List, view, and get weather data for completed activities
- Calendar integration: View calendar data with workouts and activities
- MCP Integration: Works with any MCP-compatible client (Claude Desktop, etc.)
Setup
- Install and run using uvx:
uvx garmin-workouts-mcp
- Configure in your MCP client (e.g., Claude Desktop):
Add to your MCP client configuration:
{
"mcpServers": {
"garmin-workouts": {
"command": "uvx",
"args": ["garmin-workouts-mcp"],
"env": { # See Authentication section for details
"GARMIN_EMAIL": "[email protected]",
"GARMIN_PASSWORD": "your_password"
}
}
}
}
Authentication
The Garmin Workouts MCP Server authenticates with Garmin Connect using garth [https://github.com/matin/garth]. There are two primary ways to provide your Garmin credentials:
1. Using Environment Variables
You can set your Garmin Connect email and password as environment variables before starting the MCP server.
GARMIN_EMAIL: Your Garmin Connect email address.GARMIN_PASSWORD: Your Garmin Connect password.
Example:
export GARMIN_EMAIL="[email protected]"
export GARMIN_PASSWORD="your_password"
uvx garmin-workouts-mcp
2. Out-of-Band Authentication with garth
Alternatively, you can log in to Garmin Connect once using the garth library directly and save your authentication tokens to a directory, which the MCP server will then use for subsequent sessions. This method is useful if you prefer not to store your credentials as environment variables or as part of your MCP client configuration.
To log in out-of-band:
- Install
garth:pip install garth - Run the following Python script in your terminal:
import garth from getpass import getpass email = input("Enter email address: ") password = getpass("Enter password: ") # If there's MFA, you'll be prompted during the login garth.login(email, password) garth.save("~/.garth")
インストール
uvx garmin-workouts-mcp設定
{
"mcpServers": {
"garmin-workouts": {
"command": "uvx",
"args": ["garmin-workouts-mcp"],
"env": { # See Authentication section for details
"GARMIN_EMAIL": "[email protected]",
"GARMIN_PASSWORD": "your_password"
}
}
}
}