Anthropic · Command line
Connect Claude Code to your TopSet training log
Add TopSet to Claude Code with one command, sign in from the terminal, and read your training from any project.
Before you start
- Claude Code installed and signed in.
- TopSet on your iPhone (iOS 18.0 or later, updated to the latest version), signed in to your account. You approve the connection in the app.
Step 1: Add TopSet in Claude Code
- Add the server
In your terminal, run:
claude mcp add --transport http --scope user topset https://connect.topset.top/mcp - Sign in
Run the line below; your browser opens the TopSet connection page. You can also type /mcp in Claude Code and sign in to topset there.
claude mcp login topset
Step 2: Approve in TopSet
Your browser opens the TopSet connection page. It shows who wants to connect, what it will be able to do, and a QR code.
Scan the QR code with your iPhone camera. TopSet opens. Check the name, confirm that you started this connection yourself, and tap Allow.
The app shows a 6-digit code. Type it into the connection page on your computer and select Confirm. When the page says you’re done, go back to Claude Code.
After you approve, the browser hands back to your computer and Claude Code finishes signing in. The connection page shows the client as returning to an app on this computer, marked Unverified. That’s expected.
Opened the connection page on your iPhone? Tap Open app, approve in TopSet, then go back to the connection page and type in the code from the app. No iPhone at hand? Sign in on the connection page with your TopSet email and password and approve there; no code needed that way (if you only use Sign in with Apple, set a password first in the app under Profile › Athlete profile › Account & Security). The code is valid for 5 minutes. Only enter it on a connection page you started, and never share it.
Using TopSet in Claude Code
- Ask in Claude Code, for example “Use TopSet to look at my last 4 weeks of squats.”
- Run claude mcp list: topset should show Connected.
Disconnect
- Run claude mcp logout topset first, then claude mcp remove topset. Removing without logging out leaves the grant active on the server.
- In TopSet, go to Profile › AI assistants, select the connection and tap Disconnect. Access stops immediately. Removing it only inside the AI tool doesn’t notify TopSet, so disconnect on both sides.
Good to know
- If you already added TopSet on claude.ai and sign in to Claude Code with the same Claude subscription, TopSet shows up in Claude Code automatically.
- --scope user makes it available in every project; without it, it only works in the current one.
Official help
Each tool’s menus and plans change. Its own help pages are the reference.
Using a different AI tool? All AI tools · Get TopSet