struggl-mcp
struggl-mcp provides deterministic sports-science calculators plus optional personal training-ledger tools for AI agents.
Get a unified coaching brief with profile, goals, pain constraints, EWMA ACWR load, 17-muscle weekly volume audit, e1RMs, equipment/preferences, and recent sessions.
Read athlete profile/goals, completed and planned sessions, and weekly muscle volume.
Log completed workouts or plan/schedule workouts, including batch sessions and debrief summaries.
Compute Hyrox pace bands, exact 8x1 km splits, and post-race/mock-sim autopsies.
Estimate 1RM, strength score, and tier for barbell and bodyweight lifts.
Prescribe working weights from reps@RPE with bodyweight handling, plate loading, and Zone 2 heart rate.
Audit weekly hypertrophy volume across 17 muscles using fractional set accounting and MEV/MAV/MRV landmarks.
Check hybrid-training interference: AMPK-mTOR windows, glycogen/hinge recovery, and 80/20 polarization.
Use 7 free no-auth science tools; the 6 personal ledger tools require optional OAuth/token account sync.
Click on "Deploy 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., "@struggl-mcp What's my Zone 2 heart rate if I'm 35 with a 48 bpm resting HR?"
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.
Why This Exists
Ask a frontier LLM what belt weight an 80 kg athlete (+30 kg x 5 @ RPE 9 pull-up) should use for 8 reps @ RPE 8, and it routinely forgets the 80 kg bodyweight on the bar — overshooting the belt prescription by +5 kg. Ask for Zone 2 heart rate (35 yo, 48 bpm RHR) and it defaults to 220 - Age, under-prescribing by 19 bpm. Ask if 10 sets of triceps isolation on top of 26 pressing sets is recoverable, and it misses +13 fractional synergist sets above MRV.
Full reproducible breakdown with curl calls and PubMed/Crossref DOIs: benchmarks/llm_fitness_math_traps.md.
struggl-mcp gives any coding or personal AI agent 13 deterministic tools over stateless Streamable HTTP (https://struggl.singandclap.com/mcp) + an interactive MCP Apps UI Card (ui://struggl/coach-card.html) + a portable agentskills.io SKILL.md.
Related MCP server: whoop-ai-mcp
7 Free Science Tools (Zero Auth, Zero Install, Instant Value)
Connect https://struggl.singandclap.com/mcp with no token and no signup to unlock all 7 deterministic calculators immediately:
Tool | What It Computes | Literature / Model Basis |
| Compromised Hyrox pace band, | 200k-finisher curve + Riegel (1981) |
| Exact Lap 1–8 | 200k-finisher piecewise decay ( |
| Post-race or mock-sim diagnostic: per-lap fade vs. target + P25–P75 station bottleneck leaks | Empirical station variance benchmarks |
| Piecewise Wathan e1RM, sex/BW/age score ( | Wathan (1994) / LeSuer et al. (1997) |
|
| Zourdos (2016) RIR + Tanaka (2001) & Karvonen (1957) HRR |
| Weekly 17-muscle hypertrophy audit ( | Schoenfeld (2017), Pelland (2024), Robinson (2024) |
| Weekly hybrid schedule conflict check ( | Wilson (2012), Robineau (2016), Schumann (2022), Seiler (2010) |
6 Personal Training Ledger Tools (Optional Account Sync)
For athletes who want their coding agent to fetch a 1-call physiological coaching brief (get_coaching_brief), check real 14-day fatigue between coding blocks, audit live weekly sets, and batch-log or schedule workouts (get_profile, get_sessions, get_muscle_volume, log_workout, plan_workout — automatically mirrored into a read-only feed in the STRUGGL mobile/web app):
Start your 30-day free STRUGGL Coach trial (no credit card) at https://struggl.singandclap.com/connect.
Connect via OAuth 2.1 + PKCE (
https://struggl.singandclap.com/v1/connector/mcp) or generate a scopedread/read + writepersonal token (stg_ath_...).
10-Second Install Across Every Agent Platform
1. Claude Code & Claude Desktop / Web
1-Click OAuth 2.1 Sign-In (Recommended — Zero Manual API Keys):
claude mcp add --transport http struggl https://struggl.singandclap.com/v1/connector/mcp(In Claude Code run /mcp → struggl → Authenticate; in Claude.ai / ChatGPT Connectors paste https://struggl.singandclap.com/v1/connector/mcp to open browser sign-in + interactive ui://struggl/coach-card.html UI cards.)
Instant Zero-Auth (7 free science calculators + Agent Skill):
claude mcp add --transport http struggl https://struggl.singandclap.com/mcpOr install the full plugin + skills via Claude Code's plugin manager:
/plugin marketplace add Kubyer/struggl-mcp
/plugin install struggl@struggl-marketplaceHeadless Personal Token Fallback:
claude mcp add --transport http struggl https://struggl.singandclap.com/mcp \
--header "Authorization: Bearer stg_ath_YOUR_PERSONAL_TOKEN"2. Universal SKILL.md (skills.sh — Cursor, Antigravity, Claude Code, Codex, Copilot)
npx skills add Kubyer/struggl-mcp3. Google Antigravity
Install directly via plugin.json (OAuth 2.1 automatic sign-in on https://struggl.singandclap.com/v1/connector/mcp), or add to ~/.gemini/antigravity/mcp_config.json:
{
"mcpServers": {
"struggl": {
"serverUrl": "https://struggl.singandclap.com/mcp"
}
}
}4. Cursor & Windsurf (.cursor/mcp.json)
{
"mcpServers": {
"struggl": {
"url": "https://struggl.singandclap.com/mcp"
}
}
}5. OpenAI Codex & ChatGPT (~/.codex/config.toml / Custom MCP)
[mcp_servers.struggl]
url = "https://struggl.singandclap.com/mcp"(In ChatGPT Connectors, connect https://struggl.singandclap.com/v1/connector/mcp via OAuth 2.1.)
6. Gemini CLI (geminicli.com/extensions)
gemini extensions install https://github.com/Kubyer/struggl-mcp7. Lovable (lovable.dev)
In your Lovable workspace (Settings → Connectors → Custom MCP Server), add https://struggl.singandclap.com/mcp for zero-auth sports-science tools while building fitness apps, or https://struggl.singandclap.com/v1/connector/mcp with OAuth 2.1.
8. OpenClaw / ClawHub & Nous Hermes
clawhub install struggl-coach9. One-Line CLI / Local stdio Bridge (npx, uvx, Python)
For local stdio-only MCP hosts without native Streamable HTTP support:
# Node.js >= 18 (zero-dependency npx stdio bridge -> https://struggl.singandclap.com/mcp)
npx -y struggl-mcp
# Python >= 3.10 (also installs `import struggl_primitives`)
uvx struggl-mcp
# or: pip install struggl-mcp && struggl-mcpSet STRUGGL_API_TOKEN=stg_ath_YOUR_PERSONAL_TOKEN in the MCP server's env if you also want the 6 personal ledger tools alongside the 7 zero-auth science calculators.
Open-Core Primitives for Fitness & Coaching AI Builders
Building your own strength, running, Hyrox, or wearable coaching agent? Never let raw LLM prose improvise exercise math:
struggl_primitives.py: Pure-stdlib Python reference functions (wathan_e1rm,prescribe_working_load,karvonen_zone2,ewma_acwr,hyrox_compromised_pace,fractional_set_credit) plus ready-to-registerPRIMITIVE_TOOL_SCHEMAS.skills/fitness-agent-primitives/SKILL.md: Builder skill teaching coding agents where stateless single-session math ends and longitudinal 30-day state (implicit RIR envelopes,0.82^d / 0.96^dEWMA ACWR, 17-muscle weekly MEV/MAV/MRV, 48h concurrent interference gating) begins.
Repository Architecture & Open-Source Standards
This repository follows the multi-registry agent package layout so a single repo works cleanly across MCP registries and Agent Skill directories:
struggl-mcp/
├── server.json # Official MCP Registry schema (2025-12-11)
├── plugin.json / mcp_config.json # Google Antigravity, Cursor & Grok Bot manifest
├── .claude-plugin/ # Claude Code plugin & marketplace manifests
├── .mcp.json # Root Streamable HTTP MCP config (zero auth ready)
├── agents/openai.yaml # OpenAI Codex / Dots skill-to-MCP wiring
├── llms-install.md # Cline Marketplace 1-click installer
├── struggl_primitives.py # Pure-stdlib stateless exercise-physiology primitives
├── skills/
│ ├── struggl-coach/ # Athlete coaching skill + inline UI card template
│ └── fitness-agent-primitives/ # Builder skill for custom fitness & Hyrox AI agents
├── benchmarks/llm_fitness_math_traps.md
├── bin/cli.mjs # Zero-dependency npx stdio-to-HTTP bridge
├── package.json / pyproject.toml # npm (`npx struggl-mcp`) & PyPI (`uvx struggl-mcp`) manifests
└── mcp_server.py # Zero-secret thin HTTP->stdio client (httpx + mcp only)Security & Privacy
Zero Secrets in Repo: This repository contains declarative manifests, open-source skill instructions, pure-stdlib physiology primitives, literature benchmarks, and a thin HTTP client (
mcp_server.pyimports only Python stdlib,httpx, andmcp). Runpython scripts/verify_public_bundle.pyto audit every file.OAuth 2.1 + Scoped Revocable Tokens: Supports 1-click OAuth 2.1 + PKCE (
https://struggl.singandclap.com/v1/connector/mcp) and optional scoped tokens (stg_ath_...), stored server-side strictly as SHA-256 hashes and revocable athttps://struggl.singandclap.com/connect.Privacy Policy, Terms & Support: Privacy Policy · Terms of Service · API & Connector Docs ·
taha@tbaziz.com.
License
Apache License 2.0 — see LICENSE and NOTICE. Covers the manifests, SKILL.md workflows, struggl_primitives.py reference primitives, benchmark documentation, and thin mcp_server.py client in this repository. The hosted STRUGGL coaching engine and longitudinal datasets at struggl.singandclap.com are operated by Sing And Clap.
Available Tools
13 toolsget_coaching_briefARead-onlyInspect
MANDATORY STEP 1 for personal coaching turns: unified deterministic brief returning profile, goals, active pain constraints, EWMA ACWR load, 17-muscle weekly MEV/MAV/MRV audit, measured Wathan e1RMs & sub-muscle balance, stored athlete equipment/preference notes, and recent sessions.
Inputs: days. Returns: result
get_muscle_volumeBRead-onlyInspect
This week's hard sets per muscle group against recommended weekly volume ranges.
Inputs: no named parameters. Returns: result
get_profileARead-onlyInspect
The athlete's profile (bodyweight, height, sex, sport, phase) and goals (races, target times).
Inputs: no named parameters. Returns: result
get_sessionsARead-onlyInspect
The athlete's training sessions — completed and planned — over the last days days
(1-90), or for one date (YYYY-MM-DD).
Inputs: date, days. Returns: result
hyrox_autopsyBRead-onlyInspect
Post-race or simulation Hyrox diagnostic comparing actual 8x1 km run splits and 8 functional station times against compromised pacing targets and P25-P75 station variance benchmarks. Requires NO token.
Inputs: standalone_5k_time (required), run_times, station_times, total_run_time, +1 more. Returns: result
hyrox_paceARead-onlyInspect
Hyrox run splits and race predictions from a 5 km time (MM:SS), with an optional target finish time (H:MM:SS). Stateless primitive; signed-in STRUGGL accounts derive threshold pace from rolling 30-day run history.
Inputs: five_k (required), goal. Returns: result
hyrox_splitsBRead-onlyInspect
Compute all 8 compromised Hyrox 1 km lap splits, Pro/Doubles offsets, and Lap 1 overpacing blow-up cost from a standalone 5K time (MM:SS) using the 200k-finisher decay curve. Requires NO token.
Inputs: standalone_5k_time (required), division, goal_time, cns_penalty_sec_per_km. Returns: result
interference_taxBRead-onlyInspect
Audit a weekly hybrid schedule for AMPK-mTOR concurrent training interference (<3h / 3-6h window), 36h long-run glycogen depletion before legs, 48h heavy hinge recovery, and Seiler 80/20 polarization. Requires NO token.
Inputs: sessions (required), priority. Returns: result
log_workoutBInspect
Record COMPLETED exercise(s) into the athlete's ledger (prefer passing sessions=[...] +
debrief_summary in a single batch call for a whole workout so the STRUGGL app displays one
consolidated workout card in the connector feed).
Inputs: rpe, date, reps, sets, +9 more. Returns: result
plan_workoutBInspect
Schedule PLANNED exercise(s) on the athlete's calendar (prefer passing sessions=[...] +
debrief_summary in a single batch call for a full session or multi-day week plan).
Inputs: rpe, date, reps, sets, +10 more. Returns: result
plates_zone2ARead-onlyInspect
Convert a reference set into Wathan e1RM, Zourdos RIR/RPE working weight (accounting for bodyweight on pull_up/chin_up/dip), exact barbell plates per side, and Tanaka + Karvonen Zone 2 heart rate bpm. Requires NO token.
Inputs: age, sex, lift, max_hr, +8 more. Returns: result
strength_benchmarkARead-onlyInspect
Estimated 1RM, strength score and tier for one set. lift: back_squat, front_squat, deadlift, sumo_deadlift, bench_press, incline_bench_press, dip, overhead_press, pull_up, chin_up, barbell_row. For dip / pull_up / chin_up, weight_kg is the ADDED load. sex: male | female. Stateless single-set evaluation; STRUGGL's stateful ledger tracks rolling 30-day e1RM envelopes.
Inputs: sex (required), lift (required), reps (required), weight_kg (required), +2 more. Returns: result
volume_auditBRead-onlyInspect
Audit weekly lifting sets across all 17 muscle groups using fractional accounting (1.0x primary, 0.5x secondary synergist, RPE >= 6 hard-set filter) vs Schoenfeld & Pelland MEV/MAV/MRV landmarks. Requires NO token.
Inputs: entries (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have clear distinct purposes (logging vs planning vs profile reads vs Hyrox diagnostics), but there are genuine overlaps: hyrox_pace and hyrox_splits both derive Hyrox lap splits from a 5K time, and get_muscle_volume vs volume_audit both report weekly per-muscle set volume. get_coaching_brief also aggregates content that get_profile and volume_audit return individually, so an agent must read descriptions carefully to choose.
Two conventions coexist: verb_noun (get_profile, get_sessions, log_workout, plan_workout) and bare domain-noun names (hyrox_autopsy, interference_tax, plates_zone2, strength_benchmark, volume_audit). Each family is internally readable, but the mixing is inconsistent — notably get_muscle_volume versus volume_audit do similar things under different naming schemes.
13 tools is squarely in the well-scoped range for a hybrid athlete coaching server, with reads, writes, and a coherent set of stateless calculators. Each tool maps to a recognizable coaching sub-task rather than padding.
Core lifecycle is covered (get profile/sessions, log completed, plan future, plus volume and Hyrox analytics), but there is no way to edit or delete a logged or planned session, and no tool to update the profile or goals despite the profile carrying race targets and phase. An agent that mis-logs or needs to correct a plan hits a dead end.
Maintenance
Related MCP Connectors
Your Garmin, Oura, WHOOP, Hevy and 35 more fitness apps, queryable from your own AI.
The workout tracker your AI can edit: build programs, swap exercises and read your logged sets.
Deterministic fitness coaching engine: adaptive programs, progression math, readiness autoregulation
Deterministic fitness calculators — TDEE, adaptive TDEE, body fat, 1RM, macros — with consensus.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to find coach-built training programs, coaching brains, races, gyms, classes and sports clinics, preview and build workouts with exercise demos, swap exercises, and plan around a sport or race. With OAuth it can also save workouts and programs, send coach notes to members, and read a member's logged history, planned sessions and lift progress.MIT
- AlicenseNot gradedqualityAmaintenanceEnables read-only access to WHOOP recovery, sleep, HRV, strain, workout, and race-performance data so assistants like Claude, Codex, and GitHub Copilot can answer personal health questions, compare trends against personal baselines, and audit HYROX or triathlon training with local, evidence-backed dashboards. Includes aggregate mode, local-only race logging, and verification tools for recomputing claims.14 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to search 1,900+ exercises with video and media links, generate workouts and multi-week programs, explore evidence-rated supplements, and use developer tools for API modeling, debugging, and usage insights.2039 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients and AI agents to invoke deterministic fitness calculators for BMR/TDEE, body fat, one-rep max, macros, activity multipliers, powerlifting attempts, and natural muscular potential. Each tool reports consensus across published formulas, supporting consistent fitness and training analysis.1MIT