MCP.so
ログイン

Strava MCP Server

@tomekkorbak

Strava MCP Server について

MCP server for Strava API integration

基本情報

カテゴリ

その他

ライセンス

MIT

ランタイム

python

トランスポート

stdio

公開者

tomekkorbak

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "strava-mcp-server": {
      "command": "python",
      "args": [
        "get_strava_token.py"
      ]
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Strava MCP Server?

Strava MCP Server is a Model Context Protocol (MCP) server that provides access to the Strava API, allowing language models to query athlete activity data. It is designed for developers and users who want to integrate Strava data into AI assistants like Claude.

How to use Strava MCP Server?

Install the server via uvx strava-mcp-server and set the required environment variables: STRAVA_CLIENT_ID, STRAVA_CLIENT_SECRET, and STRAVA_REFRESH_TOKEN. Configure it in claude_desktop_config.json for Claude Desktop or connect locally for Claude Web. Use the included get_strava_token.py script to obtain your refresh token.

Key features of Strava MCP Server

  • Retrieve recent activities from the authenticated athlete
  • Query activities within a specific date range (ISO format)
  • Fetch detailed information about a single activity by ID
  • Get activities from the past X days with a single command

Use cases of Strava MCP Server

  • Ask an AI assistant “What are my recent activities?” to get a summary
  • Analyze training patterns over a custom date range
  • Retrieve details of a specific workout for performance review
  • Monitor recent activities without opening the Strava app

FAQ from Strava MCP Server

What authentication is required?

You need a Strava API application (Client ID and Client Secret) and a refresh token. The server uses OAuth 2.0 with the provided environment variables.

How do I set up the server?

Create a Strava API app with callback domain localhost, run get_strava_token.py to authorize and save tokens, then set STRAVA_CLIENT_ID, STRAVA_CLIENT_SECRET, and STRAVA_REFRESH_TOKEN as environment variables.

What date format should I use?

Dates must be provided in ISO 8601 format (YYYY-MM-DD), for example 2024-01-15.

What data fields are returned in activities?

The server returns fields like name, sport_type, distance_metres, elapsed_time_seconds, average_speed_mps, calories, and coordinates, all in consistent units.

How does the server handle errors?

It provides human-readable error messages for invalid date formats, API authentication errors, and network connectivity problems.

コメント

「その他」の他のコンテンツ