Sign in to see your models

Save models to your account and pick up where you left off on any device.

Sign-in is temporarily unavailable. Please try again later.

Work together

Your model. Your AI.

Connect an AI client to a MathPets model. Give it the language reference, a view of the world, and room to experiment alongside you.

Find a starting point

Search documentation and working examples by meaning, then read the full reference or source.

See what happens

Request screenshots at chosen steps, at regular intervals, or as a labeled sheet of thumbnails to compare how a simulation evolves, without changing your current run.

Build with you

The code window opens when your AI starts reading. Follow its progress and see the changed lines highlight as each edit arrives. Parameter changes and playback actions highlight their controls too.

Make the connection

  1. Open a model, choose Connect AI, sign in with X, and choose Connect this tab.
  2. Add https://mathpets.world/api/mcp to your AI client as a remote MCP server. In Claude Code, run claude mcp add --transport http mathpets https://mathpets.world/api/mcp, then /mcp and Authenticate. In Claude, add it under Settings → Connectors → Add custom connector.
  3. When your client opens MathPets in the browser, sign in with X and choose Allow.
  4. Keep the MathPets tab open. Ask your AI to read the workspace and help you explore.

A client that can’t sign in can use the tab’s connection token instead: open Client without sign-in support? in the Connect AI dialog and send it as Authorization: Bearer YOUR_TOKEN. A remote client also needs a publicly reachable MathPets URL; your local server is reachable only from your own computer.

You keep your place

If you edit the code, the AI’s next edit is rejected and it receives your changes. It can reconcile them and explicitly retry. Simply rereading the model cannot skip this check.

AI edits change the draft. Use the editor’s normal Save or Apply button when you want to keep or run it. Previews use the draft, while parameter changes affect the live model.

Where your AI works

A signed-in client works in the tab you connected most recently; open Connect AI in another tab and choose Use this tab to move it. It can’t save or publish models or open your saved library. It stays signed in while you use it, for up to 30 days between uses. Sign it out under Signed-in AI clients in any Connect AI dialog.

Connection tokens reach one tab only. They end when you disconnect, leave the page, or after 12 hours; revoke older ones under Other connections.

Semantic search downloads a small embedding model the first time you use it, then runs in your browser. Previews run in a separate worker, support up to 1,000 steps, and stop if they take too long. Models that need external data use the live workspace rather than previews.