mcp-server
v0.4.0MCP server for Setio — exposes workout programs, sessions, exercises, and logs to AI assistants
MCP server for Setio — exposes your workout programs, sessions, exercises and logs to AI assistants like Claude through the Model Context Protocol. Once connected, an assistant can answer questions about your training and apply coaching suggestions back to your account. In the Setio app, go to Settings → API Keys, tap Generate API Key, and copy the key (it starts with sk_ and is shown only once).
Summary extracted from the README.
@setio/mcp-server
MCP server for Setio — exposes your workout programs, sessions, exercises and logs to AI assistants like Claude through the Model Context Protocol.
Once connected, an assistant can answer questions about your training and apply coaching suggestions back to your account.
Setup
Full step-by-step guide (with screenshots): getsetio.app/mcp
Using Claude on the web or on your phone? You don't need this package: Setio is also a remote MCP server (
https://mcp.getsetio.app) that you add as a custom connector and sign in to with your Setio account. See getsetio.app/mcp. This package is the local option, authenticated with an API key.
1. Generate an API key
In the Setio app, go to Settings → API Keys, tap Generate API Key, and copy the key (it starts with sk_ and is shown only once).
2. Add the server to your assistant
Requires Node.js 18+.
Claude Desktop — add this to claude_desktop_config.json, then restart:
{
"mcpServers": {
"setio": {
"command": "npx",
"args": ["-y", "@setio/mcp-server"],
"env": {
"SETIO_API_KEY": "sk_your_key_here"
}
}
}
}
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Claude Code:
claude mcp add setio --env SETIO_API_KEY=sk_your_key_here -- npx -y @setio/mcp-server
Any other MCP client (Cursor, Cline, Zed, …) — run the command npx -y @setio/mcp-server with the SETIO_API_KEY environment variable set to your key.
Duration exercises (holds)
Not every exercise is measured in reps. A plank, an L-sit or a front lever is measured in seconds, and each exercise says which it is: exercises_search, exercises_get and exercises_list_by_muscle return a tracking_type of "reps" or "duration" (plus progression_group / progression_level when the exercise is a step of a skill ladder).
A set is always written in its exercise's unit:
tracking_type: "reps"→ sendtarget_reps(and optionallytarget_reps_max,target_weight).tracking_type: "duration"→ sendtarget_seconds(1–600, and optionallytarget_seconds_max).
Sending the wrong pair is refused with a message saying what to send instead, in set_templates_create, set_templates_update and programs_create_bulk alike — a hold never silently becomes 10 reps.
Set types
Every set carries a set_type, one of working (default), warmup, drop, failure, restpause. A drop is a lighter set chained to the one before it with no rest; a failure set is taken to failure (its RIR is 0); a restpause set is logged as one set with its total reps. Anything else is refused with invalid_set_type by set_templates_create, set_templates_update and programs_create_bulk.
Supersets
Two or more exercises of a session performed back to back share a superset_group (a UUID meaningful inside that session; the workout copies it). session_exercises_list returns it on every exercise (null when ungrouped), and workout_logs_get returns it on every exercise log.
- To group exercises that exist: call
session_exercises_updatewithsuperset_groupset to a fresh UUID on the first exercise, then the same UUID on each partner. The gateway reorders the session so the members follow each other. Passsuperset_group: nullto take an exercise out of its superset. Anything else is refused withinvalid_superset_group. - To create a program with supersets: give each exercise of the pair the same short
supersetlabel ("A","B") inprograms_create_bulk. A label needs at least two exercises and they must follow each other in the session's list; otherwise the call is refused withinvalid_supersetand nothing is created.
Environment variables
| Variable | Required | Description |
|---|---|---|
SETIO_API_KEY |
yes | Your Setio API key (sk_…), generated in Settings → API Keys. |
SETIO_GATEWAY_URL |
no | Override the gateway endpoint. Defaults to Setio's hosted gateway. |
Security
The server runs locally on your machine. Your API key never leaves your device except to authenticate with Setio. If a key leaks, revoke it from Settings → API Keys in the app and generate a new one.
Changelog
- 0.4.0 — the free plan's limits: a refusal (
pro_requiredfor the monthly quota of tool calls or the history window,limit_reachedfor a resource cap) comes first as a plain sentence, before its JSON, and the server's instructions ask the assistant to relay it in the user's language, as the hosted connector does. Tool descriptions:scheduled_daysas a JSON array of day indices, the default session colour,auth_verifyworded for a connection. - 0.3.0 — supersets:
session_exercises_update(notes, unilateral flag, join or leave a superset bysuperset_group),superset_grouponsession_exercises_listandworkout_logs_get, and a per-exercisesupersetlabel onprograms_create_bulk(invalid_supersetwhen a label is used once or by non-adjacent exercises). - 0.2.0 — set types:
restpausejoinsdropandfailurein everyset_typeenum, and the gateway refuses values outside the vocabulary withinvalid_set_type. Duration exercises: tool results carrytracking_type, and sets accepttarget_seconds/target_seconds_max.npm publishis a post-merge maintainer step. - 0.1.1 — published version.
License
MIT