Skip to main content
Glama
Running Formulas MCP Server

Running Formulas MCP Server

by st3v

running-formulas-mcp MCP server

An MCP server with comprehensive tools for running calculations including VDOT, training paces, race time predictions, velocity markers, heart rate zones, and pace conversions. Supports multiple methodologies including Jack Daniels, Greg McMillan, and Riegel's formula.

Features

Jack Daniels Methodology

  • VDOT Calculation: Calculate VDOT from race performance using Jack Daniels' formula

  • Training Paces: Get recommended training paces (Easy, Marathon, Threshold, Interval, Repetition) for a given VDOT

  • Race Time Predictions: Predict race times using Jack Daniels' equivalent performance methodology

McMillan Methodology

  • Velocity Markers: Calculate vLT (Lactate Threshold), CV (Critical Velocity), and vVO2 (VO2max velocity)

  • Training Paces: Comprehensive training pace zones (Endurance, Stamina, Speed, Sprint) with sub-categories

  • Race Time Predictions: Predict race times for all standard distances using McMillan's methodology

  • Heart Rate Zones: Calculate training heart rate zones using multiple estimation formulas

Additional Tools

  • Riegel's Formula: Race time predictions using Riegel's power law

  • Pace Conversions: Convert between different pace and speed formats (min/km, min/mile, km/h, mph)

Related MCP server: TrackLab MCP Ultimate Edition

Tools

Jack Daniels Tools

  • daniels_calculate_vdot: Calculate VDOT from race performance using Jack Daniels' formula.

    • Input:

      • distance (float): Distance in meters

      • time (float): Time in seconds

    • Output:

      • vdot (float): The calculated VDOT value

  • daniels_calculate_training_paces: Get recommended training paces for a given VDOT.

    • Input:

      • vdot (float): VDOT value

    • Output:

      • easy (object): Easy pace range with lower and upper bounds

      • marathon (object): Marathon pace

      • threshold (object): Threshold pace

      • interval (object): Interval pace

      • repetition (object): Repetition pace

      • All paces formatted as "MM:SS/km"

  • daniels_predict_race_time: Predict race time using Jack Daniels' equivalent performance methodology.

    • Input:

      • current_distance (float): Distance of known performance in meters

      • current_time (float): Time of known performance in seconds

      • target_distance (float): Distance for race time prediction in meters

    • Output:

      • value (string): Predicted time in "HH:MM:SS" format

      • format (string): "HH:MM:SS"

      • time_seconds (float): Time in seconds

McMillan Tools

  • mcmillan_calculate_velocity_markers: Calculate velocity markers (vLT, CV, vVO2) from race performance.

    • Input:

      • distance (float): Race distance in meters

      • time (float): Race time in seconds

    • Output:

      • velocity_markers (object): Contains vLT, CV, and vVO2 with pace and description

  • mcmillan_predict_race_times: Predict race times for standard distances using McMillan methodology.

    • Input:

      • distance (float): Race distance in meters

      • time (float): Race time in seconds

    • Output:

      • Dictionary with predicted times for all standard race distances

  • mcmillan_calculate_training_paces: Calculate comprehensive training paces using McMillan methodology.

    • Input:

      • distance (float): Race distance in meters

      • time (float): Race time in seconds

    • Output:

      • Training paces organized by zones (endurance, stamina, speed, sprint)

  • mcmillan_heart_rate_zones: Calculate heart rate training zones.

    • Input:

      • age (int): Runner's age in years

      • resting_heart_rate (int): Resting heart rate in BPM

      • max_heart_rate (int, optional): Maximum heart rate in BPM

    • Output:

      • Heart rate zones with both HRMAX and HRRESERVE calculations

Additional Tools

  • riegel_predict_race_time: Predict race time using Riegel's formula.

    • Input:

      • current_distance (float): Distance of known performance in meters

      • current_time (float): Time of known performance in seconds

      • target_distance (float): Distance for race time prediction in meters

    • Output:

      • value (string): Predicted time in "HH:MM:SS" format

      • format (string): "HH:MM:SS"

      • time_seconds (float): Time in seconds

  • convert_pace: Convert between different pace and speed units.

    • Input:

      • value (float): The numeric value to convert

      • from_unit (string): Source unit ("min_km", "min_mile", "kmh", "mph")

      • to_unit (string): Target unit ("min_km", "min_mile", "kmh", "mph")

    • Output:

      • value (float): Converted numeric value

      • formatted (string): Human-readable formatted result

      • unit (string): Target unit descriptor

