# Gainsbook

> Gainsbook is an MCP server for fitness tracking. Lets ChatGPT or Claude read your iCloud workout log and build or edit routines. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API, iOS
- **Website:** https://gainsbook.app/assistants
- **MCP Registry name:** app.gainsbook/gainsbook
- **Categories:** [fitness tracking](https://ai-powered.com/categories/fitness-tracking)
- **Listing updated:** 2026-11-29

## About

Gainsbook's MCP server connects an AI assistant to the workout data your iPhone syncs to iCloud. Once signed in with your Apple Account, the assistant can look at logged sessions, individual sets, how a specific lift has changed over time, and body weight entries that include readings copied from Apple Health.

The server also works in the other direction. An assistant can create a new routine, which then appears at the top of the routine list in the app, or add exercises and edit notes on an existing one. Weights follow the unit and entry style set in the app, such as per side for plate-loaded machines.

It suits lifters who already track in Gainsbook and want to ask questions about their training in chat or have a plan drafted without rebuilding it by hand. Logging workouts, deleting routines, and viewing progress photos are not available through it.

## Features

- **Workout history access:** Reads logged workouts with every set and whether each set was finished.
- **Exercise progress view:** Pulls all finished sets for one exercise so trends can be discussed.
- **Routine reading:** Returns routine exercises, planned sets, and notes from the app.
- **Body weight and measurements:** Reads body weight and measurement entries, including Apple Health weights.
- **Routine creation and editing:** Creates routines and adds, removes, or annotates exercises in existing ones.
- **Apple Account sign-in:** Authenticates through Continue with Apple with an optional two-week session.

## Good for

- Reviewing how a lift has progressed over recent weeks
- Checking which planned sessions were skipped last week
- Generating a timed workout routine from a short prompt
- Adding accessory exercises to an existing training day
- Asking questions about body weight trends from synced data

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http gainsbook https://mcp.gainsbook.app/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "gainsbook": {
      "type": "http",
      "url": "https://mcp.gainsbook.app/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.gainsbook.app/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "gainsbook": {
      "type": "http",
      "url": "https://mcp.gainsbook.app/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.gainsbook.app/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add gainsbook --url https://mcp.gainsbook.app/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "gainsbook": {
      "httpUrl": "https://mcp.gainsbook.app/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http gainsbook https://mcp.gainsbook.app/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "gainsbook": {
      "serverUrl": "https://mcp.gainsbook.app/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "gainsbook": {
      "url": "https://mcp.gainsbook.app/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "gainsbook": {
      "type": "streamableHttp",
      "url": "https://mcp.gainsbook.app/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "gainsbook": {
      "url": "https://mcp.gainsbook.app/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.gainsbook.app/mcp
```

Enter a Name (for example "Gainsbook"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "gainsbook": {
      "type": "http",
      "url": "https://mcp.gainsbook.app/mcp"
    }
  }
}
```

## FAQ

### Where is my data stored?

Data stays in your iCloud. The server passes it between iCloud and your assistant, keeps your sign-in, and holds recently changed routines for 10 minutes to prevent duplicate saves.

### Can the assistant change my logged workouts?

No. It can read workouts but cannot log or change them, delete routines, or change settings.

### How long does the sign-in last?

If you tick Keep me signed in it lasts 2 weeks; otherwise it lasts 30 minutes before you are asked to sign in again.

### What do I need to use Gainsbook?

Gainsbook on an iPhone signed in to your Apple Account with iCloud turned on for Gainsbook.

### How do I add Gainsbook to Claude Code?

Run this command in your terminal: claude mcp add --transport http gainsbook https://mcp.gainsbook.app/mcp

### What are the best alternatives to Gainsbook?

The closest alternatives to Gainsbook are Gymie, MyoAmigo, Gym Plus, Hypro and Anatome.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Gymie](https://ai-powered.com/mcp/gymie): Gymie is an MCP server for fitness tracking.
- [MyoAmigo](https://ai-powered.com/mcp/myoamigo): MyoAmigo is a freemium MCP server for fitness tracking.
- [Gym Plus](https://ai-powered.com/mcp/gym-plus): Gym Plus is a free MCP server for fitness tracking.
- [Hypro](https://ai-powered.com/mcp/hypro): Hypro is a freemium MCP server for fitness tracking.
- [Anatome](https://ai-powered.com/mcp/anatome): Anatome is a free MCP server for meal planning.
- [OnlineFitness.app](https://ai-powered.com/mcp/onlinefitness-app): OnlineFitness.app is a freemium MCP server for fitness tracking.
- [Coach MCP](https://ai-powered.com/mcp/coach-mcp): Coach MCP is a freemium MCP server for sports coaching.
- [Gym Navigator Coach](https://ai-powered.com/mcp/gym-navigator-coach): Gym Navigator Coach is a free MCP server for health and science.

---
Source: https://ai-powered.com/mcp/gainsbook
