Skip to main content
Glama

intervals.mcp

An MCP server for intervals.icu, exposing your training data to Claude and other MCP clients. And yes, I did vibe code this.

I am not yet sure of the value of this MCP or AI for training in general. My recent months have been focused on skiing with minimal running. I asked it to help me ease back in to trail running and it came up with a pretty aggressive mileage plan and some heavier threshold work than I am doing now. I'll keep experimenting with it and adding tools as I see fit.

Prerequisites

  • Python 3.14+

  • uv

  • An intervals.icu account with API access

Related MCP server: Intervals.icu MCP Server

Configuration

Set the following environment variables:

Variable

Description

INTERVALS_ATHLETE_ID

Your athlete ID (found in the intervals.icu URL, e.g. i12345)

INTERVALS_API_KEY

Your API key (Settings → API)

Claude Code Setup

Add to your MCP config (.claude/settings.json or ~/.claude/settings.json):

{
  "mcpServers": {
    "intervals": {
      "command": "env",
      "args": [
        "INTERVALS_ATHLETE_ID=i12345",
        "INTERVALS_API_KEY=your-api-key",
        "uvx", "--from", "/path/to/intervals.mcp", "intervals-mcp"
      ]
    }
  }
}

Claude Desktop Setup

Open the config via Settings → Developer → Edit Config:

{
  "mcpServers": {
    "intervals": {
      "command": "env",
      "args": [
        "INTERVALS_ATHLETE_ID=i12345",
        "INTERVALS_API_KEY=your-api-key",
        "uvx", "--from", "/path/to/intervals.mcp", "intervals-mcp"
      ]
    }
  }
}

Available Tools

Tool

Description

get_athlete

Athlete profile including sport zones and thresholds

get_activities

List activities, filterable by date range and sport type

get_activity_detail

Full detail for a single activity including laps and intervals

get_fitness

CTL/ATL/TSB fitness time series

get_wellness

HRV, resting HR, sleep, and fatigue scores

get_events

Planned workouts and races from your calendar

Development

uv run intervals-mcp

Available Tools

6 tools
get_activitiesB

List activities with optional filters.

Args: oldest: Start date in YYYY-MM-DD format (inclusive). newest: End date in YYYY-MM-DD format (inclusive). sport_type: Filter by sport type (e.g. 'Ride', 'Run', 'Swim').

Inputs: oldest, newest, sport_type.

get_activity_detailA

Get full detail for a single activity including laps and intervals.

Args: activity_id: The activity ID (visible in the intervals.icu URL).

Inputs: activity_id (required).

get_athleteB

Get athlete profile including sport zones and thresholds.

Inputs: no named parameters.

get_eventsB

Get planned workouts and races from the calendar.

Args: oldest: Start date in YYYY-MM-DD format (inclusive). newest: End date in YYYY-MM-DD format (inclusive).

Inputs: oldest, newest.

get_fitnessB

Get CTL/ATL/TSB fitness time series.

Args: oldest: Start date in YYYY-MM-DD format (inclusive). newest: End date in YYYY-MM-DD format (inclusive).

Inputs: oldest, newest.

get_wellnessA

Get wellness data including HRV, resting HR, sleep, and fatigue scores.

Args: oldest: Start date in YYYY-MM-DD format (inclusive). newest: End date in YYYY-MM-DD format (inclusive).

Inputs: oldest, newest.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct domain: activity listing vs. detailed retrieval, athlete profile, calendar events, fitness metrics (CTL/ATL/TSB), and wellness data. No overlap in purpose; the distinction between planned events and completed activities is clear.

    Naming Consistency5/5

    Perfectly consistent verb_noun pattern using 'get_' prefix throughout. All use snake_case. The '_detail' suffix appropriately distinguishes single-resource retrieval from list operations without breaking the convention.

    Tool Count5/5

    Six tools is ideal for this focused read-only integration covering the core intervals.icu data surfaces (activities, athlete, calendar, fitness, wellness). Each tool earns its place; neither bloated nor sparse.

    Completeness4/5

    Strong coverage of read operations for athlete analytics including list/detail views and time-series data. Minor gaps exist: no power curve retrieval, segment data, or write operations (create/update activities/events), but core analysis workflows are fully supported.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers