Skip to main content
Glama
tally-workout-mcp

tally-workout-mcp

by westvegh
README.md
# Tally Workout MCP server

Docs for the remote [Model Context Protocol](https://modelcontextprotocol.io) server of
[Tally Workout](https://tallyworkout.app), a strength-training log with a mobile app. Your
AI agent reads your training history and plans workouts in the Tally app. You log every set
at the gym. Next week, the agent plans from what you actually lifted. When you ask, the
agent can also log, change or delete a finished workout, and you can undo each change for
7 days.

It works with Claude, Claude Code, Codex, ChatGPT, Muse, Hark, Perplexity, Dots and any
MCP client that supports OAuth 2.1 or a bearer token.

> This repo holds the public docs. The server is first-party and closed source. It runs
> as part of the Tally backend.

## Endpoint

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

- **Transport:** Streamable HTTP. No SSE-only mode.
- **Auth, option 1:** OAuth 2.1, authorization code + PKCE (S256), public client, dynamic
  client registration (RFC 7591). Scope: `workouts`.
- **Auth, option 2:** an API key, for clients without OAuth. Create it in the Tally app
  under Settings → API keys. Send it as `Authorization: Bearer tally_ct_…`. A key is
  Read only, Read and plan, or Full access. Only a Full access key or an OAuth connection
  can change finished workouts. Keys do not expire. Revoke a key in the app.
- **Discovery:** [`/.well-known/mcp-server`](https://mcp.tallyworkout.app/.well-known/mcp-server),
  [agent brief (llms.txt)](https://mcp.tallyworkout.app/llms.txt).

## Setup by agent

You need the [Tally mobile app](https://tallyworkout.app) and a Tally account.
Each link has the full steps.

| Agent | Auth | Steps |
|-------|------|-------|
| Claude (web, desktop, phone) | OAuth | Add Tally Workout from [Claude's directory](https://claude.ai/directory/tally-workout). [Steps](https://tallyworkout.app/connect/claude) |
| Claude Code | OAuth or API key | `claude mcp add --scope user --transport http tally https://mcp.tallyworkout.app/api/mcp`, then `/mcp`. [Steps](https://tallyworkout.app/connect/claude-code) |
| Codex | API key | Three lines in `~/.codex/config.toml`. [Steps](https://tallyworkout.app/connect/codex) |
| ChatGPT | OAuth | Developer mode. Pro reads only. Business, Enterprise and Edu can plan. [Steps](https://tallyworkout.app/connect/chatgpt) |
| Muse | OAuth | Client ID `tally-muse`. [Steps](https://tallyworkout.app/connect/muse) |
| Hark | API key | [Steps](https://tallyworkout.app/connect/hark) |
| Perplexity | API key | [Steps](https://tallyworkout.app/connect/perplexity) |
| Dots | API key | Not tested yet. [Steps](https://tallyworkout.app/connect/dots) |
| Any MCP client | OAuth or API key | [Steps](https://tallyworkout.app/connect/other) |

## Tools

24 tools: 12 read, 12 write.

| Tool | Type | What it does |
|------|------|--------------|
| `get_training_context` | read | Returns planned days from today, the weight unit and, with `historyWeeks`, recent workouts. |
| `get_workout_history` | read | Returns logged workouts, newest first, set by set. Each workout has a stable id. |
| `get_workout` | read | Returns one logged workout by its id, set by set. |
| `get_exercise_progress` | read | Returns progress for up to 10 exercises over the last 365 days, with top sets and estimated 1RM. |
| `get_planned_workout` | read | Returns one planned day in full, with its version. |
| `search_exercises` | read | Matches exercise names to the user's recent exercises and the Tally library. |
| `get_exercise` | read | Returns one exercise by its id: muscles, equipment and instructions, or the user's custom exercise. |
| `get_training_summary` | read | Returns weekly totals for up to 12 weeks: workouts, sets, volume, time, volume by muscle, and missed or skipped plans. |
| `get_saved_workouts` | read | Returns the user's saved and favorite workout templates. |
| `get_workout_versions` | read | Lists the restorable versions of one finished workout, also a deleted one. |
| `get_programs` | read | Returns the training programs on Tally's shelf, with level, days a week and equipment. |
| `get_program` | read | Returns one program: its notes and its weeks. |
| `plan_workout_day` | write | Creates or replaces one planned day. |
| `plan_workout_range` | write | Creates or replaces up to 31 planned days in one call. |
| `update_planned_workout` | write | Changes part of one planned day: add, remove or change exercises. |
| `move_planned_workout` | write | Moves a planned day to an empty date. |
| `skip_planned_workout` | write | Marks a planned day as skipped, or restores it. Only the status changes. |
| `delete_planned_workout` | write | Removes a planned day and returns it, so you can undo. |
| `update_reminders` | write | Turns training-day reminders on or off, or changes their time. |
| `log_workout` | write | Logs a finished workout to the user's history. Full access. |
| `update_workout` | write | Changes one finished workout at its current version: fields, exercises or sets. Full access. |
| `delete_workout` | write | Deletes one finished workout at its current version. Full access. |
| `restore_workout` | write | Makes an earlier version of a finished workout current again, within 7 days, also after a delete. Full access. |
| `send_feedback` | write | Sends a message from the user to the Tally team. Limit: 5 messages a day. |

## Rules

- **Finished workouts change only when the user asks.** `log_workout`, `update_workout`,
  `delete_workout` and `restore_workout` need a Full access key or an OAuth connection.
  `update_workout` and `delete_workout` need the workout's `version` from `get_workout` as
  `expectedVersion`. Each change keeps the earlier content for 7 days: `get_workout_versions`
  lists it and `restore_workout` brings it back. All except `restore_workout` need a phone
  on the current Tally app.
- **Some days are protected.** A day the user built in the app, or edited, is protected.
  The plan, update, move and delete tools skip it unless the user asks for an override.
- **Edits check the version.** If a day or a finished workout changed after the agent
  read it, nothing is written and the result reports a conflict.
- **Cues and demo videos have their own fields.** Each planned exercise has an optional
  `note` (a short coaching cue, plain text, up to 300 characters) and an optional `demoUrl`
  (an http or https link to a video of that exact exercise, usually one the user shared).
  The Tally app shows the note under the exercise name and the link as the
  **Watch your custom video** button. Keep the exercise name plain.
- **Each user sees only their own data.** OAuth tokens and API keys are scoped to one
  account. The user can revoke them at any time.

## Links

- Site: https://tallyworkout.app
- Builder reference: https://tallyworkout.app/connect/mcp
- Guides: https://tallyworkout.app/guides (for example, [plan your workouts with Claude](https://tallyworkout.app/guides/plan-workouts-with-claude))
- Get the app: https://tallyworkout.app
- Support: support@tallyworkout.app