Athlete MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Athlete MCPsummarize my training this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Athlete MCP
An open-source, Strava-first remote MCP server for ChatGPT, Claude, and Gemini clients.
Athlete MCP lets each user authorize with Strava and then ask an AI about their own training. It is a hosted, multi-user MCP service—not a local script and not a shared Strava token. The initial release is read-only by design.
Why this exists
FitMCP demonstrates a strong product shape: hosted onboarding, per-user sports connections, and one remote MCP URL. Athlete MCP keeps that low-friction shape but starts much narrower and deeper:
One-click delegated Strava authorization; no separate Athlete MCP password.
Streamable HTTP at
/mcp, OAuth 2.1-style authorization code + PKCE, protected-resource metadata, refresh-token rotation, and dynamic client registration.Encrypted Strava access and refresh tokens in PostgreSQL.
Deterministic analysis instead of asking the model to calculate from thousands of samples.
Rate-limit-aware caching and Strava webhook invalidation.
No raw GPS coordinates in tool requests or responses.
Read-only tools and least-privilege MCP annotations.
Tools
Tool | Best use |
| Athlete identity, recent totals, lifetime totals |
| Find workouts and answer calendar/history questions |
| Exact laps, splits, best efforts, and activity facts |
| Power, HR zones, splits, aerobic decoupling, pacing |
| Weekly volume, sport mix, consistency, Relative Effort |
| Compare repeated routes, races, or workouts |
The analysis layer labels estimates and missing sensor data. Strava's activity API does not provide the sleep, HRV, Body Battery, or readiness data that a Garmin-native integration can expose.
Architecture
flowchart LR
C["ChatGPT / Claude / Gemini client"] -->|"OAuth + Streamable HTTP"| M["Athlete MCP"]
M -->|"Authorization code"| S["Strava OAuth"]
M -->|"Encrypted token storage + cache"| P[("PostgreSQL")]
M -->|"V3 API"| A["Strava API"]
A -->|"Activity webhooks"| MThere are two separate trust boundaries:
The MCP client authenticates to Athlete MCP. Athlete MCP issues short-lived access tokens and rotating refresh tokens.
Athlete MCP authenticates to Strava for that athlete. Strava tokens are encrypted with AES-256-GCM before storage.
The user's Strava login is the Athlete MCP account. The authorization endpoint delegates directly to Strava, then returns an MCP authorization code to the requesting client.
Local setup
Requirements: Node.js 22+, Docker, and a registered Strava API application.
New Strava applications begin with an athlete capacity of 1 (Single Player Mode). The API settings dashboard can raise this to 10 once the app is configured; connecting more than 10 athletes requires Strava review. A technically public MCP server does not bypass this platform limit.
Copy
.env.exampleto.envand fill in the values.Set the Strava application's authorization callback domain to the hostname in
PUBLIC_BASE_URL.Start PostgreSQL:
docker compose up -d postgresInstall and run:
npm install npm run dev
Strava must redirect to:
https://YOUR_HOST/oauth/strava/callbackFor local development, use an HTTPS tunnel and set PUBLIC_BASE_URL to the public tunnel URL. Remote AI clients cannot call localhost directly.
Webhooks
Register one Strava webhook subscription for the application. One subscription receives events for all athletes who authorized that Strava app.
curl -X POST https://www.strava.com/api/v3/push_subscriptions \
-F client_id="$STRAVA_CLIENT_ID" \
-F client_secret="$STRAVA_CLIENT_SECRET" \
-F callback_url="https://YOUR_HOST/webhooks/strava" \
-F verify_token="$STRAVA_WEBHOOK_VERIFY_TOKEN"Activity events invalidate cached activity lists. Athlete deauthorization deletes the athlete connection and cascades deletion of MCP tokens and cached data.
Connect clients
Use the same endpoint for every client:
https://YOUR_HOST/mcpClaude
In Claude, go to Customize → Connectors → Add custom connector, enter the MCP URL, and complete the OAuth flow. Claude remote connectors support Streamable HTTP, OAuth, refresh tokens, and dynamic client registration. See Anthropic's current custom connector guide.
Gemini CLI
gemini mcp add --transport http athlete-mcp https://YOUR_HOST/mcpThen run /mcp auth athlete-mcp if authentication does not start automatically. Gemini CLI supports OAuth discovery and dynamic client registration for remote HTTP MCP servers. See the Gemini CLI MCP documentation.
ChatGPT
Create a custom app in Settings → Apps (or the workspace Apps settings), supply the MCP URL, scan tools, and complete OAuth. Availability is currently plan/workspace dependent; consult the current ChatGPT developer-mode documentation.
Production checklist
Terminate TLS at a trusted public hostname; never deploy OAuth over plain HTTP.
Run the SQL migrations before starting the app.
Store
TOKEN_ENCRYPTION_KEYand the Strava client secret in a secret manager.Back up PostgreSQL and test token-key rotation before production.
Add request-level rate limiting at the edge for registration, authorization, and token endpoints.
Add OpenTelemetry/audit events without logging bearer tokens, refresh tokens, activity descriptions, or tool payloads.
Configure Strava webhooks; default Strava limits are small enough that polling is not a viable multi-user design.
Upgrade the Strava application's athlete capacity and complete Strava review before promising open signup.
Complete a security review before enabling any future
activity:writetool.Publish a privacy policy and data deletion path before inviting external users.
Current limitations
No user-facing dashboard or token-revocation UI yet.
No weather correlation, route matching, or FIT-file ingestion yet.
No write tools. Strava cannot schedule structured workouts through the V3 activity API.
PostgreSQL migrations are plain SQL; there is no migration runner yet.
Tool output is English-only.
Development
npm run typecheck
npm test
npm run buildThe project follows the MCP Streamable HTTP recommendation, the MCP authorization specification, and Strava's official OAuth, API reference, webhook, and rate-limit documentation.
License
MIT. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chamilqs/athlete-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server