# TrainRec MCP server

Your AI assistant logs your meals and workouts, then plans your week from what you did.

## Facts

- Endpoint: https://api.trainrec.app/mcp (MCP, Streamable HTTP)
- Sign-in: none (open)
- Security grade: B (88/100, scanned 2026-11-14) · report https://gateturbo.com/report/0acc8b5a-bd92-4cc9-8b8c-a97714836edc
- Tools: 34
- Category: Lifestyle · source: registry
- Last probed: 2026-11-12 · first listed: 2026-11-12
- Directory page: https://gateturbo.com/mcp/trainrec · this document: https://gateturbo.com/mcp/trainrec.md · JSON: https://gateturbo.com/api/directory/servers/trainrec

## Tools (34)

- `trainrec_overview`: Today's date and weight unit for this person, today's food against their targets, their last few workouts, their routines, notes they left, 
- `trainrec_list_workouts`: Workouts between two dates, newest first, with each exercise and how many of its sets were done. Sets themselves are not included.
- `trainrec_get_workout`: One workout with every set, in the person's unit, and its version.
- `trainrec_exercise_history`: One exercise over time: personal records (heaviest, best estimated one-rep max, most reps, best session volume) and every session that inclu
- `trainrec_list_exercises`: Exercise ids, names and kinds, built-in and custom, optionally filtered by words in the name. The kind decides which set fields apply.
- `trainrec_food_day`: Everything eaten on one day, each entry with its id and version, totals by meal and for the day, and what is left of the targets.
- `trainrec_recent_changes`: The latest changes to this log, newest first, with who made each one and its seq number.
- `trainrec_plan_workout`: Plans a workout for the person to do: saves it in TrainRec, where their phone and watch walk them through it one set at a time, with each se
- `trainrec_save_workout`: Logs a new workout, or replaces an existing one given its id and version: the whole workout as it should now be, so anything left out is rem
- `trainrec_delete_workout`: Removes one workout, given its id and version. The person can undo it in the app.
- `trainrec_log_food`: Adds one or more food entries, each with its numbers PER SERVING and the number of servings. perServing takes the macros and any label nutri
- `trainrec_edit_food`: Changes fields of one food entry, given its id and version. Fields left out stay as they are; perServing is replaced whole.
- `trainrec_delete_food`: Removes one food entry, given its id and version. The person can undo it in the app.
- `trainrec_set_targets`: Sets the daily calorie and macro targets, and optionally a target for any other nutrient (the keys in overview.foodNutrients): a ceiling for
- `trainrec_settings`: The person's settings: weight unit, which nutrients beyond the macros show on their Food and Today screens, how much of a day's workout calo
- `trainrec_change_settings`: Changes settings. unit: lb or kg. foodShows: the full list of extra nutrients shown, in order, replacing the old one ([] shows only the macr
- `trainrec_save_routine`: Creates a routine (a reusable workout plan the person starts from the app), or replaces one given its id and version. Same shape as a workou
- `trainrec_get_routine`: One routine with every set, in the person's unit, and its version.
- `trainrec_delete_routine`: Removes one routine, given its id and version. Workouts already done from it stay. The person can undo it in the app.
- `trainrec_add_exercise`: Makes a custom exercise with a name, kind and muscles. equipment: "plate" for a plate-loaded machine or "smith" for a Smith machine gives it
- … 14 more after connecting

## Connect

Two routes. Through gate you get one gateway URL for every server you pick, a sign-in screen that asks which agent you are, allow / ask-me-first / block per action, argument rules, a log of every call, and an off-switch. Direct puts this server's URL straight into the agent's config.

### Through gate (Claude Code shown; any MCP client works the same way)

One gateway URL carries every server you pick.

1. Connect TrainRec to your gate (https://gateturbo.com/login?next=/discovery?connect=trainrec).
2. Add gate once to the agent; the sign-in screen asks which agent it is, and its rules follow it everywhere.
3. Every call is logged; allow, ask-me-first or block any action; pause the agent with one click.

```bash
claude mcp add --transport http gate https://gateturbo.com/api/mcp
```

Other agents through gate: Claude → https://gateturbo.com/mcp/trainrec/claude · Claude Desktop → https://gateturbo.com/mcp/trainrec/claude-desktop · ChatGPT → https://gateturbo.com/mcp/trainrec/chatgpt · Codex → https://gateturbo.com/mcp/trainrec/codex · Cursor → https://gateturbo.com/mcp/trainrec/cursor · Windsurf → https://gateturbo.com/mcp/trainrec/windsurf · VS Code → https://gateturbo.com/mcp/trainrec/vscode · Gemini CLI → https://gateturbo.com/mcp/trainrec/gemini-cli · OpenClaw → https://gateturbo.com/mcp/trainrec/openclaw · n8n → https://gateturbo.com/mcp/trainrec/n8n · A script or server → https://gateturbo.com/mcp/trainrec/script

### Direct: Claude Code

Add TrainRec to Claude Code with one command.

1. Run the command in your terminal.
2. Restart Claude Code; the tools appear in every session.
3. No sign-in needed.

```bash
claude mcp add --transport http trainrec https://api.trainrec.app/mcp
```

### Direct: Cursor

Add TrainRec to Cursor's MCP config.

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
2. Cursor picks it up without a restart.
3. No sign-in needed.

```json
{
  "mcpServers": {
    "trainrec": {
      "url": "https://api.trainrec.app/mcp"
    }
  }
}
```

### Direct: VS Code

Add TrainRec to VS Code for Copilot agent mode.

1. Add this to .vscode/mcp.json in your workspace (or your user mcp.json).
2. Open the Copilot chat in agent mode; the server starts on demand.
3. No sign-in needed.

```json
{
  "servers": {
    "trainrec": {
      "type": "http",
      "url": "https://api.trainrec.app/mcp"
    }
  }
}
```

### Direct: Codex

Add TrainRec to Codex.

1. Add this to ~/.codex/config.toml.
2. Start a new Codex session.
3. No sign-in needed.

```toml
[mcp_servers.trainrec]
url = "https://api.trainrec.app/mcp"
```

### Direct: Claude

Add TrainRec as a custom connector in Claude.

1. Open claude.ai → Settings → Connectors → Add custom connector.
2. Name it "TrainRec" and paste the URL below.
3. Save; the tools appear in new chats.

```
https://api.trainrec.app/mcp
```

### Direct: ChatGPT

Add TrainRec as a connector in ChatGPT.

1. Open ChatGPT → Settings → Connectors → enable Developer mode under Advanced.
2. Create a connector named "TrainRec" with the URL below.
3. Set authentication to none.

```
https://api.trainrec.app/mcp
```

## For agents reading this

- Search the directory from inside a conversation: add the directory MCP server https://gateturbo.com/api/directory/mcp (no sign-in) and call `search_servers`, `get_server`, `how_to_connect`.
- JSON: https://gateturbo.com/api/directory/search?q=<terms> · https://gateturbo.com/api/directory/servers/<slug>
- How to get access to a human's gateway on your own: https://gateturbo.com/agents.md
- Always keep a human in the loop: gate's sign-in, approvals and off-switch exist so the person stays in control.
