get_athlete
Retrieve your Strava athlete profile to access personal statistics, training metrics, and performance data for fitness analysis.
Instructions
Get the profile of the authenticated Strava athlete
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:71-76 (handler)The handler for the 'get_athlete' tool. It calls the Strava API at the '/athlete' endpoint using the `stravaFetch` helper.
async () => { const athlete = await stravaFetch("/athlete"); return { content: [{ type: "text", text: JSON.stringify(athlete, null, 2) }], }; } - src/index.ts:67-77 (registration)The registration of the 'get_athlete' tool on the MCP server.
server.tool( "get_athlete", "Get the profile of the authenticated Strava athlete", {}, async () => { const athlete = await stravaFetch("/athlete"); return { content: [{ type: "text", text: JSON.stringify(athlete, null, 2) }], }; } );