Usage

This server is designed to be used as an MCP stdio server. It does not expose HTTP endpoints directly.

Example: Calculate VDOT for a 5k in 25 minutes

Call the daniels_calculate_vdot tool with:

{
  "name": "daniels_calculate_vdot",
  "arguments": { "distance": 5000, "time": 1500 }
}

Returns:

{
  "vdot": 38.4
}

Example: Get training paces for VDOT 38.4

Call the daniels_calculate_training_paces tool with:

{
  "name": "daniels_calculate_training_paces",
  "arguments": { "vdot": 38.4 }
}

Returns structured pace data like:

{
  "easy": {
    "lower": {"value": "5:42", "format": "MM:SS/km"},
    "upper": {"value": "6:29", "format": "MM:SS/km"}
  },
  "marathon": {"value": "5:07", "format": "MM:SS/km"},
  "threshold": {"value": "4:50", "format": "MM:SS/km"},
  "interval": {"value": "4:32", "format": "MM:SS/km"},
  "repetition": {"value": "4:26", "format": "MM:SS/km"}
}

Example: Calculate McMillan velocity markers from 5K performance

Call the mcmillan_calculate_velocity_markers tool with:

{
  "name": "mcmillan_calculate_velocity_markers",
  "arguments": { "distance": 5000, "time": 1500 }
}

Returns velocity markers:

{
  "velocity_markers": {
    "vLT": {
      "pace": "4:50",
      "description": "Velocity at Lactate Threshold (vLT) - sustainable pace for ~1 hour"
    },
    "CV": {
      "pace": "4:32",
      "description": "Critical Velocity (CV) - theoretical maximum sustainable pace"
    },
    "vVO2": {
      "pace": "4:15",
      "description": "Velocity at VO2max (vVO2) - pace at maximum oxygen uptake"
    }
  }
}

Example: Predict 10K time using Daniels methodology

Call the daniels_predict_race_time tool with:

{
  "name": "daniels_predict_race_time",
  "arguments": { "current_distance": 5000, "current_time": 1500, "target_distance": 10000 }
}

Returns:

{
  "value": "00:52:07",
  "format": "HH:MM:SS",
  "time_seconds": 3127.4
}

Example: Calculate heart rate zones for a 30-year-old

Call the mcmillan_heart_rate_zones tool with:

{
  "name": "mcmillan_heart_rate_zones",
  "arguments": { "age": 30, "resting_heart_rate": 60, "max_heart_rate": 190 }
}

Example: Convert pace from min/km to min/mile

Call the convert_pace tool with:

{
  "name": "convert_pace",
  "arguments": { "value": 5.0, "from_unit": "min_km", "to_unit": "min_mile" }
}

Returns:

{
  "value": 8.047,
  "formatted": "8:02",
  "unit": "min_mile"
}

Configuration

This server is designed to be used with Claude Desktop or other MCP-compatible clients. See the installation sections below for configuration details.

Installation

