Skip to content
MCP server
Registry

strava-mcp MCP Server

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

strava-mcp scores 63 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by ljclMITTypeScript0 stars
Trust score
63Good
Trust score 63 of 100, Good

Good trust

63 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 63 comes from

22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "ljcl-strava-mcp": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "ghcr.io/ljcl/strava-mcp:3.0.0"      ],      "env": {        "STRAVA_CLIENT_ID": "",        "STRAVA_CLIENT_SECRET": "YOUR_STRAVA_CLIENT_SECRET",        "PUBLIC_URL": "",        "STRAVA_ACCESS_TOKEN": "YOUR_STRAVA_ACCESS_TOKEN",        "STRAVA_REFRESH_TOKEN": "YOUR_STRAVA_REFRESH_TOKEN",        "MCP_AUTH_TOKEN": "YOUR_MCP_AUTH_TOKEN",        "PORT": "",        "TOKEN_DATA_DIR": "",        "ROUTE_EXPORT_PATH": ""      }    }  }}

Environment variables

NameRequiredNotes
STRAVA_CLIENT_IDRequiredStrava API client ID
STRAVA_CLIENT_SECRETSecretRequiredStrava API client secret
PUBLIC_URLRequiredPublic HTTPS URL used for the Strava OAuth callback
STRAVA_ACCESS_TOKENSecretOptionalOptional initial access token from setup-auth
STRAVA_REFRESH_TOKENSecretOptionalOptional initial refresh token from setup-auth
MCP_AUTH_TOKENSecretOptionalShared secret gating /mcp and the OAuth web routes (recommended when internet-facing)
PORTOptionalServer port (default 3000)
TOKEN_DATA_DIROptionalOverride token storage directory (default ./data)
ROUTE_EXPORT_PATHOptionalAbsolute directory for exported route files

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Strava MCP

CI Storybook License: MIT

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=<MCP_AUTH_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 <token>; 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 (feat: minor, fix: patch, feat!: major; chore:/docs:/refactor:/ci: release nothing). A CI check rejects non-conforming titles; see docs/releasing.md.

Troubleshooting

AI tool can't reach the server — MCP requires an HTTPS URL. Use a tunnel (Tailscale Funnel or Cloudflare Tunnel) to expose your local server. See Connecting to AI Tools.

OAuth callback fails — Ensure PUBLIC_URL in your .env matches the tunnel URL exactly, and that the same hostname is set as the "Authorization Callback Domain" in your Strava API settings.

Token errors or expired tokens — Check /health first: authenticated and token_expires_at tell you whether the server holds a usable token, which separates an auth problem from a reachability one. Then visit /auth/start to re-authorize. Tokens refresh automatically, but a full re-auth is needed if the refresh token was revoked or a new release added a scope. See operations.md.

Is the server up and reachable? — curl https://your-public-url/health. It answers without touching the Strava API, so it works even when your rate limit is exhausted.

Tokens don't survive a container restart (Docker) — The container runs as non-root UID 65534, so the ./data bind mount must be writable by that UID (sudo chown -R 65534:65534 data), or use a named volume instead. See Quick Start step 2 and operations.md.

Client re-prompts for read tools after I granted them — A release likely renamed a tool or changed its input schema; grants are stored per tool identity, so that drops the grant. Releases say so in the changelog. Otherwise persistence lives in the client — check both connector-level and per-tool settings. See docs/tools.md.

License

MIT

Frequently asked questions

What is strava-mcp MCP Server?

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

How do I install strava-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. strava-mcp MCP Server is published as the Docker image ghcr.io/ljcl/strava-mcp:3.0.0.

Is strava-mcp MCP Server free and open source?

Yes. strava-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

How is strava-mcp MCP Server's trust score calculated?

strava-mcp MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server