Skip to main content
Glama
roblox-opencloud-mcp

roblox-opencloud-mcp

by PROROBLOX43
README.md
# roblox-opencloud-mcp

**Let Claude (or any MCP-compatible AI) manage your live Roblox game: player data, leaderboards, bans, live Luau, publishing, game passes and dev products.**

Roblox Studio's built-in MCP works on the place you have *open in Studio*. This server works on your *live experience* through [Open Cloud](https://create.roblox.com/docs/cloud), so you can do things like:

> "Look up player 123456's save and give them back the 500 coins they lost in yesterday's bug."
> "Show me the top 10 on the Wins leaderboard."
> "Ban user 987 for 7 days for exploiting. Tell them it's for exploiting."
> "Run a script on my place that counts unanchored parts and lists scripts with `require(` in them."
> "Make a 'VIP' game pass for 299 Robux and drop the 2x Coins product to 99."
> "Publish game.rbxl and restart only the servers on old versions."

Built from Roblox's official OpenAPI spec. Python, two dependencies.

## Tools (23)

| Area | Tools |
|---|---|
| Experience | `get_experience`, `restart_servers`, `publish_message` (MessagingService to all live servers) |
| Data stores | `list_data_stores`, `list_data_store_keys`, `get_data_store_entry`, `set_data_store_entry`, `increment_data_store_entry`, `delete_data_store_entry`, `list_data_store_entry_revisions` |
| Leaderboards | `get_leaderboard` (OrderedDataStore, top N) |
| Moderation | `ban_player` (incl. alt accounts, timed or permanent), `unban_player`, `get_ban`, `list_bans` |
| Places | `publish_place` (.rbxl / .rbxlx, save or publish), `run_luau` (runs a script in a headless copy of your place and returns results and prints) |
| Monetization | `list_game_passes`, `create_game_pass`, `update_game_pass`, `list_developer_products`, `create_developer_product`, `update_developer_product` |

Every tool is tagged read-only or destructive (MCP tool annotations), so clients like Claude ask before running the ones that change things.

## Setup

### 1. Create an API key

Creator Hub → **Open Cloud → API Keys → Create API Key**. Add these API systems and pick your experience for each. Only add what you'll use:

| API system | Operations | Needed for |
|---|---|---|
| universe-datastores | read, list, update, create, delete | data store tools |
| ordered-data-store | read | `get_leaderboard` |
| universe.user-restriction | read, write | ban tools |
| universe-messaging-service | publish | `publish_message` |
| universe | write | `restart_servers` |
| universe-places | write | `publish_place` |
| luau-execution-sessions | write | `run_luau` |
| game-pass, developer-product | read, write | monetization tools |

Set the IP allow-list to `0.0.0.0/0` (or your own IP) and copy the key.

**Universe ID ≠ Place ID.** Get the universe id from Creator Hub → your experience → `…` → **Copy Universe ID**.

### 2. Install

```bash
pip install git+https://github.com/PROROBLOX43/roblox-opencloud-mcp
```

(or with [uv](https://docs.astral.sh/uv/): nothing to install, see the `uvx` config below)

### 3. Add it to your AI client

**Claude Desktop**: Settings → Developer → Edit Config (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "roblox-opencloud": {
      "command": "roblox-opencloud-mcp",
      "env": {
        "ROBLOX_API_KEY": "your-key",
        "ROBLOX_UNIVERSE_ID": "1234567890",
        "ROBLOX_PLACE_ID": "9876543210"
      }
    }
  }
}
```

With uv instead of pip:

```json
"command": "uvx",
"args": ["--from", "git+https://github.com/PROROBLOX43/roblox-opencloud-mcp", "roblox-opencloud-mcp"]
```

**Claude Code**:

```bash
claude mcp add roblox-opencloud -e ROBLOX_API_KEY=your-key -e ROBLOX_UNIVERSE_ID=1234567890 -- roblox-opencloud-mcp
```

Cursor / VS Code / others: same command and env vars in their MCP settings.

## Configuration

| Variable | Required | Meaning |
|---|---|---|
| `ROBLOX_API_KEY` | yes | Open Cloud API key |
| `ROBLOX_UNIVERSE_ID` | recommended | Default experience, so you don't repeat it in every request |
| `ROBLOX_PLACE_ID` | for `run_luau` / `publish_place` | Default place |
| `ROBLOX_MCP_READ_ONLY` | no | `1` disables every tool that changes anything. Good for a first try, or for giving a moderator AI read access only |

## Safety notes

- **Start read-only** (`ROBLOX_MCP_READ_ONLY=1`) until you trust your setup.
- `set_data_store_entry` overwrites the whole value. The AI is told to read first and change only what you asked. Still, don't edit a player's save **while they're in game**, because their server will save over it when they leave.
- Data store deletes and overwrites keep old revisions for 30 days (`list_data_store_entry_revisions`).
- Keep your API key out of git. Scope it to one experience and only the systems you need.

## Development

```bash
git clone https://github.com/PROROBLOX43/roblox-opencloud-mcp && cd roblox-opencloud-mcp
pip install -e .
python -m unittest discover -s tests -v
```

Tests run against a fake Roblox (no key needed) and check every request's method, path, query and body against the official spec. Want another endpoint (memory stores, secrets, assets, inventory)? Open an issue or PR. `client.py` is one method per endpoint.

## License

MIT © QuartzGamesStudios. Not affiliated with Roblox Corporation.