Skip to content
Download all docs .md

MCP Server

Connect an AI coding tool (Claude Code, Cursor, Windsurf, VS Code and others) to your GameFuse account with the GameFuse MCP server. The tool can then list your games, read the docs, change game settings, game variables and store items, read leaderboards, and upload and run multiplayer room code for you.

What is MCP?

MCP (Model Context Protocol) is a standard way for AI tools to call outside services. The GameFuse MCP server is one web address, https://gamefuse.co/mcp. Your AI tool sends it small JSON requests (JSON-RPC 2.0) such as "list the tools" or "call list_games", and shows you the answers. You do not have to write any of these requests yourself; your tool does it once you have connected it (step 2).

The key covers your whole GameFuse account, not only multiplayer: every game you own is reachable with one key.

1. Make a key

In the GameFuse dashboard, open Account settings and create an MCP key. Copy it: it is shown once.

A key only reaches the games of the account that made it. It cannot see other accounts, billing, payments, player emails or passwords, and it cannot delete games. Revoke a key on the same page at any time.

2. Connect your tool

Server address: https://gamefuse.co/mcp (HTTP), with the header Authorization: Bearer <your key>.

Claude Code:

claude mcp add --transport http gamefuse https://gamefuse.co/mcp --header "Authorization: Bearer gfmcp_..."

Cursor and other tools that read an mcp.json file:

{
  "mcpServers": {
    "gamefuse": {
      "url": "https://gamefuse.co/mcp",
      "headers": { "Authorization": "Bearer gfmcp_..." }
    }
  }
}

Keep the key out of anything you commit. Use an environment variable where your tool supports it.

Check that your key works (no AI tool needed)

Put your key in a shell variable and ask for your games. This is the same request an AI tool sends when it calls the list_games tool:

export GAMEFUSE_MCP_KEY=gfmcp_...   # your key

curl -s https://gamefuse.co/mcp \
  --header "Authorization: Bearer $GAMEFUSE_MCP_KEY" \
  --header "Content-Type: application/json" \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "list_games", "arguments": {}}}'

A working key returns HTTP 200 and your games, both as text and in result.structuredContent:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [{ "type": "text", "text": "{ \"games\": [ ... ] }" }],
    "structuredContent": {
      "games": [{ "id": 123, "name": "Pong", "players": 2, "multiplayer_on": true }]
    },
    "isError": false
  }
}

A missing, wrong or revoked key returns HTTP 401:

{ "jsonrpc": "2.0", "id": null, "error": { "code": -32001, "message": "Missing or invalid MCP key. Make one in GameFuse: Account settings, MCP keys." } }

To see every tool and its inputs, send {"jsonrpc": "2.0", "id": 2, "method": "tools/list"} the same way.

3. Ask for things

  • "List my GameFuse games and show the players for each."
  • "Add a game variable max_speed = 12 to my Pong game."
  • "Write a 2-player pong room, upload it to game 123 and make it live."
  • "Why are rooms closing? Check the multiplayer logs."

Tools

Tool What it does
list_games, get_game, game_stats Your games, their API token, settings and player numbers
update_game_settings Name, description, username screening, best-score-only leaderboards
list_game_variables, set_game_variable, delete_game_variable Game variables
list_store_items, save_store_item Store items
get_leaderboard Leaderboards and their top entries
multiplayer_status, multiplayer_set_enabled Multiplayer on or off, live version per game mode
multiplayer_upload, multiplayer_activate Upload room code (checked before it can go live), make a version live or roll back
multiplayer_live, multiplayer_logs Rooms and players right now, room code logs
search_docs Search these docs

Limits: 120 calls a minute per key. Room code uploads follow the same rules as the Upload Key and Upload API.