Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Remote MCP server for your Strava activities, segments, and routes
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
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/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"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .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 保存在这台设备上,无需账户。
PORT envTOKEN_DATA_DIR envROUTE_EXPORT_PATH env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 ljcl 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 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
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Boot and drive QEMU VMs from an AI agent: keys, screenshots, serial. No guest agent.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
Browse the UI components in the live Storybook.
The full tool catalog, prompts, permission behaviour, and example requests live in docs/tools.md.
strava-mcp.example.com)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.
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.
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= .
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.
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 exposes a local port to the internet over HTTPS with no configuration:
tailscale funnel --bg 3000
Set PUBLIC_URL in your .env to the resulting URL.
cloudflared tunnel --url http://localhost:3000
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
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 mcp add --transport http strava https://your-public-url/mcp \
--header "Authorization: Bearer your-mcp-auth-token"
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" } } } }
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" } } } }
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.
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.
claude mcp add --transport http strava-mcp https://mcp.strava.com/mcp (or via claude.ai Connectors / Claude Desktop).| Capability | Official | This server |
|---|---|---|
| List / read activities, streams, profile, zones, gear, clubs, training plan | yes | no (use official) |
| Update activities, star segments | no | yes |
| Segment detail / search / efforts | no | yes |
| Routes plus GPX/TCX export | no | yes |
| Activity GPX export (synthesized from streams) | no | yes |
| Activity photos | no | yes |
| Athlete stats, per-activity zones, best efforts, running summary, training load, compare | no | yes |
| Interval, hill, and aerobic analysis; fitness/fatigue/form (CTL/ATL/TSB) | no | yes |
| Interactive apps: activity chart, cadence trends, route map, activity segments, training load, compare activities, activity zones, segment progress, fitness trend | no | yes |
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.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.
Ask your AI assistant questions like these (use the official Strava MCP to discover activity IDs, then pass them to these tools):
More in docs/tools.md.
Prerequisites: Bun and a Strava account.
bun install
cd apps/server && bun run setup-auth && cd ../..
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.
| Doc | Contents |
|---|---|
| docs/tools.md | Full tool catalog, prompts, permission behaviour, example requests |
| docs/operations.md | Environment variables, auth/token handling, health endpoint, rate limits, endpoint security |
| docs/architecture.md | Server architecture: transport, HTTP layer, cache, error taxonomy, analysis math |
| docs/mcp-apps.md | MCP App packages: shared shell, mobile, theming, per-app details |
| docs/development.md | Monorepo mechanics: Turborepo, coverage gates, Storybook gates, Docker build |
| docs/releasing.md | Release automation: Conventional Commit PR titles, release-please, publishing |
| docs/project.md | Issue 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
只显示了开头部分;其余内容请在仓库中阅读