strava-mcp

v0.4.6
io.github.davidmosiah/strava-mcp Checked 7 hours ago Published 6 months ago

Privacy-first MCP server for Strava activities, streams, routes and training.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

strava_data_inventory Strava Data Inventory

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

ParameterTypeDescription
response_formatstring

strava_agent_manifest Strava Agent Manifest

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.

ParameterTypeDescription
clientstring
response_formatstring

strava_capabilities Strava MCP Capabilities

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

ParameterTypeDescription
response_formatstring

strava_quickstart Strava Quickstart

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?'

ParameterTypeDescription
response_formatstring

strava_demo Strava Demo

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.

ParameterTypeDescription
response_formatstring

strava_get_auth_url Get Strava OAuth URL

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

ParameterTypeDescription
response_formatstring
scopesarrayOptional scope override. Defaults to read-only Strava scopes used by this server.
statestringOptional OAuth state value generated by the caller.

strava_exchange_code Exchange Strava OAuth Code

Exchange a Strava OAuth authorization code for local tokens. Tokens are stored locally with 0600 permissions and are never returned.

ParameterTypeDescription
code *stringOAuth authorization code, or a full redirect URL containing ?code=...
response_formatstring

strava_get_athlete Get Authenticated Athlete

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

ParameterTypeDescription
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
response_formatstring

strava_get_zones Get Athlete Zones

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

ParameterTypeDescription
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
response_formatstring

strava_get_athlete_stats Get Athlete Stats

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

ParameterTypeDescription
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
response_formatstring

strava_list_activities Strava Activities

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

ParameterTypeDescription
afterstringOnly return activities after this time. Converted to Strava epoch seconds.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return activities before this time. Converted to Strava epoch seconds.
limitintegerStrava per_page value. Strava allows up to 200.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerStrava page number.
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
response_formatstring

strava_list_routes Strava Routes

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

ParameterTypeDescription
afterstringOnly return activities after this time. Converted to Strava epoch seconds.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return activities before this time. Converted to Strava epoch seconds.
limitintegerStrava per_page value. Strava allows up to 200.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerStrava page number.
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
response_formatstring

strava_list_clubs Strava Clubs

List clubs joined by the authenticated athlete.

ParameterTypeDescription
afterstringOnly return activities after this time. Converted to Strava epoch seconds.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return activities before this time. Converted to Strava epoch seconds.
limitintegerStrava per_page value. Strava allows up to 200.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerStrava page number.
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
response_formatstring

strava_get_activity Strava Activity

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

ParameterTypeDescription
id *Strava resource id.
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
response_formatstring

strava_get_activity_zones Strava Activity Zones

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

ParameterTypeDescription
id *Strava resource id.
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
response_formatstring

strava_get_route Strava Route

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

ParameterTypeDescription
id *Strava resource id.
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
response_formatstring

strava_get_gear Strava Gear

Get gear/equipment details by id.

ParameterTypeDescription
id *Strava resource id.
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
response_formatstring

strava_get_activity_streams Get Activity Streams

Get Strava activity streams such as time, distance, heartrate, cadence, watts and altitude. GPS latlng is withheld unless include_gps=true or privacy_mode=raw.

ParameterTypeDescription
id *Strava activity id.
include_gpsbooleanAllow latlng stream in structured output. Raw mode always returns requested upstream payload.
keysarrayStream keys to request. latlng is withheld unless privacy_mode=raw or include_gps=true.
privacy_modestringOptional per-call privacy override. Defaults to STRAVA_PRIVACY_MODE or structured. raw returns upstream Strava JSON. summary removes GPS/map details.
resolutionstringOptional Strava stream resolution.
response_formatstring

strava_connection_status Strava Connection Status

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

ParameterTypeDescription
clientstring
response_formatstring

strava_cache_status Strava Cache Status

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

ParameterTypeDescription
response_formatstring

strava_privacy_audit Strava Privacy Audit

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

ParameterTypeDescription
response_formatstring

strava_revoke_access Revoke Strava OAuth Access

Revoke the current Strava OAuth access grant and delete the local token file. Use only when the user explicitly wants to disconnect Strava.

ParameterTypeDescription
response_formatstring

strava_daily_summary Strava Daily Training Summary

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

ParameterTypeDescription
daysintegerLookback window for recent training context.
response_formatstring
timezonestringIANA timezone used only for display, e.g. America/New_York.

strava_weekly_summary Strava Weekly Training Review

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

ParameterTypeDescription
compare_daysintegerPrior comparison window in days. Use 0 to disable comparison.
daysintegerRecent analysis window in days.
response_formatstring
timezonestringIANA timezone used only for display, e.g. America/New_York.

strava_training_context Strava Training Context

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

ParameterTypeDescription
daysintegerLookback window for normalized Strava training context.
injury_flagsarray
notesstring
response_formatstring
sorenessarray
timezonestringIANA timezone used only for display, e.g. America/New_York.

strava_profile_get Get Shared Wellness Profile

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.

ParameterTypeDescription
response_formatstring

strava_profile_update Update Shared Wellness Profile

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.

ParameterTypeDescription
patch *objectPartial WellnessProfileDocument patch. Top-level keys: profile, goals, devices, training, nutrition, preferences, safety, notes.
explicit_user_intentbooleanSet to true ONLY after the user has explicitly confirmed they want to save this. Otherwise the tool refuses to write.
response_formatstring

strava_onboarding Wellness Onboarding Flow

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.

ParameterTypeDescription
localestringOnboarding locale. Defaults to en.
response_formatstring