All guides

Make a multiplayer game with Claude Code

Add the Multiplayer Agent tool server to Claude Code with one command, no account or key needed, then describe the game you want. The agent creates the game, defines the room, writes the client and hosts it at a share link, so you go from a sentence to a link a friend can open.

01Why this path is different

Most backends expect you to read documentation, copy a snippet and wire it up. That is fine, and it is also the slowest part of building a small game.

Because the platform exposes a tool interface rather than only a docs site, an agent can do the wiring: create the game, define the room's shape, generate a client that matches it, and hand you a file to open. You review the result instead of assembling it.

you describe it“make this multiplayer”the agent calls toolscreate game, define room, deploy logica game existsopen the file, send the link
The agent does the wiring: it creates the game, defines the room, writes a matching client and can deploy server rules. You review the result rather than assembling it.

02Connecting it

No account or key is needed to start. In Claude Code, install the plugin with /plugin marketplace add multiplayeragent/multiplayer-agent and then /plugin install multiplayer-agent@multiplayer-agent (it adds the tool server and a skill, so asking for "make it multiplayer" is enough), or add only the tool server by running this once in your terminal:

claude mcp add --transport http multiplayer-agent https://api.multiplayeragent.com/mcp?src=guide

Already have an account? Then ask the agent to connect your account before it builds anything. It opens a sign-in page, you check a short code and press Connect, and every game it makes lands in your studio. No key to copy, and nothing secret goes through the chat.

03What to ask for

Describe the game, not the API. The useful prompts sound like a brief:

  • "Make a two-player tic-tac-toe I can share with a friend: take turns, show who won."
  • "Build a top-down arena where everyone is a coloured square, arrow keys to move, and a leaderboard for eliminations."
  • "Add saved progress so a returning player keeps their unlocks."

04Review the parts that matter

Agents are good at this and still worth checking on two points. First, whether anything that decides a winner runs on the server rather than in the browser, ask directly if the score can be edited by the client. Second, whether the client leaves the room on unload, because that omission shows up as duplicate players and is easy to miss when testing alone.

05Then share it

Ask the agent to publish it. It uploads the game and hands you a share link on the game's own address, https://<game>.play.multiplayeragent.com/. Open it in two different browsers (or one normal and one private window) and you are two players, or send it to a friend. Publishing again updates the same link.

The game is also an ordinary web page, so you can host it anywhere else instead. There is no server to deploy on our side, because the room already exists.

06Keep it: claim the studio

A studio that started without an account lasts 72 hours, and so do its share links. The agent gives you a claim link. Open it and sign up or log in, and the games move into your account for good; if their links had paused, claiming turns them back on.

Claiming also unlocks what an unclaimed studio cannot do: deploying server-side logic, enabling player logins and changing player scope. To keep building from Claude Code afterwards, ask the agent to connect your account.

Or skip the key entirely: tell the agent your email and ask it to connect your account. It opens a link in your browser and shows you a short code. Sign up or log in on the website (your password never goes through the chat), check the code matches the one in your terminal, and press Connect. The same session then keeps building as your account, and its games move into your studio.

Common questions

Which agents does this work with?

Any agent that speaks the Model Context Protocol over HTTP. Claude Code connects with no key at all, or with your studio's secret key once you have an account; other MCP-capable clients connect the same way.

Do I need an account?

Not to start. Without one, your agent builds into an unclaimed studio that lasts 72 hours. Open the claim link it gives you and sign up or log in to keep the games and their share links.

Do I need to know how to code?

To get something playable, no: the agent writes the client. To take it somewhere serious, some JavaScript helps, mostly for the drawing and feel of the game rather than the networking.

Is the tool server an LLM?

No. It is a deterministic API: the same operations the dashboard performs, exposed so an agent can call them. Your agent supplies the intelligence; this supplies the platform.

Try it on your own game

The free tier does not expire and asks for no card. Add one script tag and have two people playing in about a minute.