Intervals Mcp

io.github.ljclPublished by GitHub account ljclv2.19.0Updated Nov 11, 2026

Remote MCP server for intervals.icu run data and analysis

Overview

AI-generated overview

A single-user remote MCP server that lets an assistant read and analyze your intervals.icu run data, with interactive MCP Apps.

What you can do
  • Read and analyze run history and training data from intervals.icu
  • Update activities, wellness entries and gear (write tools, newer clients only)
  • Generate and store route suggestions, including road-crossing counts from a local OpenStreetMap index
  • Serve interactive MCP Apps alongside the text tools
  • Report server health and configuration state
When to use it
Use it when you track running in intervals.icu and want an assistant to review your training, adjust activities or wellness entries, or suggest routes from your usual start point.
Requirements
Runs as a local Docker image (or from source with Bun) and is reached over Streamable HTTP at the /mcp endpoint, typically through an HTTPS tunnel such as Tailscale Funnel or Cloudflare Tunnel. Needs an intervals.icu personal API key in INTERVALS_API_KEY; optional ORS_API_KEY for route suggestions, OSM_EXTRACT_URL and HOME_START for road-crossing counts, and MCP_AUTH_TOKEN to gate the endpoint.
Before you install
The server holds your intervals.icu API key and acts on your account, so anyone who reaches an unauthenticated /mcp endpoint can use that key; set MCP_AUTH_TOKEN before exposing it through a tunnel. Write tools (update-activity, update-wellness, update-gear) change data in your account. Route suggestions send coordinates to OpenRouteService when ORS_API_KEY is set, and stored routes are kept on disk under DATA_DIR.

Installation

In SourceWeft

  1. Open Intervals Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

Intervals Extra (intervals-mcp)

[CI] [Storybook] [License: MIT]

A single-user remote MCP server for intervals.icu run data and analysis, with interactive MCP Apps.

All text tools and every MCP App talk to intervals.icu directly and are verified against a real account; see docs/tools.md for the full catalog. Configuration is checked at startup: a bad variable stops the server with a message naming it, and the key's presence is reported on /health.

History. This project began as strava-mcp and was migrated to intervals.icu as its data source; nothing in the server talks to Strava today.

Setup

1. Get an intervals.icu API key

  1. Log in to intervals.icu
  2. Go to Settings, Developer Settings
  3. Copy your personal API key

2. Configure environment

bash
cp .env.example .env

Edit .env with your values:

env
INTERVALS_API_KEY=your_api_key

All variables are listed in docs/operations.md.

3. Run it

Local development (needs Bun):

bash
bun installbun run dev

Docker:

bash
docker compose up -d

Prefer the prebuilt image? Pull ghcr.io/ljcl/intervals-mcp:latest, the newest release (also on the MCP registry as io.github.ljcl/intervals-mcp), and point your compose image: at it instead of building; you still supply your own API key. :edge tracks unreleased main. Published images carry SBOM/provenance attestations you can verify; see operations.md.

GET /health reports liveness without spending an intervals.icu API request; with MCP_AUTH_TOKEN it also reports config and rate-limit state. Response shapes and monitoring guidance: operations.md.

Point any client at http://localhost:3000/mcp. Repo layout, task runner, tests, coverage gates, and Storybook workflow: docs/development.md. Agent conventions live in AGENTS.md.

Connecting to AI Tools

Most AI tools (Claude Desktop, Claude Code, etc.) need an HTTPS URL to reach your MCP server. Since the server runs on your local network, you'll need a tunnel to expose it.

Tailscale Funnel (Recommended)

Tailscale Funnel exposes a local port to the internet over HTTPS with no configuration:

bash
tailscale funnel --bg 3000# → https://your-machine.tail1234.ts.net

Set PUBLIC_URL in your .env to the resulting URL.

Cloudflare Tunnel

bash
cloudflared tunnel --url http://localhost:3000

Securing the endpoint

A tunnel makes /mcp reachable by anyone who discovers the URL, so they can use the intervals.icu API key configured on the server (the key itself is never exposed to them). Set MCP_AUTH_TOKEN to a long random secret (openssl rand -hex 32) and every /mcp request requires Authorization: Bearer <token>; each client snippet below shows where the header goes. The secret also gates the detailed half of /health. Full details: operations.md.

Set it in .env alongside your API key; docker-compose.yml forwards it automatically.

text
AI Tool (Claude Desktop, Claude Code, etc.)    │  HTTPSHTTPS Tunnel (Tailscale / Cloudflare)    │  HTTP (localhost:3000)intervals-mcp Server (Docker / Bun)    │  HTTPSintervals.icu API

Client configuration

The server works with any MCP client that supports the Streamable HTTP transport. In every snippet below, replace https://your-public-url with your tunnel URL (or http://localhost:3000 for local development), and include the Authorization header only if you set MCP_AUTH_TOKEN.

Claude Desktop

Add to your Claude configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

json
{  "mcpServers": {    "intervals-mcp": {      "type": "url",      "url": "https://your-public-url/mcp",      "headers": { "Authorization": "Bearer your-mcp-auth-token" }    }  }}