{
  "mcpServers": {
    "running-formulas-mcp": {
      "command": "uvx",
      "args": ["running-formulas-mcp"]
    }
  }
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Available Tools

9 tools
convert_paceA

Convert between different pace and speed units.

Args: value: The numeric value to convert. from_unit: Source unit ("min_km", "min_mile", "kmh", "mph"). to_unit: Target unit ("min_km", "min_mile", "kmh", "mph").

Returns: dict: value (float): Converted numeric value. formatted (str): Human-readable formatted result. unit (str): Target unit descriptor.

Raises: ValueError: If from_unit or to_unit are not valid, or if conversion is not supported.

Inputs: value (required), from_unit (required), to_unit (required). Returns: object

daniels_calculate_training_pacesA

Get recommended training paces for a given VDOT, based on Jack Daniels' formulas.

Args: vdot: VDOT value.

Returns: dict: easy (dict): Recommended easy pace range with lower and upper bounds. marathon (dict): Recommended marathon pace with value and format. threshold (dict): Recommended threshold pace with value and format. interval (dict): Recommended interval pace with value and format. repetition (dict): Recommended repetition pace with value and format.

Inputs: vdot (required). Returns: object

daniels_calculate_vdotB

Calculate VDOT according to Jack Daniels.

Args: distance: Distance in meters. time: Time in seconds.

Returns: dict: vdot (float): The calculated VDOT value, representing the runner's aerobic capacity based on the input distance and time.

Inputs: distance (required), time (required). Returns: object

daniels_predict_race_timeA

Predict race time for a target distance based on a current race performance. Uses Jack Daniels' equivalent performance methodology.

Args: current_distance: Distance of known performance in meters. current_time: Time of known performance in seconds. target_distance: Distance for race time prediction in meters.

Returns: dict: Daniels' VDOT method prediction with value, format, and time_seconds.

Inputs: current_distance (required), current_time (required), target_distance (required). Returns: object

mcmillan_calculate_training_pacesA

Calculate training paces for all zones based on a race performance using McMillan methodology.

Args: distance: Race distance in meters time: Race time in seconds

Returns: Dictionary containing training paces organized by zones (endurance, stamina, speed, sprint)

Inputs: distance (required), time (required). Returns: object

mcmillan_calculate_velocity_markersA

Calculate velocity markers (vLT, CV, vVO2) from a race performance using McMillan methodology.

Args: distance: Race distance in meters time: Race time in seconds

Returns: Dictionary containing velocity markers with paces in MM:SS/km format

Inputs: distance (required), time (required). Returns: object

mcmillan_heart_rate_zonesA

Calculate heart rate training zones based on age, resting heart rate, and optional max heart rate. Uses McMillan methodology with multiple max HR estimation formulas and both HRMAX and HRRESERVE methods.

Args: age: Runner's age in years resting_heart_rate: Resting heart rate in BPM max_heart_rate: Optional maximum heart rate in BPM (if None, will be estimated)

Returns: Dictionary containing estimated max HR, effective max HR, and training zones with both HRMAX and HRRESERVE calculations

Inputs: age (required), resting_heart_rate (required), max_heart_rate. Returns: object

mcmillan_predict_race_timesA

Predict race times for standard distances based on a single race performance using McMillan methodology.

Args: distance: Race distance in meters time: Race time in seconds

Returns: Dictionary containing predicted race times in HH:MM:SS format

Inputs: distance (required), time (required). Returns: object

riegel_predict_race_timeB

Predict race time for a target distance based on a current race performance. Uses Riegel's formula.

Args: current_distance: Distance of known performance in meters. current_time: Time of known performance in seconds. target_distance: Distance for race time prediction in meters.

Returns: dict: Riegel's formula prediction with value, format, and time_seconds.

Inputs: current_distance (required), current_time (required), target_distance (required). Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 9 tools

    Disambiguation4/5

    The tools are mostly distinct, with clear separation between pace conversion, Daniels formulas, McMillan formulas, and Riegel prediction. However, there is some overlap between 'daniels_predict_race_time' and 'riegel_predict_race_time', which both predict race times from a known performance, potentially causing confusion. The other tools have well-defined, non-overlapping purposes.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with a clear verb_noun structure (e.g., convert_pace, calculate_training_paces, predict_race_time). The naming is uniform across all tools, making them easily readable and predictable, with no deviations in style or convention.

    Tool Count5/5

    With 9 tools, the server is well-scoped for its purpose of running formulas, covering pace conversion, training pace calculations, race time predictions, and heart rate zones from multiple methodologies. Each tool serves a distinct function, and the count is neither too sparse nor overwhelming, fitting typical expectations for such a domain.

    Completeness4/5

    The tool set provides comprehensive coverage for running-related calculations, including conversions, training paces, race predictions, and heart rate zones from Daniels, McMillan, and Riegel methodologies. A minor gap is the lack of tools for other common running formulas (e.g., Karvonen method for heart rate), but the core workflows are well-covered, allowing agents to perform most essential tasks without significant dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Real-time marathon & road/trail race runner position forecasting, spectator cheer spot arrival windows, on-course sighting pin pace recalibration, and worldwide GPX/FIT/OpenStreetMap course search.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Calculates Karvonen heart-rate corridors, estimates VO2max, models fat oxidation kinetics, and prescribes weekly mitochondrial longevity volume from biometrics and current aerobic activity.
      7
      MIT