Skip to main content
Glama

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

hyrox_pace

Compromised Hyrox pace band, 8x1 km run total, race time & Riegel 10K/HM/Marathon

200k-finisher curve + Riegel (1981)

hyrox_splits

Exact Lap 1–8 1 km splits (0.94x–1.03x), Pro/Doubles offsets & Lap 1 overpacing blow-up cost

200k-finisher piecewise decay (DOI: 10.3389/fphys.2025.1519240)

hyrox_autopsy

Post-race or mock-sim diagnostic: per-lap fade vs. target + P25–P75 station bottleneck leaks

Empirical station variance benchmarks

strength_benchmark

Piecewise Wathan e1RM, sex/BW/age score (0–100), tier (untrained -> elite) & kg to next tier

Wathan (1994) / LeSuer et al. (1997)

plates_zone2

reps @ RPE working weight (with BW system load on pull_up/chin_up/dip), gym plate pairs & Zone 2 bpm

Zourdos (2016) RIR + Tanaka (2001) & Karvonen (1957) HRR

volume_audit

Weekly 17-muscle hypertrophy audit (1.0x prime / 0.5x synergist, RPE >= 6 hard-set gate) & junk volume

Schoenfeld (2017), Pelland (2024), Robinson (2024)

interference_tax

Weekly hybrid schedule conflict check (<3h/3–6h AMPK-mTOR, 36h glycogen, 48h hinge, 80/20 drift)

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):

  1. Start your 30-day free STRUGGL Coach trial (no credit card) at https://struggl.singandclap.com/connect.

  2. Connect via OAuth 2.1 + PKCE (https://struggl.singandclap.com/v1/connector/mcp) or generate a scoped read / read + write personal token (stg_ath_...).


10-Second Install Across Every Agent Platform

1. Claude Code &amp; 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/mcp

Or install the full plugin + skills via Claude Code's plugin manager:

/plugin marketplace add Kubyer/struggl-mcp
/plugin install struggl@struggl-marketplace

Headless 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-mcp

3. 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 &amp; 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-mcp

7. 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 &amp; Nous Hermes

clawhub install struggl-coach

9. 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-mcp

Set 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 &amp; 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-register PRIMITIVE_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^d EWMA ACWR, 17-muscle weekly MEV/MAV/MRV, 48h concurrent interference gating) begins.


Repository Architecture &amp; 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 &amp; 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.py imports only Python stdlib, httpx, and mcp). Run python scripts/verify_public_bundle.py to 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 at https://struggl.singandclap.com/connect.

  • Privacy Policy, Terms &amp; Support: Privacy Policy · Terms of Service · API &amp; 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 tools
get_coaching_briefA
Read-only
Inspect

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_volumeB
Read-only
Inspect

This week's hard sets per muscle group against recommended weekly volume ranges.

Inputs: no named parameters. Returns: result

get_profileA
Read-only
Inspect

The athlete's profile (bodyweight, height, sex, sport, phase) and goals (races, target times).

Inputs: no named parameters. Returns: result

get_sessionsA
Read-only
Inspect

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_autopsyB
Read-only
Inspect

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_paceA
Read-only
Inspect

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_splitsB
Read-only
Inspect

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_taxB
Read-only
Inspect

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_zone2A
Read-only
Inspect

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_benchmarkA
Read-only
Inspect

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_auditB
Read-only
Inspect

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

    B3.4/5.0

    Scored across 13 tools

    Disambiguation3/5

    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.

    Naming Consistency3/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      1
      MIT