原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Strava MCP

作者:ljcl版本 3.0.0i★ –i在你的电脑上运行
注册名称io.github.ljcl/strava-mcp

安装

概览

作者提供的说明(英文原文)

Remote MCP server for your Strava activities, segments, and routes

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: Streamable HTTP
  • 分类: 其他
  • 你需要填写:STRAVA_CLIENT_ID, STRAVA_CLIENT_SECRET, PUBLIC_URL, STRAVA_ACCESS_TOKEN, STRAVA_REFRESH_TOKEN, MCP_AUTH_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: STRAVA_CLIENT_ID, STRAVA_CLIENT_SECRET, PUBLIC_URL, STRAVA_ACCESS_TOKEN, STRAVA_REFRESH_TOKEN, MCP_AUTH_TOKEN, PORT, TOKEN_DATA_DIR, ROUTE_EXPORT_PATH

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "strava": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "STRAVA_CLIENT_ID",
        "-e",
        "STRAVA_CLIENT_SECRET",
        "-e",
        "PUBLIC_URL",
        "-e",
        "STRAVA_ACCESS_TOKEN",
        "-e",
        "STRAVA_REFRESH_TOKEN",
        "-e",
        "MCP_AUTH_TOKEN",
        "-e",
        "PORT",
        "-e",
        "TOKEN_DATA_DIR",
        "-e",
        "ROUTE_EXPORT_PATH",
        "ghcr.io/ljcl/strava-mcp:3.0.0"
      ],
      "env": {
        "STRAVA_CLIENT_ID": "your-value",
        "STRAVA_CLIENT_SECRET": "your-value",
        "PUBLIC_URL": "your-value",
        "STRAVA_ACCESS_TOKEN": "your-value",
        "STRAVA_REFRESH_TOKEN": "your-value",
        "MCP_AUTH_TOKEN": "your-value",
        "PORT": "your-value",
        "TOKEN_DATA_DIR": "your-value",
        "ROUTE_EXPORT_PATH": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add strava --env STRAVA_CLIENT_ID=your-value --env STRAVA_CLIENT_SECRET=your-value --env PUBLIC_URL=your-value --env STRAVA_ACCESS_TOKEN=your-value --env STRAVA_REFRESH_TOKEN=your-value --env MCP_AUTH_TOKEN=your-value --env PORT=your-value --env TOKEN_DATA_DIR=your-value --env ROUTE_EXPORT_PATH=your-value -- docker run -i --rm -e STRAVA_CLIENT_ID -e STRAVA_CLIENT_SECRET -e PUBLIC_URL -e STRAVA_ACCESS_TOKEN -e STRAVA_REFRESH_TOKEN -e MCP_AUTH_TOKEN -e PORT -e TOKEN_DATA_DIR -e ROUTE_EXPORT_PATH ghcr.io/ljcl/strava-mcp:3.0.0

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "strava": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "STRAVA_CLIENT_ID",
        "-e",
        "STRAVA_CLIENT_SECRET",
        "-e",
        "PUBLIC_URL",
        "-e",
        "STRAVA_ACCESS_TOKEN",
        "-e",
        "STRAVA_REFRESH_TOKEN",
        "-e",
        "MCP_AUTH_TOKEN",
        "-e",
        "PORT",
        "-e",
        "TOKEN_DATA_DIR",
        "-e",
        "ROUTE_EXPORT_PATH",
        "ghcr.io/ljcl/strava-mcp:3.0.0"
      ],
      "env": {
        "STRAVA_CLIENT_ID": "your-value",
        "STRAVA_CLIENT_SECRET": "your-value",
        "PUBLIC_URL": "your-value",
        "STRAVA_ACCESS_TOKEN": "your-value",
        "STRAVA_REFRESH_TOKEN": "your-value",
        "MCP_AUTH_TOKEN": "your-value",
        "PORT": "your-value",
        "TOKEN_DATA_DIR": "your-value",
        "ROUTE_EXPORT_PATH": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "strava": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "STRAVA_CLIENT_ID",
        "-e",
        "STRAVA_CLIENT_SECRET",
        "-e",
        "PUBLIC_URL",
        "-e",
        "STRAVA_ACCESS_TOKEN",
        "-e",
        "STRAVA_REFRESH_TOKEN",
        "-e",
        "MCP_AUTH_TOKEN",
        "-e",
        "PORT",
        "-e",
        "TOKEN_DATA_DIR",
        "-e",
        "ROUTE_EXPORT_PATH",
        "ghcr.io/ljcl/strava-mcp:3.0.0"
      ],
      "env": {
        "STRAVA_CLIENT_ID": "your-value",
        "STRAVA_CLIENT_SECRET": "your-value",
        "PUBLIC_URL": "your-value",
        "STRAVA_ACCESS_TOKEN": "your-value",
        "STRAVA_REFRESH_TOKEN": "your-value",
        "MCP_AUTH_TOKEN": "your-value",
        "PORT": "your-value",
        "TOKEN_DATA_DIR": "your-value",
        "ROUTE_EXPORT_PATH": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • STRAVA_CLIENT_ID 必填 env
    Strava API client ID
  • STRAVA_CLIENT_SECRET 机密 必填 env
    Strava API client secret
  • PUBLIC_URL 必填 env
    Public HTTPS URL used for the Strava OAuth callback
  • STRAVA_ACCESS_TOKEN 机密 env
    Optional initial access token from setup-auth
  • STRAVA_REFRESH_TOKEN 机密 env
    Optional initial refresh token from setup-auth
  • MCP_AUTH_TOKEN 机密 env
    Shared secret gating /mcp and the OAuth web routes (recommended when internet-facing)
  • PORT env
    Server port (default 3000)
  • TOKEN_DATA_DIR env
    Override token storage directory (default ./data)
  • ROUTE_EXPORT_PATH env
    Absolute directory for exported route files

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 ljcl 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18354 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18354 个服务器的 28% 更新
  • 基础检查结果等于或优于此分类中其他 18354 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Strava MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:STRAVA_CLIENT_ID, STRAVA_CLIENT_SECRET, PUBLIC_URL, STRAVA_ACCESS_TOKEN, STRAVA_REFRESH_TOKEN, MCP_AUTH_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(3.0.0)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Qemu MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Qemu MCP

作者:0xmortuex

Boot and drive QEMU VMs from an AI agent: keys, screenshots, serial. No guest agent.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Strava MCP

A Model Context Protocol (MCP) server that supplements the official Strava MCP connector. It adds write access, segments, routes, photos, derived analysis, and interactive visualizations that the official connector does not provide.

Features

  • Write and update activities (title, description, sport type, gear, flags)
  • Create manual activities for sessions with no device recording (strength, yoga, treadmill)
  • Explore, view, star, and manage segments
  • Fetch per-activity photos, zone breakdowns, and running summaries
  • List and view details of saved routes
  • Export routes (GPX/TCX) and activity tracks (GPX built from streams)
  • Derived analysis Strava does not expose: interval detection, climb/descent breakdown, aerobic decoupling, training load, fitness/fatigue/form (CTL/ATL/TSB), and a solved taper to a target race-day form
  • AI-friendly JSON responses via MCP
  • Nine interactive visualizations rendered in MCP-compatible hosts — activity chart, cadence trends, route map, activity segments, training load, compare activities, activity zones, segment progress, and fitness trend
  • Guided prompts for weekly reviews, annotating a run, and segment hunting (docs/tools.md)
  • Automatic token refresh
  • Streamable HTTP transport for remote deployment

Browse the UI components in the live Storybook.

The full tool catalog, prompts, permission behaviour, and example requests live in docs/tools.md.

Quick Start (Docker)

1. Create a Strava API Application
  1. Go to strava.com/settings/api
  2. Create a new application:
  • Enter your application details (name, website, description)
  • Set "Authorization Callback Domain" to your public URL hostname (e.g., strava-mcp.example.com)
  • Note your Client ID and Client Secret
2. Configure Environment
cp .env.example .env

Edit .env with your values:

STRAVA_CLIENT_ID=your_client_id

STRAVA_CLIENT_SECRET=your_client_secret PUBLIC_URL=https://your-public-url.example.com

All variables are listed in docs/operations.md. Prefer the prebuilt image? Pull ghcr.io/ljcl/strava-mcp:latest (also on the MCP registry as io.github.ljcl/strava-mcp) and point your compose image: at it instead of building; you still supply the Strava credentials yourself. Published images carry SBOM/provenance attestations you can verify — see operations.md.

Note on the `./data` bind mount: tokens persist there, and the distroless image runs as non-root UID 65534, so the directory must be writable by that UID or token persistence fails on first run:

mkdir -p data

sudo chown -R 65534:65534 data

Alternatively use a named volume in docker-compose.yml (e.g. strava-data:/app/data), which Docker initializes with correct ownership. More detail in operations.md.

3. Start the Server
docker compose up -d

GET /health reports liveness without spending a Strava API request; with MCP_AUTH_TOKEN it also reports auth and rate-limit state. Response shapes and monitoring guidance: operations.md.

4. Authorize with Strava

Visit https://your-public-url/auth/start in your browser. After authorizing, tokens are saved automatically and refreshed from then on. Check status anytime at /auth/status.

If you set MCP_AUTH_TOKEN, append it to both URLs as ?token= .

5. Connect to Claude Desktop

Add to your Claude configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{

"mcpServers": { "strava": { "type": "url", "url": "https://your-public-url/mcp", "headers": { "Authorization": "Bearer your-mcp-auth-token" } } } }

The headers entry is only needed when MCP_AUTH_TOKEN is set (recommended for tunnel-exposed servers — see Securing the endpoint).

Restart Claude Desktop to load the new configuration.

Connecting to AI Tools

Most AI tools (Claude Desktop, Claude Code, etc.) need an HTTPS URL to reach your MCP server. Since the server runs on your local network, you'll need a tunnel to expose it.

Tailscale Funnel (Recommended)

Tailscale Funnel exposes a local port to the internet over HTTPS with no configuration:

tailscale funnel --bg 3000

→ https://your-machine.tail1234.ts.net

Set PUBLIC_URL in your .env to the resulting URL.

Cloudflare Tunnel
cloudflared tunnel --url http://localhost:3000
Securing the endpoint

A tunnel makes /mcp reachable by anyone who discovers the URL — including the update-activity write tool. Set MCP_AUTH_TOKEN to a long random secret (openssl rand -hex 32) and every /mcp request requires Authorization: Bearer ; each client snippet below shows where the header goes. The secret also gates /auth/start and /auth/status. Full details (including how OAuth callbacks stay safe): operations.md.

Set it in .env alongside your Strava credentials — docker-compose.yml forwards it automatically.

AI Tool (Claude Desktop, Claude Code, etc.)

│ HTTPS HTTPS Tunnel (Tailscale / Cloudflare) │ HTTP (localhost:3000) Strava MCP Server (Docker / Bun) │ HTTPS Strava API

Client configuration

The server works with any MCP client that supports the Streamable HTTP transport. In every snippet below, replace https://your-public-url with your tunnel URL (or http://localhost:3000 for local development), and include the Authorization header only if you set MCP_AUTH_TOKEN.

Claude Code
claude mcp add --transport http strava https://your-public-url/mcp \

--header "Authorization: Bearer your-mcp-auth-token"

Cursor

Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{

"mcpServers": { "strava": { "url": "https://your-public-url/mcp", "headers": { "Authorization": "Bearer your-mcp-auth-token" } } } }

VS Code

Add to .vscode/mcp.json in your workspace (or run MCP: Add Server from the command palette):

{

"servers": { "strava": { "type": "http", "url": "https://your-public-url/mcp", "headers": { "Authorization": "Bearer your-mcp-auth-token" } } } }

Other clients (generic Streamable HTTP)

Any client that speaks Streamable HTTP can connect to the /mcp endpoint directly. One URL serves both protocol eras: 2026-07-28 clients send stateless requests carrying the io.modelcontextprotocol/* envelope keys (server/discover advertises capabilities); 2025-era clients use the ordinary initialize handshake. POST JSON-RPC messages with an Accept: application/json, text/event-stream header. Protocol details: docs/architecture.md.

Using alongside the official Strava MCP

Strava's official MCP connector handles activity discovery and basic reads. This server supplements it with everything the official connector does not offer: writing to activities, segments, routes and GPX/TCX export, photos, derived analysis, and interactive visualizations.

Install both
  • Official: claude mcp add --transport http strava-mcp https://mcp.strava.com/mcp (or via claude.ai Connectors / Claude Desktop).
  • This server: see the install steps above.
Who does what
CapabilityOfficialThis server
List / read activities, streams, profile, zones, gear, clubs, training planyesno (use official)
Update activities, star segmentsnoyes
Segment detail / search / effortsnoyes
Routes plus GPX/TCX exportnoyes
Activity GPX export (synthesized from streams)noyes
Activity photosnoyes
Athlete stats, per-activity zones, best efforts, running summary, training load, comparenoyes
Interval, hill, and aerobic analysis; fitness/fatigue/form (CTL/ATL/TSB)noyes
Interactive apps: activity chart, cadence trends, route map, activity segments, training load, compare activities, activity zones, segment progress, fitness trendnoyes
Caveats
  • The official connector requires a Strava subscription and currently runs only in Anthropic clients.
  • With the duplicate reads removed, this server now effectively assumes the official connector is installed for activity discovery. The aggregate analysis tools (get-best-efforts, get-training-load) fetch their own activity lists, but per-activity tools (get-running-summary, compare-activities, get-activity-zones, etc.) need an activity id from the official list_activities.
  • The two use separate rate-limit quotas, so running both spreads API load.
Recommended workflow

Use the official connector to discover and read activities, then use this server to write, explore segments, manage and export routes, and visualize. The model can pass activity ids from official list_activities directly into this server's tools.

Example requests

Ask your AI assistant questions like these (use the official Strava MCP to discover activity IDs, then pass them to these tools):

  • "Update the title of activity 12345678 to 'Morning Threshold'"
  • "Show me the HR zone breakdown for activity 12345678"
  • "Break down the intervals in activity 12345678 — did I fade across the reps?"
  • "Did I positive-split Sunday's long run, or was that just the hills?"
  • "My race is on 13 September — what should the next three weeks look like so I arrive at TSB +10?"
  • "Am I getting faster on segment 8109834? Show my effort history"
  • "Map my race route with fuel stops at 10k, 21k, and 32k, and flag the climb at 28k"

More in docs/tools.md.

Local Development

Prerequisites: Bun and a Strava account.

bun install

Guided OAuth flow using localhost as redirect URI

cd apps/server && bun run setup-auth && cd ../..

Start dev server (server + MCP App watchers)

bun run dev

Then point any client at http://localhost:3000/mcp. Repo layout, task runner, tests, coverage gates, and Storybook workflow: docs/development.md. Agent conventions live in AGENTS.md.

Documentation

DocContents
docs/tools.mdFull tool catalog, prompts, permission behaviour, example requests
docs/operations.mdEnvironment variables, auth/token handling, health endpoint, rate limits, endpoint security
docs/architecture.mdServer architecture: transport, HTTP layer, cache, error taxonomy, analysis math
docs/mcp-apps.mdMCP App packages: shared shell, mobile, theming, per-app details
docs/development.mdMonorepo mechanics: Turborepo, coverage gates, Storybook gates, Docker build
docs/releasing.mdRelease automation: Conventional Commit PR titles, release-please, publishing
docs/project.mdIssue tracking and project board

PRs are squash-merged and the PR title becomes the commit on `main`, so write it as a [Conventional Commit](https://www.con

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx