Skip to main content
Glama

⚡ One-command install with Delx Wellness for Hermes: npx -y delx-wellness-hermes setup — preconfigures this connector and the other 8 in a dedicated Hermes profile.

Or wire it standalone into Claude Desktop / Cursor / ChatGPT Desktop — see the install section below.


HTTP (v2 stateless)

Default is stdio. Optional Streamable HTTP — no session id, JSON responses, loopback only:

npx -y strava-mcp-unofficial --http
# GET  http://127.0.0.1:3000/health
# POST http://127.0.0.1:3000/mcp   (sessionless)

Env: STRAVA_MCP_HOST, STRAVA_MCP_PORT, STRAVA_MCP_TRANSPORT=http.

Local-first MCP server that connects AI agents to your Strava activities, routes, streams and training context.

Unofficial project. Not affiliated with, endorsed by or supported by Strava, Inc. Strava is a trademark of its respective owner. Use this only with your own Strava account and in line with Strava's API agreement.

Built by David Mosiah for people who use Claude, Cursor, Hermes, OpenClaw or other MCP-compatible agents to think about training, endurance and performance — without copy-pasting numbers from Strava.

Part of Delx Wellness, a registry of local-first wellness MCP connectors.

If this connector helps your agent workflow, please star the repo. Stars make the project easier for other AI builders to discover and help Delx keep shipping local-first wellness infrastructure.

Related MCP server: Athlete MCP

Why this exists

Strava holds the long memory of your training — every ride, run, swim, segment, route and stream. But it lives behind an OAuth API with strict rate limits (200 req/15min, 2k/day per app) and GPS data that's privacy-sensitive by default.

This package does the OAuth dance locally, throttles under Strava's per-app limits, redacts GPS lat/lng unless you explicitly opt in, and exposes Strava through the Model Context Protocol. Any MCP-compatible agent gets your training context with one config snippet. Tokens never leave your machine.

Quickstart

From zero to your first agent call in about a minute. You only need a Strava app (create one here) with redirect URI http://127.0.0.1:3000/callback.

1. Paste your app's client id + secret (interactive, stored at ~/.strava-mcp/config.json with 0600):

npx -y strava-mcp-unofficial setup

2. Authorize Strava. auth opens your browser; --no-open prints the URL so you can paste it yourself (handy on a headless box). Tokens are saved locally — the command never prints them:

$ npx -y strava-mcp-unofficial auth --no-open
Strava MCP · Authorization

Open this URL manually:
  https://www.strava.com/oauth/authorize?client_id=12345&redirect_uri=http%3A%2F%2F127.0.0.1%3A3000%2Fcallback&response_type=code&approval_prompt=auto&scope=read%2Cactivity%3Aread_all%2Cprofile%3Aread_all&state=aa38f29b

Steps
  1. Approve access in the browser tab that opens.
  2. Strava will redirect to the local callback.
  3. Tokens are saved locally; this command never prints them.

Waiting for callback...

3. Verify you're ready — doctor confirms scopes and setup without calling Strava:

$ npx -y strava-mcp-unofficial doctor
Strava MCP · Doctor
Status: READY ✓

Checks
  ✓  Node.js >=20
  ✓  Env vars
  ✓  Local config
  ✓  Automatic auth redirect
  ✓  Token file
  ✓  Token permissions
  ✓  Refresh token
  ✓  OAuth scopes
  ·  Privacy mode
  ·  Cache

Next steps
  1. Ready. Add this MCP server to your agent and start with strava_daily_summary.

If OAuth scopes shows a ✗, re-run auth and approve activity:read_all profile:read_all read.

4. Make a first call — no live account required. Ask your agent to run strava_demo. It returns realistic, synthetic payloads (tagged is_demo: true) so you can wire prompts before connecting real data:

> Call strava_demo and summarize my week.

# Strava Demo

- **is_demo**: true
- **recent_sessions**: 3
- **load_classification**: moderate
- **primary_signal**: Recent Strava load is manageable; use intent and consistency as the main lever.
- **recommended_handoff**: exercise_catalog_recommend_session

Call it with response_format: "json" for the full shapes. The sample block mirrors strava_daily_summary, strava_training_context and strava_list_activities key-for-key — npm run test:demo-contract runs the real builders over fixtures/strava-activities.mjs and fails the build if the demo ever invents a field or omits one. Swap strava_demo for the real tool and the same shape arrives filled with your Strava data.

5. Wire it into your MCP client:

{
  "mcpServers": {
    "strava": {
      "command": "npx",
      "args": ["-y", "strava-mcp-unofficial"]
    }
  }
}

For Claude Desktop, run setup --client claude and the snippet is written for you. For Hermes, see Hermes / remote setup below.

Try it with your agent

Three things to ask first:

Use strava_connection_status to check setup, then run strava_daily_summary.
Tell me what my training context looks like in 5 lines.
Call strava_weekly_summary with response_format=json. Find my biggest
load/intensity bottleneck and give me a next-week endurance plan.
Use the strava_activity_stream_investigator prompt for activity_id=<id>.
Don't expose GPS unless I explicitly ask for it.

Data availability

This package uses the official Strava API v3. When this README says raw, it means the upstream Strava JSON for a supported endpoint — not continuous device telemetry.

Pass id_str as a quoted string when calling a tool that takes an ID, for example {"id":"9007199254740993"}. When Strava sends a large ID as a decimal JSON integer, the connector preserves it as a string in id, including in raw mode. Safe numeric IDs and string gear IDs such as "g123" remain supported. If an unsafe ID arrives without an exact decimal representation, the connector omits the unusable numeric field. Calls with unsafe numeric IDs as arguments are rejected.

Data

Available

Notes

Activities (runs, rides, swims, walks, workouts)

✓

All recorded activities

Activity details + zones + splits

✓

HR, power, cadence, elevation, gear

Activity streams (HR / cadence / watts / altitude)

✓

Per-second samples for the activity

GPS lat/lng streams

opt-in

Hidden by default; requires include_gps=true or raw mode

Athlete profile + zones + aggregate stats

✓

Authenticated athlete

Routes + clubs + gear

✓

Route geometry redacted in summary/structured modes

Live device telemetry / continuous HR

—

Not exposed by Strava's public API

Tools

Start with these:

  • strava_connection_status — verify local setup, scopes and readiness before calling Strava

  • strava_data_inventory — inventory supported data domains, scopes, privacy modes and recommended first calls without calling Strava APIs.

  • strava_daily_summary — latest activity, weekly load and intensity context for today

  • strava_weekly_summary — scorecard, comparison vs prior week, next-week training plan

Auth & diagnostics

  • strava_capabilities, strava_agent_manifest, strava_privacy_audit, strava_cache_status

  • strava_get_auth_url, strava_exchange_code, strava_revoke_access

Athlete & training

  • strava_get_athlete, strava_get_zones, strava_get_athlete_stats

Activities & streams

  • strava_list_activities, strava_get_activity, strava_get_activity_zones

  • strava_activity_series, strava_get_activity_streams — GPS lat/lng requires include_gps=true or raw mode

Routes & context

  • strava_list_routes, strava_get_route, strava_list_clubs, strava_get_gear

Prompts

  • strava_daily_training_director — practical daily training brief

  • strava_weekly_endurance_review — week comparison + next-week endurance plan

  • strava_activity_stream_investigator — investigate one activity using streams (GPS-aware)

Each accepts timezone (IANA, default UTC).

Resources

  • strava://capabilities, strava://agent-manifest

  • strava://athlete

  • strava://latest/activity

  • strava://summary/daily, strava://summary/weekly

Privacy & security

  • OAuth tokens are stored in ~/.strava-mcp/tokens.json with 0600 permissions and are never returned by tools.

  • Write/upload scopes are not requested by default — read-only by design.

  • GPS lat/lng and route geometry are recursively removed in summary and structured modes, and only included with explicit include_gps=true for stream calls or raw mode.

  • Structured mode otherwise preserves complete upstream physiological records and future Strava fields.

  • Activity after / before filters retain instant semantics when converted from timezone-aware ISO date-times to Strava epoch seconds; invalid ranges fail before HTTP.

  • Route geometry is also redacted unless raw mode is explicitly requested.

  • The MCP client never sees access or refresh tokens.

  • This is not medical advice. The server exposes user-authorized data for personal AI workflows, not diagnosis or training prescription.

Configuration

setup writes most of these into ~/.strava-mcp/config.json (0600). Manual env override is supported:

STRAVA_CLIENT_ID=…
STRAVA_CLIENT_SECRET=…
STRAVA_REDIRECT_URI=http://127.0.0.1:3000/callback

# Optional
STRAVA_SCOPES="read activity:read_all profile:read_all"
STRAVA_PRIVACY_MODE=structured        # summary | structured | raw
STRAVA_CACHE=sqlite                   # no effect: authenticated responses are never cached

Hermes / remote setup

npx -y strava-mcp-unofficial setup --client hermes --no-auth
npx -y strava-mcp-unofficial auth                       # run locally if browser auth is needed
npx -y strava-mcp-unofficial doctor --client hermes
hermes mcp test strava

Hermes commonly exposes Strava tools with a prefix:

  • mcp_strava_strava_agent_manifest

  • mcp_strava_strava_connection_status

  • mcp_strava_strava_daily_summary

  • mcp_strava_strava_weekly_summary

  • mcp_strava_strava_get_activity_streams

After Hermes config changes, use /reload-mcp or hermes mcp test strava. Don't restart the gateway for normal data access.

If browser OAuth has to happen on a different machine than Hermes, run auth locally and copy ~/.strava-mcp/tokens.json to the server with chmod 600. The token must include activity:read_all profile:read_all read for activity history and streams.

Requirements

  • Node.js 20+

  • A Strava app with redirect URI http://127.0.0.1:3000/callback

Why these scopes:

  • read — public profile, routes and public Strava resources

  • activity:read_all — your activities, including private activities visible to your app

  • profile:read_all — fuller authenticated athlete profile fields

No write scope is requested by default.

Development

git clone https://github.com/davidmosiah/strava-mcp.git
cd strava-mcp
npm install
npm test
npm run build

Test with MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js

See also

The full Delx Wellness connector library:

One-command setup for Hermes — preconfigures every connector above plus wellness skills + onboarding: delx-wellness-hermes.

📧 Contact & Support

License

MIT — see LICENSE.

Disclaimer

This software is provided as-is. It is not a medical device, does not provide medical advice, and should not be used for diagnosis, treatment or training prescription. Always consult qualified professionals for medical or training concerns.

Skill or MCP

Same package, two doors. MCP registers tools on stdio/HTTP. The skill can drive the same tools through the CLI when the client has no MCP:

npx -y strava-mcp-unofficial call strava_connection_status --json '{}'

Copy skill/SKILL.md into your agent skills dir.

Release migration

Before upgrading to 0.7.0, review the compatibility and migration notes.

Available Tools

29 tools
strava_activity_seriesStrava Activity SeriesA
Read-onlyIdempotent

Bounded time-series for one activity metric (agent-safe-series/v1). Returns exact stats on full-resolution samples plus a downsampled series capped at 500 points, so a multi-hour ride never blows the context window. Prefer strava_get_activity / zones first; reach for this when you need the shape of the effort. GPS is never returned here. Shared contract with garmin_activity_series / Kindred workout_series.

Inputs: id (required), metric, max_points, response_format, +2 more. Returns: unit, notes, stats, method, +13 more

strava_agent_manifestStrava Agent ManifestA
Read-onlyIdempotent

Machine-readable install, runtime and client guidance for AI agents. Includes Hermes direct tool names and anti-gateway-restart guidance. Does not call Strava or expose secrets.

Inputs: client, response_format. Returns: links, oauth, client, hermes, +9 more

strava_cache_statusStrava Cache StatusB
Read-onlyIdempotent

Show optional local SQLite cache status. Enable with STRAVA_CACHE=sqlite or STRAVA_CACHE=true.

Inputs: response_format. Returns: path, enabled, entries, http_cache, +1 more

strava_capabilitiesStrava MCP CapabilitiesA
Read-onlyIdempotent

Explain supported Strava data, privacy boundaries, GPS handling, recommended agent workflow and project links. Does not call Strava or expose secrets.

Inputs: response_format. Returns: links, creator, project, mcp_name, +8 more

strava_connection_statusStrava Connection StatusA
Read-onlyIdempotent

Check local Strava config, token file, Node version, privacy mode, cache readiness and optional MCP client readiness without calling Strava or exposing secrets.

Inputs: client, response_format. Returns: ok, node, cache, oauth, +12 more

strava_daily_summaryStrava Daily Training SummaryA
Read-onlyIdempotent

Build a practical daily training/load summary from recent Strava activities. Read-only and non-medical.

Inputs: days, timezone, response_format. Returns: kind, generated_at

strava_data_inventoryStrava Data InventoryA
Read-onlyIdempotent

