Skip to content
On this page

TrainHeroic MCP server

Connect TrainHeroic to Claude Code, Cursor or another MCP client. Use the hosted server with OAuth sign-in, or run a local coach or athlete server.

The TrainHeroic MCP server lets an AI assistant read training history, review progress, and work with coach programming through the Model Context Protocol. For Claude.ai, follow the connector setup guide. For code editors and other MCP clients, use the configuration below.

The hosted server is the simplest MCP deployment: one URL, OAuth login, and a tool set selected from the role on your TrainHeroic account. To keep the server process and your credentials on your own machine, run a local stdio server instead.

https://mcp.trainheroic-unofficial.com/mcp

Add the server

$ claude mcp add trainheroic --transport http https://mcp.trainheroic-unofficial.com/mcp
{
  "mcpServers": {
    "trainheroic": {
      "url": "https://mcp.trainheroic-unofficial.com/mcp"
    }
  }
}

The client opens the TrainHeroic sign-in the first time the server needs authorization. The server keeps your TrainHeroic credentials inside the encrypted OAuth grant and never forwards the client’s bearer token to TrainHeroic. The privacy policy has the details.

Verify the connection

After signing in, try a read-only request:

Check the connection without changing training.

A successful tool response confirms the connection can read your account, including when the response says no workout is scheduled. Signing in alone does not confirm that a training tool has run. If authorization succeeds but the tool fails, use the support guide.

Role-aware tools

A coach account gets the coaching surface plus the account’s own athlete-training tools.

An athlete account gets profile, workouts, history, PR, working-max, leaderboard, and set-logging tools.

Two optional endpoints narrow the connection to one role:

Endpoint Scope
https://mcp.trainheroic-unofficial.com/mcp/coach Coaching tools only
https://mcp.trainheroic-unofficial.com/mcp/athlete Athlete-training tools only

The coach-only endpoint exposes no tools when the signed-in account is athlete-only.

Hosted-only features

The hosted server adds D1-backed history warehouses and a feedback tool. Ask the assistant to report a problem and it can attach recent tool context for the maintainers.