mcp-server

v0.4.0
@setio/mcp-server Checked 1 day ago Published 15 days ago

MCP 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" → send target_reps (and optionally target_reps_max, target_weight).
  • tracking_type: "duration" → send target_seconds (1–600, and optionally target_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_update with superset_group set 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. Pass superset_group: null to take an exercise out of its superset. Anything else is refused with invalid_superset_group.
  • To create a program with supersets: give each exercise of the pair the same short superset label ("A", "B") in programs_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 with invalid_superset and 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_required for the monthly quota of tool calls or the history window, limit_reached for 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_days as a JSON array of day indices, the default session colour, auth_verify worded for a connection.
  • 0.3.0 — supersets: session_exercises_update (notes, unilateral flag, join or leave a superset by superset_group), superset_group on session_exercises_list and workout_logs_get, and a per-exercise superset label on programs_create_bulk (invalid_superset when a label is used once or by non-adjacent exercises).
  • 0.2.0 — set types: restpause joins drop and failure in every set_type enum, and the gateway refuses values outside the vocabulary with invalid_set_type. Duration exercises: tool results carry tracking_type, and sets accept target_seconds / target_seconds_max. npm publish is a post-merge maintainer step.
  • 0.1.1 — published version.

License

MIT