Inventory supported Strava data domains, auth scope requirements, privacy boundary and recommended first calls. Does not call Strava APIs or expose user data.

Inputs: response_format. Returns: auth, kind, links, notes, +12 more

strava_demoStrava DemoA
Read-onlyIdempotent

Returns realistic example payloads of strava_daily_summary, strava_training_context, and strava_list_activities so agents see the contract before calling real Strava APIs.

Inputs: response_format.

strava_exchange_codeExchange Strava OAuth CodeA

Exchange a Strava OAuth authorization code for local tokens. Tokens are stored locally with 0600 permissions and are never returned. Requires explicit user action: the user must complete browser OAuth and supply the authorization code (agents must not invent codes).

Inputs: code (required), response_format. Returns: ok, note, scope, expires_at, +1 more

strava_get_activityStrava ActivityB
Read-onlyIdempotent

Get detailed activity data by id. Summary/structured modes protect raw GPS details.

Inputs: id (required), privacy_mode, response_format, explicit_user_intent. Returns: data, endpoint, privacy_mode

strava_get_activity_streamsGet Activity StreamsA
Read-onlyIdempotent

Get raw Strava activity streams (time, distance, heartrate, cadence, watts, altitude). For agent work prefer strava_activity_series — it returns agent-safe-series/v1 with hard point caps and exact stats. GPS latlng is withheld unless include_gps=true or privacy_mode=raw (both require explicit_user_intent=true).

Inputs: id (required), keys, resolution, include_gps, +3 more. Returns: data, endpoint, privacy_mode

strava_get_activity_zonesStrava Activity ZonesA
Read-onlyIdempotent

Get heart-rate/power zones for an activity when available.

Inputs: id (required), privacy_mode, response_format, explicit_user_intent. Returns: data, endpoint, privacy_mode

strava_get_athleteGet Authenticated AthleteB
Read-onlyIdempotent

Get the authenticated Strava athlete profile. Requires read/profile scope depending on requested fields.

Inputs: privacy_mode, response_format, explicit_user_intent. Returns: data, endpoint, privacy_mode

strava_get_athlete_statsGet Athlete StatsB
Read-onlyIdempotent

Get public-visible aggregate Strava stats for the authenticated athlete.

Inputs: privacy_mode, response_format, explicit_user_intent. Returns: data, endpoint, privacy_mode

strava_get_auth_urlGet Strava OAuth URLA
Read-onlyIdempotent

Generate a Strava OAuth authorization URL. Use this first when no local token exists.

Inputs: state, scopes, response_format. Returns: scopes, auth_url, next_step, redirect_uri

strava_get_gearStrava GearB
Read-onlyIdempotent

Get gear/equipment details by id.

Inputs: id (required), privacy_mode, response_format, explicit_user_intent. Returns: data, endpoint, privacy_mode

strava_get_routeStrava RouteA
Read-onlyIdempotent

Get route details by id. Summary/structured modes avoid full route geometry.

Inputs: id (required), privacy_mode, response_format, explicit_user_intent. Returns: data, endpoint, privacy_mode

strava_get_zonesGet Athlete ZonesB
Read-onlyIdempotent

Get the authenticated athlete heart-rate and power zones when available.

Inputs: privacy_mode, response_format, explicit_user_intent. Returns: data, endpoint, privacy_mode

strava_list_activitiesStrava ActivitiesA
Read-onlyIdempotent

List authenticated athlete activities. Supports after/before filters and Strava pagination. Requires activity:read or activity:read_all.

Inputs: page, after, limit, before, +5 more. Returns: count, records, endpoint, has_more, +3 more

strava_list_clubsStrava ClubsA
Read-onlyIdempotent

List clubs joined by the authenticated athlete.

Inputs: page, after, limit, before, +5 more. Returns: count, records, endpoint, has_more, +3 more

strava_list_routesStrava RoutesA
Read-onlyIdempotent

List authenticated athlete routes. GPS/map geometry is redacted unless raw mode is requested.

Inputs: page, after, limit, before, +5 more. Returns: count, records, endpoint, has_more, +3 more

strava_onboardingWellness Onboarding FlowA
Read-onlyIdempotent

Read-only. Return the 11-question Delx Wellness onboarding flow (en or pt-BR), the current shared profile, missing critical fields, and a cross-connector hint. Use this when the user starts a fresh wellness session and you need to fill out preferred_name, goals, devices, training context, nutrition, preferences, and safety. Strava continues to redact GPS by default — onboarding does not change that.

