
Strava MCP Bridge
io.github.millerchouPublished by GitHub account millerchouv0.1.1Updated Oct 27, 2026
Use Strava's official MCP from Codex and other local stdio clients without a developer app.
Overview
Local stdio bridge that lets Codex and other local MCP clients use Strava's official MCP for activity and training data without a developer app.
- What you can do
- Check bridge health and Strava subscription eligibility
- List Strava activities and fetch non-location activity streams
- Read activity performance data for training analysis
- Keep full stream arrays in local files and return only paths and point counts
- Block GPS, location and polyline fields before they reach the model context
- When to use it
- For Apple Silicon Mac users on Codex, OpenCode or another local stdio client who have an eligible Strava subscription, do not want to create a Strava developer app, and want local credential custody with conservative location-data controls.
- Requirements
- Apple Silicon macOS (darwin arm64), Node.js 22+, Xcode Command Line Tools, an eligible Strava subscription, and one successful official Strava MCP authorization in Claude Code before running bootstrap. Credentials are stored in macOS Keychain; no environment variables are declared.
Installation
In SourceWeft
- Open Strava MCP Bridge in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
strava-mcp-bridge
Use Strava's official MCP from Codex, OpenCode, and other local stdio MCP clients without creating your own Strava developer app.
The bridge runs locally on Apple Silicon macOS. Its OAuth credential is kept in macOS Keychain, large activity streams stay in local files, and GPS/location data is blocked before it can enter the AI context.
[strava-mcp-bridge: official Strava MCP for Codex, with local credentials and local streams]
What It Enables
Once connected, a local coding agent can use Strava data as part of a real project workflow instead of working from copied summaries or synthetic data.
Other example tasks:
- "Compare heart-rate load across my rides this week."
- "Fetch the non-location streams for this activity and update my analysis."
- "Use my latest cycling data to refresh the PMC/TRIMP dashboard in this repo."
The bridge supplies the safe Strava connection. Your agent can then combine the result with local scripts, notebooks, dashboards, or training-analysis code.
Why This Exists
Strava publishes an official MCP connector, but its documented first-time authorization flow currently targets Claude clients. Codex supports MCP, yet it cannot currently complete this Strava OAuth bootstrap directly.
strava-mcp-bridge fills that gap:
- You authorize the official Strava MCP once through Claude Code.
- You explicitly run
strava-mcp-bridge bootstrap. - The bridge migrates the authorized credential into its own Keychain item.
- It maintains the rotating refresh-token chain and forwards approved MCP
requests to
https://mcp.strava.com/mcp. - Normal Codex/OpenCode use no longer reads or invokes Claude Code.
This is not a Strava REST API wrapper and does not provide shared credentials or bypass user authorization.
Choose The Right Path
Managed connector behavior varies by provider. Review its data path and terms before connecting fitness data.
Good Fit / Not A Fit
Use this bridge when all of these are true:
- You use Codex, OpenCode, or another client that can run local stdio MCP servers.
- You have access to Strava's official MCP through an eligible Strava subscription.
- You do not want to create and maintain a Strava developer app.
- You prefer local credential custody and conservative data controls.
- You are on an Apple Silicon Mac.
Use another path when any of these are true:
- Claude's official connector already covers your workflow.
- Creating a Strava developer app is acceptable and you want a conventional REST API integration.
- Your source of truth is Garmin, Intervals.icu, Apple Health, or another system.
- You need Linux, Windows, or Intel Mac support.
- You do not have an eligible Strava subscription.
Requirements
- Apple Silicon macOS (
darwin arm64) - Node.js 22+
- Xcode Command Line Tools (
xcode-select --install) - An eligible Strava subscription
- One successful official Strava MCP authorization in Claude Code
A paid Claude subscription is not required by this bridge. The authorization has also been validated with Claude Code launched through Ollama; the important component is the Claude Code OAuth client, not the model backend.
Install
Install the bundled Codex skill explicitly at user scope:
This writes only to $HOME/.agents/skills/strava-mcp-bridge; it does not edit
Codex or MCP configuration. To keep the skill inside one project instead:
Start a new Codex task after installation, then invoke
$strava-mcp-bridge. Existing different skill content is never overwritten
unless you review the target and pass --force explicitly.
1. Authorize The Official Strava MCP Once
Add the official endpoint to Claude Code:
Inside Claude Code, run /mcp, select strava, and complete the Strava browser
authorization. This is the only step that needs Claude Code.
2. Bootstrap The Local Bridge
bootstrap:
- builds the native Keychain helper when needed;
- imports and claims the authorized refresh-token chain;
- stores the bridge-owned credential in macOS Keychain;
- prints a project-scoped Codex MCP configuration snippet;
- never prints token values.
Add the generated snippet to the target project's .codex/config.toml, restart
Codex (or start a new task), then call health before enabling activity tools.
For a training sync configuration:
The generated profile exposes:
healtheligibilitylist_activitiesget_activity_streamsget_activity_performance
The bundled Codex skill guides the
agent through doctor, bootstrap, project-level configuration, and safe
failure handling. A source checkout exposes it as a repository skill; the
skill install command makes it discoverable from other projects.
How It Works
The bridge is both a transport adapter and a local policy boundary:
- remote Streamable HTTP MCP is presented as a local stdio MCP server;
tools/callis denied unless its tool name is explicitly allowlisted;tools/listis filtered to the local allowlist;- access tokens are sent only to the pinned official MCP endpoint by default;
- OAuth refresh uses the pinned Strava token endpoint and MCP resource;
- MCP sessions are reinitialized after expiry and deleted on stdio shutdown.
Privacy Defaults
Location Data
get_activity_streams requires an explicit stream list. The accepted streams
are:
Location/GPS/polyline-like streams are rejected before forwarding. Other structured tool responses are recursively redacted for common location keys, coordinate text, coordinate arrays, polylines, maps, and token-like fields. Opaque non-JSON text and non-text content blocks fail closed.
Large Streams
Full stream arrays are never returned to the MCP client context. They are
written atomically to a current-user-owned directory (0700) as regular files
with mode 0600. The tool result contains only the path, stream names, point
counts, and omitted_from_context=true.
Default location:
Retention cleanup is a dry run unless --yes is supplied:
See SECURITY.md and THREAT_MODEL.md for the complete controls and residual risks.
Credential Lifecycle
The bridge-owned Keychain item is:
The explicit import is a credential ownership migration, not a passive copy. Strava refresh tokens rotate, so claiming the chain for bridge-owned operation can make Claude Code's previous copied refresh token stale. Claude Code can reauthorize later if it needs its own connection again.
Normal MCP startup reads only the bridge-owned Keychain item. It does not import from Claude Code or modify Claude Code configuration.
Keychain Permission Dialogs
During bootstrap, macOS may show two different prompts:
/usr/bin/securityreadingClaude Code-credentials: choose Allow, not Always Allow. This is the explicit one-time import.strava-keychain-helperreading the bridge-owned item: Allow is the least-privilege choice. Always Allow avoids repeat prompts but accepts the documented same-user helper risk.
A rebuilt helper may trigger a new prompt after an upgrade.
Useful Commands
See strava-mcp-bridge --help for endpoint, timeout, data-directory, and
diagnostic override options.
Removing Access
This never removes Claude Code's credential. To revoke access on Strava's side, deauthorize the connection in Strava's connected-app settings.
Current Status
- Experimental
0.1.x - Apple Silicon macOS only
- Official Strava MCP, not a REST API reimplementation
- First OAuth bootstrap still requires Claude Code
- No verified standards-only dynamic client registration path exists today
- Published in the official MCP Registry as
io.github.millerchou/strava-mcp-bridge - Strava says support for other clients is planned
The restriction appears at OAuth client registration/token issuance, not at the LLM model or a simple User-Agent check. Generic RFC 7591 registration attempts were rejected during isolated testing.
Development
Tests use local mocks. They do not contact Strava or read Keychain.
Release-owner instructions are in RELEASING.md.
Disclaimer
This is an unofficial community project. It is not affiliated with or endorsed by Strava, Anthropic, OpenAI, or the OpenCode maintainers. Strava can change its OAuth, MCP, subscription, or client-support behavior at any time.
Source: README.md at commit 13f80d3
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts