MCPacer
Provides tools to integrate with Strava, allowing retrieval of activities, run details, and posting coaching feedback to Strava activity descriptions.
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., "@MCPacerwhat's my training plan for next 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.

An AI-powered running coach that connects Claude to your Strava data through the Model Context Protocol (MCP). Get personalized training plans, track your progress, and receive coaching feedback ā all through a web dashboard with an integrated coaching terminal. Currently, it has only been tested on Ubuntu.
ā ļø Use at your own risk. This is supposed to be a fun gadget to mess around with. That being said, I am only a hobby jogger, and it does run on top of claude code so if it messes up your computer or gets you injured it is not my fault. So take care, but also do have fun with it! I initially developped this to learn about MCP servers, and coach myself to a sub-3 hour marathon (https://www.strava.com/activities/17976045034) in a 14-ish week build starting from a 3:11:02 PR. We refined this repo during the CSAIL Agentic AI Hackathon 2026 to make it easier to use by adding UI features, a new experimental S&C tab, and improving the coaching workflow. Happy running š¤
Pete
P.S. I can highly recommend coach David or coach Kim
Features
Customizable Personas ā Choose from multiple coaching styles (tough love, balanced, analytical, etc.)
Web Dashboard ā Plan overview, weekly breakdown, run detail with GPS maps and workout analysis charts
Integrated Coaching Terminal ā Chat with your AI coach directly in the dashboard
Training Plans ā Create, track, and adjust structured plans in YAML format
Strava Sync ā Automatically pull activities, laps, HR, pace, and GPS data
Plan Adherence ā Visual comparison of planned vs actual weekly mileage
Persistent Memory ā Coach remembers your goals, injuries, patterns, and session history across conversations. This enables periodization.
Run Digestion ā Each run gets a compact single-line summary for efficient context loading
Body Map (PT mode) ā Discuss imbalances, pain, and tightness directly with your coach to devise a strength and conditioning plan.
Related MCP server: Garmin Coach MCP
Getting Started
Prerequisites
Python 3.12+
UV ā Python package manager
Node.js 18+ ā Required for the web frontend (includes npm)
Install
git clone https://github.com/wernerpe/mcpacer.git
cd mcpacer
uv sync
claude mcp add strava -- uv run --directory $(pwd) mcpacer-server
cp -r skills/mcpacer ~/.claude/skills/mcpacerThis installs dependencies, registers the MCP server with Claude Code, and installs the /mcpacer coaching skill.
Launch
uv run mcpacerThis starts both the FastAPI backend and SvelteKit frontend, then opens your browser. On first launch you'll see the onboarding screen.
Onboarding
The onboarding screen walks you through connecting to Strava:
Create a Strava API app ā Go to developers.strava.com/docs/getting-started (Section B) and create an app with:
Application Name:
My Strava Running CoachWebsite:
http://localhostAuthorization Callback Domain:
localhost
Enter your credentials ā Paste the Client ID and Client Secret into the onboarding form
Authorize ā Click "Connect to Strava", approve in the popup, and you're in
Credentials and tokens are stored locally in .env and never leave your machine.
How It Works
Coaching Sessions
Run /mcpacer in the coaching terminal. The skill handles everything automatically:
Loads coach memory, run context, plan context, and session logs
Auto-loads your preferred persona
Digests any new runs
Opens the conversation
The coach reviews your training and responds based on your plan, recent activity, and history:
How's that groin feeling? And are we sticking to the dress rehearsal plan tomorrow or are you going to "freestyle" it again?
Accountability is everything in training. The coach posts directly to your Strava activity descriptions. Feedback is concise, references the plan, and focuses on what matters:
Plan said 4x1km @ 3:55. You did 6x1km @ 3:39. That's 50% more volume and 16s/km faster than prescribed ā in f***ing taper week. The hay is in the barn. Stop setting the damn barn on fire. I can't believe this.
Dashboard Panels
Panel | What it shows |
Plan Overview | Vertical bar chart of weekly mileage ā planned (grey) vs actual (colored) |
Week Detail | Day-by-day breakdown with prescribed and completed runs |
Run Detail | GPS map, stats grid, workout analysis chart with proportional lap bars, splits table |
Coach | Integrated terminal running Claude Code |
All panel dividers are draggable (VS Code-style).
Training Plans
Plans are YAML files in training_plans/. The coach can create, modify, and track plans through MCP tools. Example structure:
plan_name: Sub-3 Marathon Build
goal_race:
date: 2026-04-04
goal_time: "2:59:59"
weeks:
- week_number: 1
total_planned_distance_km: 75
runs:
- day_of_week: Wednesday
type: workout
distance_km: 16
structure: "2.5km warmup, 5x2km @ 3:50-3:55, cooldown"Coaching Personas
Personas live in coaching_data/personas/ as markdown files. Each defines a coaching style, tone, and behavioral rules. Available: coach (balanced), david (tough love), roland, kim, hartmann. Create your own by adding a .md file.
Architecture
MCP Tools
The coach interacts with your data through these MCP tools:
Session Context
Tool | Description |
| Sync activities from Strava and return tiered training overview |
| Active plan as compact text with current week highlighted |
| List available persona names |
| Load a persona's full coaching guidelines |
| Load the onboarding questionnaire for a new athlete (PRs, goals, constraints) |
Coach Memory
Tool | Description |
| Load COACH_MEMORY.md (athlete knowledge, flags, patterns) |
| Rewrite a specific section in-place |
| Load recent session summaries (auto-distills older logs) |
| Write session summary at end of conversation |
Activities & Runs
Tool | Description |
| Get recent activities from Strava (paginated) |
| Get activities within a date range |
| Get a single activity by Strava ID |
| Get detailed data streams (pace, HR, altitude, cadence) |
| Formatted run summary with laps, HR, pace, elevation |
| Get runs needing digestion with pre-built prompts |
| Save a compact digest line for a run |
| Post coaching feedback to a Strava activity description |
| Add a coach note to a run (stored locally) |
Training Plans
Tool | Description |
| List all saved plans |
| Retrieve full plan YAML by ID |
| Modify a single workout |
| Update week-level metadata |
| Add a new workout to a week |
| Remove a workout from a week |
| Document changes with a comment |
Memory & Context
Every session starts fresh ā no conversation history carries over. All continuity comes from structured context loaded at session start:
SESSION CONTEXT (~4000 tokens)
āāā Coach Memory .............. ~600 tok
ā Long-term athlete knowledge: goals, PRs, injuries, patterns
ā āāā Session History (one-liners for older sessions)
āāā Run Context ............... ~1400 tok
ā Tiered by age: one-liners for old weeks, full detail for recent
āāā Plan Context .............. ~1100 tok
ā Day-by-day prescriptions, current week highlighted
āāā Session Logs .............. ~200 tok
ā Last 3 session summaries for conversation continuity
āāā Persona ................... ~500 tok
Coaching tone, personality, communication styleProject Structure
mcpacer/
āāā src/mcpacer/
ā āāā server.py # MCP server entry point
ā āāā strava_client.py # Strava API client
ā āāā tools/ # MCP tool implementations
ā āāā storage/ # Run and plan persistence
ā āāā web/
ā ā āāā app.py # FastAPI app (REST + WebSocket)
ā ā āāā api.py # Dashboard REST endpoints
ā ā āāā auth.py # Strava OAuth flow
ā ā āāā pty_manager.py # Claude Code PTY management
ā ā āāā launcher.py # Starts backend + frontend
ā āāā cli/ # CLI commands
āāā web/ # SvelteKit frontend
ā āāā src/
ā āāā routes/ # Page routes
ā āāā lib/ # Svelte components
āāā coaching_data/ # Personas (tracked), memory (gitignored)
āāā training_plans/ # Plan YAML files (gitignored)
āāā run_data/ # Cached Strava data (gitignored)
āāā skills/ # Claude Code skillsCLI Commands
uv run mcpacer # Launch the web dashboard
uv run mcpacer-update-data # Sync run data from Strava
uv run mcpacer-analyze-plan # Analyze plan adherence
uv run mcpacer-generate-calendar # Generate HTML training calendarUsing as MCP Server Only
If you prefer to use the coaching tools without the web dashboard (e.g., in Claude Desktop):
claude mcp add strava -- uv run --directory /path/to/mcpacer mcpacer-server
cp -r /path/to/mcpacer/skills/mcpacer ~/.claude/skills/mcpacerThen start a coaching session with /mcpacer in any Claude Code conversation.
Acknowledgements
This project started with a lot of inspiration from strava-mcp-server by Tomek Korbak.
License
MIT License ā see LICENSE for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceConnects Claude to your Strava account for analyzing training, predicting race times, and generating periodized training plans via natural language.Last updated13108ISC
- Flicense-qualityBmaintenanceConnects Claude to Garmin Connect data for personalized running coaching, including morning readiness checks, post-run analysis, weekly reviews, and goal tracking.Last updated
- AlicenseAqualityDmaintenanceConnects Strava training data to Claude, enabling personalized coaching through analysis of training load, workout planning, gear maintenance, and power metrics.Last updated10MIT
- Alicense-qualityDmaintenanceExposes your Strava data to Claude, enabling training load analysis, activity comparison, and lap splits via conversation.Last updated21MIT
Related MCP Connectors
Garmin data in Claude: 135 tools ā activities, sleep, HRV, training, workouts. Free, open source.
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
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/wernerpe/mcpacer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server