Inputs: locale, response_format.

strava_privacy_auditStrava Privacy AuditA
Read-onlyIdempotent

Return local privacy, cache, token-path, GPS redaction and env-presence posture without revealing secret values.

Inputs: response_format. Returns: notes, project, cache_path, token_path, +13 more

strava_profile_getGet Shared Wellness ProfileA
Read-onlyIdempotent

Read the canonical Delx Wellness profile shared with the other wellness MCP connectors (Nourish, Cycle Coach, CGM, etc.). Read-only. Profile stores only what the user typed during onboarding — never OAuth tokens, API keys, or biomarkers. Note: this profile does NOT change Strava's GPS-redaction default; Strava continues to redact latlng and route geometry unless STRAVA_GPS_INCLUDE=true or include_gps=true is explicitly passed.

Inputs: response_format.

strava_profile_updateUpdate Shared Wellness ProfileA

Persist a partial patch to the canonical Delx Wellness profile. Requires explicit_user_intent=true after the user confirms they want to save. Rejects secret-like fields (oauth, token, api_key, password, cookie, refresh, session). Strava's GPS-redaction default is unaffected by profile changes.

Inputs: patch (required), response_format, explicit_user_intent.

strava_quickstartStrava QuickstartA
Read-onlyIdempotent

Personalized 3-step setup walkthrough for the human user. Adapts to current state (env vars set? token present? what's next?). Call this first when the user asks 'how do I connect Strava?'

Inputs: response_format.

strava_revoke_accessRevoke Strava OAuth AccessA
Destructive

Revoke the current Strava OAuth access grant and delete the local token file. Use only when the user explicitly wants to disconnect Strava. Gated by explicit_user_intent: true (requires explicit user intent).

Inputs: response_format, explicit_user_intent. Returns: ok, note, token_path, local_tokens_cleared

strava_training_contextStrava Training ContextA
Read-onlyIdempotent

Normalize recent Strava activity load into a compact training_context for workout recommendation engines. Includes fallback guidance when recent Strava activity is missing.

Inputs: days, notes, soreness, timezone, +2 more. Returns: notes, source, privacy, soreness, +13 more

strava_weekly_summaryStrava Weekly Training ReviewA
Read-onlyIdempotent

Build a weekly Strava scorecard with volume, intensity, sport mix, bottlenecks and next-week actions. Read-only and non-medical.

Inputs: days, timezone, compare_days, response_format. Returns: kind, generated_at

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 29 tools

    Disambiguation2/5

    Several tools overlap heavily: strava_data_inventory and strava_capabilities both describe supported data, privacy boundaries, and recommended workflows; connection_status, privacy_audit, and cache_status have overlapping status/privacy checks; get_activity_streams and activity_series both expose time-series data. Core data tools are mostly distinct, but the meta/status cluster creates real selection ambiguity.

    Naming Consistency3/5

    All tools share the strava_ prefix and snake_case, but the post-prefix pattern is inconsistent: verb-first names like list_activities and get_athlete coexist with noun-first names like profile_get and profile_update and pure nouns like daily_summary, activity_series, and onboarding. This mix is still readable but does not follow a predictable verb_noun convention throughout.

    Tool Count2/5

    29 tools is above the comfortable range, and many are meta/status/setup tools such as data_inventory, capabilities, agent_manifest, quickstart, demo, connection_status, cache_status, and privacy_audit that could be consolidated. The core Strava data surface is broad, but the extra support and onboarding tools bloat the set.

    Completeness4/5

    The set covers OAuth lifecycle, athlete/profile/activity/route/club/gear reads, streams, summaries, and training context, so most agent workflows are supported. Minor gaps remain, such as no activity upload/create/update and no club detail or segment/effort endpoints, but these are not central to the apparent read and training-analysis purpose.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A multi-platform fitness MCP server that syncs data from Garmin, Strava, Google Fit, and Suunto into a local DuckDB database and provides analytics tools via MCP.
      1
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An open-source, Strava-first remote MCP server that enables users to authorize with Strava and ask AI about their training data.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server that supplements the official Strava connector with write access, segments, routes, photos, derived analysis, and interactive visualizations.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      MCP server for local fitness-data extraction and analysis from Garmin Connect, Intervals.icu, and Strava. Provides read-only analytical tools over DuckDB and targeted Strava enrichment.
      35
      164 npm
      1
      AGPL 3.0