Skip to content
MCP serverOfficial: Published to the official MCP Registry by the GitHub account or domain it is named after, which owns its code or website.

Gainsbook

Lets ChatGPT or Claude read your iCloud workout log and build or edit routines

Gainsbook is an MCP server for fitness tracking. It runs as a hosted remote server, so there is nothing to install locally.

Platforms
API, iOS
Runs
Remotely
Version
1.0.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

In Customize → Connectors → Add → Add custom connector

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.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

In chatgpt.com → Plugins → + → Add custom MCP server

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.

ChatGPT setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to Grok Bot desktop app → Connect apps → Add a custom connector

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.

Full Grok Bot setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "gainsbook": {
      "type": "http",
      "url": "https://mcp.gainsbook.app/mcp"
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Gainsbook

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.

What it does

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

Gainsbook 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.

How AIPoweredBot checks servers