01Connect it
No account and no key needed. In Claude Code, type these to install the plugin once. It adds this server and a skill, so asking for "make it multiplayer" or "play with friends online" is enough:
/plugin marketplace add multiplayeragent/multiplayer-agent
/plugin install multiplayer-agent@multiplayer-agentOr add only the server, from your terminal (the plugin's source is github.com/multiplayeragent/multiplayer-agent):
claude mcp add --transport http multiplayer-agent https://api.multiplayeragent.com/mcp?src=siteThe first tool call opens an unclaimed studio for that connection. Everything you need to build, test and share a game works in it. Deploying server-side logic, enabling login providers and changing player scope unlock once you claim it.
An unclaimed studio and its share links last 72 hours. Your agent hands you a claim link, shaped like https://multiplayeragent.com/claim/…. Open it, sign up or log in, and the games move into your account for good. If their links had paused, claiming turns them back on.
Or connect the session itself, like gh auth login: give your agent your email and it calls connect_account, opens a link in your browser and tells 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.
Already have an account?
The easiest way is the same as above: ask your agent to connect your account, and sign in on the page it opens. No key involved.
For a permanent connection, use your studio secret key from the dashboard. Run this yourself in a terminal window, not in Claude Code's chat or any AI chat: anything typed there is sent to the model and saved in the conversation, and this command contains your key. User scope keeps the key out of your project's git:
claude mcp add --scope user --transport http multiplayer-agent https://api.multiplayeragent.com/mcp --header "Authorization: Bearer sk_your_secret_key"Or add this to any MCP client's configuration, such as .mcp.json in Claude Code:
{
"mcpServers": {
"multiplayer-agent": {
"type": "http",
"url": "https://api.multiplayeragent.com/mcp",
"headers": { "Authorization": "Bearer sk_your_secret_key" }
}
}
}The secret key starts sk_ and identifies your whole studio. It is not the publishable key that ships inside a game, it must never appear in client code, and it should not be pasted into a chat window. The publishable key is the one that is safe in public.
02Describe the game
Talk about the game rather than the API. The agent picks the tools. Prompts that work well read 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, with a leaderboard.
- Add saved progress so a returning player keeps their unlocks.
04What it can do
Every tool, grouped by the part of a build it serves. Each is a plain API call against the same service the dashboard uses, so an agent and a human cannot end up with different results.
Your games
One studio holds many games. These find, create and name them.
- list_games
- Every game in the studio, with its rooms.
- create_game
- A new game and its publishable key.
- set_game_name
- Rename a game so the dashboard stays readable.
- set_player_scope
- Share players across the studio, or isolate them per game.
Building the game
Describe the shape of the room, then get a client that matches it.
- define_room_type
- Declare the fields a room holds, and their types.
- get_connection_info
- The key and endpoints this game connects with.
- get_client_snippet
- A working client for the room you just defined.
- get_sdk_reference
- The full API, so the agent writes against the real thing.
Hosting and keeping it
Put the game on its own address, and keep a studio that started without an account.
- publish_game
- Upload the game's files and get a public share link. Re-run it to update the same link, or patch just the files that changed.
- create_upload
- Upload URLs for images, audio and other big files, so they go straight from disk instead of through the chat.
- claim_studio
- The claim link for an unclaimed studio, and whether it has been claimed.
- connect_account
- A one-time browser link and code that connect a keyless session to your account.
Server-authoritative rules
For anything a player could otherwise fake, with a way back when a change is wrong.
- deploy_room_logic
- Run game rules on the server, on a tick.
- list_room_logic
- Every version deployed, newest first.
- rollback_room_logic
- Return to a previous version in one call.
- get_room_logs
- Read errors without joining the room to reproduce them.
Starter games
Begin from a ready-made multiplayer game instead of a blank page. Free starters are open to everyone; premium ones come with a paid plan. In Claude Code, /multiplayer-agent:remix <starter> does the whole thing in one line.
- list_starters
- The starter games, the video each came from, and which ones this studio has.
- remix_game
- Make a new game from a starter: its source to download, rewired to the new game's key, ready to publish.
Live ops
Run events and retune a live game as data: rooms already running pick it up in seconds, and nobody is kicked.
- get_live_ops
- What's on now and next, every scheduled event, and recent highlights. Preview any time.
- set_live_config
- The values a game reads at runtime: rewards, difficulty, rules, a banner.
- schedule_live_event
- A timed event, once or every day or week, with its own rule changes.
- cancel_live_event
- Remove an event. If it's running, it ends in seconds.
- set_highlight_webhook
- Post the moments the server announces to a Discord or Slack channel.
Player login
Let players sign in with an account they already have on a game portal or Google.
- enable_login_provider
- Turn on a portal or Google login for a game.
- list_login_providers
- The logins a game accepts.
- verify_login_token
- Check a real login token end to end without creating a player.
05Check two things
Agents are good at this and two mistakes are still worth catching, because both are invisible when you test alone.
- Ask directly whether the score can be edited by the client. Anything that decides a winner belongs in server logic, not in the browser.
- Check the client leaves the room when the page unloads. Without it, a refresh leaves a ghost player for about thirty seconds and everyone sees you twice.
06Worth knowing
- The server is deterministic. It exposes the same operations as the dashboard, so your agent supplies the reasoning and this supplies the platform.
- The shipped game never uses MCP. It talks to the runtime and the control plane with the publishable key, so nothing you build depends on the agent staying connected.
- Claude Code connects with no key, or with your secret key as a bearer header. OAuth for GUI connectors is not built yet, so clients that require it cannot connect.
- The plain-text description an assistant reads is at /llms.txt, and the whole corpus is at /llms-full.txt.
Start without a key
Add the server with one command and ask for a game. When you want to keep it, claim the studio. The free tier covers a thousand players a month and asks for no card.