Restart Claude Desktop to load the new configuration.

Claude Code
bash
claude mcp add --transport http intervals-mcp https://your-public-url/mcp \  --header "Authorization: Bearer your-mcp-auth-token"
Cursor

Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

json
{  "mcpServers": {    "intervals-mcp": {      "url": "https://your-public-url/mcp",      "headers": { "Authorization": "Bearer your-mcp-auth-token" }    }  }}
VS Code

Add to .vscode/mcp.json in your workspace (or run MCP: Add Server from the command palette):

json
{  "servers": {    "intervals-mcp": {      "type": "http",      "url": "https://your-public-url/mcp",      "headers": { "Authorization": "Bearer your-mcp-auth-token" }    }  }}
Other clients (generic Streamable HTTP)

Any client that speaks Streamable HTTP can connect to the /mcp endpoint directly. The endpoint serves the 2026-07-28 revision: clients send stateless requests carrying the io.modelcontextprotocol/* envelope keys and the Mcp-Method/Mcp-Name headers (server/discover advertises capabilities). A 2025-era client (one that opens with initialize) is served statelessly too, because claude.ai loads MCP Apps that way, but it gets no write tool: update-activity, update-wellness and update-gear need a 2026-07-28 client. POST JSON-RPC messages with an Accept: application/json, text/event-stream header. Protocol details: docs/architecture.md.

Tools

The full tool catalog, prompts, permission behaviour, and example requests live in docs/tools.md. All text tools and every MCP App's data handler talk to intervals.icu directly.

Documentation

DocContents
docs/tools.mdFull tool catalog, prompts, permission behaviour, example requests
docs/operations.mdEnvironment variables, the API key, health endpoint, rate limits, endpoint security
docs/architecture.mdServer architecture: transport, HTTP layer, cache, error taxonomy, analysis math
docs/api-notes.mdCalling the intervals.icu API: auth, endpoints, verified behaviour from Phases 1 and 2
docs/mcp-apps.mdMCP App packages: shared shell, mobile, theming, per-app details
docs/development.mdMonorepo mechanics: Turborepo, coverage gates, Storybook gates, Docker build
docs/releasing.mdRelease automation: Conventional Commit PR titles, release-please, publishing
docs/project.mdIssue tracking and project board
docs/Intervals_MCP_Server.mdCapability reference to upload as project knowledge in a Claude project using this server

PRs are squash-merged and the PR title becomes the commit on main, so write it as a Conventional Commit (fix: patch, feat: minor, any ! or BREAKING CHANGE: footer major; chore:/docs:/refactor:/ci: release nothing). A CI check rejects non-conforming titles; see docs/releasing.md.

Troubleshooting

Server exits at startup: The message names the variable to fix, one line per bad variable. See operations.md.

AI tool can't reach the server — MCP requires an HTTPS URL. Use a tunnel (Tailscale Funnel or Cloudflare Tunnel) to expose your local server. See Connecting to AI Tools.

API key errors: Check /health first: api_key_configured tells you whether the server has a key set at all. If api_key_configured is true but calls still fail, the key may be wrong or revoked; generate a new one at intervals.icu, Settings, Developer Settings, and update INTERVALS_API_KEY. See operations.md.

Today's run is missing, or dates are a day off: Check time_zone and time_zone_source on /health. With TZ unset (or UTC), the server uses your intervals.icu time zone; set TZ to choose one. See operations.md.

"Cloudflare … answered with a challenge": Cloudflare, in front of intervals.icu, stopped the request before it reached intervals.icu, so this is not an API key problem. Wait a few minutes and retry. See operations.md.

Client can't connect (401 or unsupported protocol version): Each refused /mcp request writes one mcp_rejected line to the server log with its status, JSON-RPC code and, when the client sent it, its name. A 401 means the bearer token is missing or wrong. Code -32022 means the client's envelope names an MCP revision the server does not serve. See operations.md.

Is the server up and reachable? curl https://your-public-url/health. It answers without touching the intervals.icu API, so it works even when your rate limit is exhausted.

Client re-prompts for read tools after I granted them — A release likely renamed a tool or changed its input schema; grants are stored per tool identity, so that drops the grant. Releases say so in the changelog. Otherwise persistence lives in the client — check both connector-level and per-tool settings. See docs/tools.md.

License

MIT

Source: README.md at commit 6b6d990

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

15
  1. v2.19.0LatestNov 11, 2026
  2. v2.17.1Nov 8, 2026
  3. v2.17.0Nov 8, 2026
  4. v2.16.0Nov 7, 2026
  5. v2.12.0Nov 3, 2026
  6. v2.9.3Nov 1, 2026
  7. v2.9.2Oct 29, 2026
  8. v2.7.0Oct 10, 2026
  9. v2.5.1Oct 9, 2026
  10. v2.4.0Oct 9, 2026
  11. v2.3.0Oct 5, 2026
  12. v2.2.0Oct 5, 2026
  13. v2.1.1Sep 27, 2026
  14. v2.0.0Sep 26, 2026
  15. v0.2.0Sep 26, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts