Intervals.icuSAFE
Model Context Protocol (MCP) server for connecting Claude and ChatGPT with the Intervals.icu API.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Model Context Protocol (MCP) server for connecting Claude and ChatGPT with the Intervals.icu API. It provides tools for authentication and data retrieval for activities, events, wellness data, power curves, and custom items.
If you find the Model Context Protocol (MCP) server useful, please consider supporting its continued development with a donation.
Requirements
- Python 3.12 or higher
- Model Context Protocol (MCP) Python SDK
- httpx
- python-dotenv
Setup
1. Install uv (recommended)
macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
After installation, find the full path to uv — you'll need it later when configuring Claude Desktop:
where.exe uv # Example output: C:\Users\\.local\bin\uv.exe
2. Clone this repository
git clone https://github.com/mvilanova/intervals-mcp-server.git cd intervals-mcp-server
3. Create and activate a virtual environment
# Create virtual environment with Python 3.12 uv venv --python 3.12 # Activate virtual environment # On macOS/Linux: source .venv/bin/activate # On Windows: .venv\Scripts\activate
4. Sync project dependencies
uv sync
5. Set up environment variables
Make a copy of .env.example and name it .env by running the following command:
macOS/Linux:
cp .env.example .env
Windows (PowerShell):
Copy-Item .env.example .env
Then edit the .env file and set your Intervals.icu athlete id and API key:
API_KEY=your_intervals_api_key_here ATHLETE_ID=your_athlete_id_here
Getting your Intervals.icu API Key
- Log in to your Intervals.icu account
- Go to Settings > API
- Generate a new API key
Finding your Athlete ID
Your athlete ID is t
aa3fb02ea6d6OBSERVED · 2026-10-03Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add intervals-mcp-server --env API_KEY=${API_KEY} -- uvx intervals-mcp-server{
"mcpServers": {
"intervals-mcp-server": {
"command": "uvx",
"args": [
"intervals-mcp-server"
],
"env": {
"API_KEY": "${API_KEY}"
}
}
}
}Exposed tools (20)
12 read · 5 write · 3 destructive. Blast radius: 3 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
add_activity_message | write | Add a message (note/comment) to an activity on Intervals.icu |
add_or_update_event | write | Post event for an athlete to Intervals.icu this follows the event api from intervals.icu |
add_or_update_note | write | Add or update a plain text note (category NOTE) on the Intervals.icu calendar. |
create_custom_item | write | Create a new custom item for an athlete on Intervals.icu |
delete_custom_item | destructive | Delete a custom item for an athlete from Intervals.icu |
delete_event | destructive | Delete event for an athlete from Intervals.icu |
delete_events_by_date_range | destructive | Delete events for an athlete from Intervals.icu in the specified date range. |
get_activities | read | Get a list of activities for an athlete from Intervals.icu |
get_activity_details | read | Get detailed information for a specific activity from Intervals.icu |
get_activity_intervals | read | Get interval data for a specific activity from Intervals.icu |
get_activity_messages | read | Get messages (notes/comments) for a specific activity from Intervals.icu |
get_activity_streams | read | Get stream data for a specific activity from Intervals.icu |
get_athlete_power_curves | read | Get power curves for an athlete from Intervals.icu. |
get_custom_item_by_id | read | Get detailed information for a specific custom item from Intervals.icu |
get_custom_items | read | Get custom items (charts, custom fields, zones, etc.) for an athlete from Intervals.icu |
get_event_by_id | read | Get detailed information for a specific event from Intervals.icu |
get_events | read | Get events for an athlete from Intervals.icu |
get_gear_list | read | Get the gear catalog (bikes, shoes, etc.) for an athlete from Intervals.icu. |
get_wellness_data | read | Get wellness data for an athlete from Intervals.icu. |
update_custom_item | write | Update an existing custom item for an athlete on Intervals.icu |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (2 observation(s))
- Network
- declared (6 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (4)
delete_custom_item, delete_event, delete_events_by_date_range
.pre-commit-config.yaml
The startup log prints the full URLs (for example `http://127.0.0.1:8765/sse`). ChatGPT needs that public URL, so forward the port with a tool such as `ngrok http 8765` if you are not exposing the ser
curl -LsSf https://astral.sh/uv/install.sh | sh
Gates applied: no_behavioural_pass.
aa3fb02ea6d6full audit observations/trust-audit/mcp-server/mvilanova__intervals-icu.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-03 | aa3fb02ea6d6 | SAFE | B | 89 | first audit |
Questions
What is the Intervals.icu MCP server?
Model Context Protocol (MCP) server for connecting Claude and ChatGPT with the Intervals.icu API.
What tools does Intervals.icu expose?
20 in total: 12 read-only, 5 that write, and 3 that can delete or overwrite (delete_custom_item, delete_event, delete_events_by_date_range). Every one is listed on this page with its risk.
Is Intervals.icu safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 3 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Intervals.icu need?
It reads API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Intervals.icu run?
It speaks sse and streamable-http, so it runs as a service you connect to over the network. It is published on PyPI as intervals-mcp-server.
How current is this page?
The grade is for one exact copy of the source (aa3fb02ea6d6), read on 2026-10-03. The repository is watched and re-audited when it changes.