MCP.so
登录

Strava MCP Server

@tomekkorbak

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

tomekkorbak

关于 Strava MCP Server

MCP server for Strava API integration

Strava MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

Strava MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 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

常见问题

1

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.

2

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.

3

What date format should I use?

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

4

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.

5

How does the server handle errors?

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

评论

其他 分类下的更多 MCP 服务器