MI

mvilanova/intervals-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

386 stars 212 forks 品質 76 トレンド 29GPL-3.0

ClaudeとChatGPTを Intervals.icu APIに接続するためのモデルコンテキストプロトコル(MCP)サーバー。

概要

ClaudeとChatGPTを Intervals.icu APIに接続するためのModel Context Protocol(MCP)サーバーです。アクティビティ、イベント、ウェルネスデータ、パワーカーブ、カスタムアイテムの認証やデータ取得のためのツールを提供します。 もしモデルコンテキストプロトコル(MCP)サーバーが有用であれば、寄付でその継続的な開発を支援してほしい。 - Python 3.12以降 - モデルコンテキストプロトコル(MCP)Python SDK - httpx - python-dotenv インストール後、uvへの完全なパスを見つけてください。後でClaude Desktopの設定時に必要になります: .env.example のコピーを作成し、以下のコマンドを実行して .env と名付けます: その後、.envファイルを編集し、Intervals.icu アスリートIDとAPIキーを設定します: 1. Intervals.icu アカウントにログイン 2.設定> API 3.新しいAPIキーを生成する ログインしているときに通常、アスリートIDはURLに表示 Intervals.icu。以下の通りです:

概要(AI 翻訳)

ClaudeとChatGPTを Intervals.icu APIに接続するためのModel Context Protocol(MCP)サーバーです。アクティビティ、イベント、ウェルネスデータ、パワーカーブ、カスタムアイテムの認証やデータ取得のためのツールを提供します。

もしモデルコンテキストプロトコル(MCP)サーバーが有用であれば、寄付でその継続的な開発を支援してほしい。

要件

  • Python 3.12以降
  • モデルコンテキストプロトコル(MCP)Python SDK
  • httpx
  • python-dotenv

セットアップ

1.UVのインストール(推奨)

macOS/Linux:

Windows (PowerShell):

インストール後、uvへの完全なパスを見つけてください。後でClaude Desktopの設定時に必要になります:

2.このリポジトリをクローンしてください

3.仮想環境を作成・起動する

4.同期プロジェクトの依存関係

5.環境変数を設定する

.env.exampleのコピーを作成し、以下のコマンドを実行して.envと名付けます。

macOS/Linux:

Windows (PowerShell):

次に、.envファイルを編集し、Intervals.icu アスリートIDとAPIキーを設定します:

Intervals.icu APIキーを取得する

  1. Intervals.icu アカウントにログインする
  2. API>設定へ
  3. 新しいAPIキーを生成する

アスリートIDを見つける

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Intervals.icu MCP Server

Model Context Protocol (MCP) server for connecting Claude and ChatGPT with the Intervals.icu API. It provides tools for authentication and data retrieval for activities, events, wellness data, power curves, and custom items.

If you find the Model Context Protocol (MCP) server useful, please consider supporting its continued development with a donation.

Requirements

Setup

macOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows (PowerShell):

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

After installation, find the full path to uv — you’ll need it later when configuring Claude Desktop:

where.exe uv
# Example output: C:\Users\\.local\bin\uv.exe

2. Clone this repository

git clone https://github.com/mvilanova/intervals-mcp-server.git
cd intervals-mcp-server

3. Create and activate a virtual environment

# Create virtual environment with Python 3.12
uv venv --python 3.12

# Activate virtual environment
# On macOS/Linux:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate

4. Sync project dependencies

uv sync

5. Set up environment variables

Make a copy of .env.example and name it .env by running the following command:

macOS/Linux:

cp .env.example .env

Windows (PowerShell):

Copy-Item .env.example .env

Then edit the .env file and set your Intervals.icu athlete id and API key:

API_KEY=your_intervals_api_key_here
ATHLETE_ID=your_athlete_id_here

Getting your Intervals.icu API Key

  1. Log in to your Intervals.icu account
  2. Go to Settings > API
  3. Generate a new API key

Finding your Athlete ID

Your athlete ID is typically visible in the URL when you’re logged into Intervals.icu. It looks like:

  • https://intervals.icu/athlete/i12345/... where i12345 is your athlete ID

Updating

This project is actively developed, with new features and fixes added regularly. To stay up to date, follow these steps:

1. Pull the latest changes from main

⚠️ Make sure you don’t have uncommitted changes before running this command.

macOS/Linux:

git checkout main && git pull

Windows (PowerShell):

git checkout main; git pull

2. Update Python dependencies

Activate your virtual environment and sync dependencies:

macOS/Linux:

source .venv/bin/activate
uv sync

Windows (PowerShell):

.venv\Scripts\activate
uv sync

Troubleshooting

If Claude Desktop fails due to configuration changes, follow these steps:

  1. Delete the existing Intervals.icu entry in claude_desktop_config.json.
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "Intervals.icu": { "command": "/Users/<USERNAME>/.local/bin/uv", "args": [ "run", "--with", "mcp[cli]", "--with-editable", "/path/to/intervals-mcp-server", "mcp", "run", "/path/to/intervals-mcp-server/src/intervals_mcp_server/server.py" ], "env": { "INTERVALS_API_BASE_URL": "https://intervals.icu/api/v1", "ATHLETE_ID": "<YOUR_ATHLETE_ID>", "API_KEY": "<YOUR_API_KEY>", "LOG_LEVEL": "INFO" } } } }