Skip to main content
Glama
durability-mcp
by ata412

durability-mcp

A local, read-only MCP tool that summarises running durability from your own FIT files.

Your files stay on your computer: the tool runs on your machine, reads one folder, and returns no GPS coordinates. Before a run, its forward estimate is a shrunk personal average, because no trained model beat that baseline before a run starts. The optional [models] extra adds the fusion model, which predicts a run from its first 40% and shows the result next to simple baselines. This is a research measure, not a diagnosis.

Requires uv.

Try it on generated files

uvx --from git+https://github.com/ata412/durability-mcp durability-mcp-demo

The demo uses SYNTHETIC files whose answers were set in advance. It shows that the tool works as designed, not that it is accurate.

Related MCP server: vitals-mcp

Check your own files without an AI client

uvx --from git+https://github.com/ata412/durability-mcp durability-mcp-check /path/to/your/fit/folder

Put the .fit files directly in the folder. Nothing leaves your computer. Add --json for machine-readable output.

Test the MCP server without an AI client

This starts the server and calls it over the real MCP protocol, the same way an AI client does, then prints each tool's summary. No AI is involved and nothing leaves your computer.

# index tools only
uvx --from git+https://github.com/ata412/durability-mcp durability-mcp-selftest /path/to/your/fit/folder

# with the fusion model tool (large download on first run)
uvx --from "durability-mcp[models] @ git+https://github.com/ata412/durability-mcp" durability-mcp-selftest /path/to/your/fit/folder

On Windows, use a path such as C:\path\to\fit\folder. Add --json to print every tool result in full. With the [models] extra the tool list should include get_fusion_predictions; if it does not, the model libraries did not install.

Example output (one runner's COROS export):

Tools offered by the server: list_durability_runs, get_durability_indices, get_durability_trend, get_expected_next_run, get_fusion_predictions

[get_durability_trend]
76 outdoor runs: 1 signal, 2 no signal, 73 not evaluable.

[get_fusion_predictions]
EAT scored 1 gate-passing run(s) out of 76 outdoor runs. ...

Use it with an MCP client

Add this to your MCP client's configuration:

{
  "mcpServers": {
    "durability": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/ata412/durability-mcp", "durability-mcp"],
      "env": {"DURABILITY_FIT_DIR": "/path/to/your/fit/folder"}
    }
  }
}

Your MCP client may send tool results to its own AI service, so read its privacy terms. Results can include dates, durations and index values.

Tool

Returns

list_durability_runs

Outdoor runs with status and reason

get_durability_indices

Drift, magnitude, onset and status for one run

get_durability_trend

Status counts and latest runs against your own earlier runs

get_expected_next_run

Expected drift and magnitude for your next evaluable run, with typical error

get_fusion_predictions

[models] extra only: EAT and E31 predictions for gate-passing runs beside the observed values and two baselines

Statuses: signal (both gate conditions met), no_signal (QC passed, gate not met), not_evaluable (first failing QC rule given).

Model tool (optional, research use)

Install the [models] extra to add get_fusion_predictions. It runs the saved EAT fusion model (a stack of tree experts and the E31 blend, combined by an expert-attention network) on runs that pass the gate, and lists E31, the training mean and your own shrunk average beside what actually happened.

{
  "mcpServers": {
    "durability": {
      "command": "uvx",
      "args": ["--from", "durability-mcp[models] @ git+https://github.com/ata412/durability-mcp", "durability-mcp"],
      "env": {"DURABILITY_FIT_DIR": "/path/to/your/fit/folder"}
    }
  }
}
  • The models were trained on FitRec (Endomondo) and GoldenCheetah runs. FitRec is licensed for academic use only, so use these files for research and do not redistribute them.

  • On development data (MEASURED EXPLORATORY, not an independent test) EAT tied E31 on drift and reduced magnitude error by about 1.3%. On the one real watch export tested, only one run could be scored, so nothing is known about accuracy on real watch files.

  • The model libraries are large (PyTorch, LightGBM, XGBoost, CatBoost). Without the extra, the tool runs without this model tool.

Limits

  • Tested on one runner's COROS export only, where most runs were not evaluable (MEASURED: 73 of 76). Other brands may behave differently.

  • Needs an outdoor run with GPS and heart rate, 45 to 240 minutes long, at a steady pace.

  • One run is weak evidence. Prefer the trend over several runs.

Available Tools

3 tools
get_durability_indicesA
Read-onlyIdempotent

Return drift, magnitude, onset and gate status for one run, or why it cannot be evaluated. No GPS is returned.

Inputs: file (required). Returns: object

get_durability_trendB
Read-onlyIdempotent

Summarise runs over time and compare the latest runs with this runner's own earlier runs. No prediction is made.

Inputs: end_date, start_date. Returns: object

list_durability_runsB
Read-onlyIdempotent

List outdoor runs with status signal, no_signal or not_evaluable. Dates are YYYY-MM-DD. No GPS is returned.

Inputs: limit, offset, end_date, start_date. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct scope: listing runs, evaluating one run's indices, and summarizing/trending over time. The descriptions explicitly delimit one-run vs aggregate analysis, so boundaries are clear.

    Naming Consistency5/5

    All three names follow the same snake_case verb_durability_noun pattern: list_durability_runs, get_durability_indices, get_durability_trend. No mixed conventions or vague verbs.

    Tool Count5/5

    Three tools are well-scoped for a focused read-only durability analytics server: list, detail, and trend. Each earns its place without redundancy.

    Completeness5/5

    The surface covers the natural read-only workflow: discover runs, inspect per-run durability indices with non-evaluable explanations, and compare trends over time. No create/update/delete is needed for this analysis-only domain.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables local, read-only access to Oura API v2 data, returning pre-shaped physiology such as sleep, chronotype, temperature shifts, and baseline drift for interpretation by AI clients.
      9
      1
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables MCP clients to query locally computed recovery, strain, sleep, workout, and heart-rate data from a personal SQLite database, with tools for daily and sleep summaries, workout details, heart-rate buckets, schema inspection, reports, sync, and read-only SQL.
      8
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables read-only access to WHOOP recovery, sleep, HRV, strain, and workout data so users can ask natural-language questions about daily readiness, personal baselines, sleep debt, and trends, plus HYROX and triathlon performance readiness and auditing. It runs locally with summary and aggregate modes, keeping data on the user's machine and sharing results only with the chosen AI assistant.
      14 npm
      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