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

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
Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - A tier

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ryansheppard/intervals.mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server