roblox-assets-mcp
by Petri-Hub
README.md
<h1 align="center">📦 roblox-assets-mcp</h1>
<br>
<h3 align="center">An MCP server for finding and managing Roblox assets.<br>Search Creator Store and manage assets in your own account.</h3>
<p align="center">
<a href="https://pypi.org/project/roblox-assets-mcp/"><img alt="PyPI version" src="https://img.shields.io/pypi/v/roblox-assets-mcp?logo=pypi&logoColor=white" /></a> <a href="https://github.com/Petri-Hub/roblox-assets-mcp/actions/workflows/quality.yml"><img alt="Quality" src="https://github.com/Petri-Hub/roblox-assets-mcp/actions/workflows/quality.yml/badge.svg?branch=main" /></a> <img alt="Python 3.12+" src="https://img.shields.io/badge/python-3.12%2B-3776AB?logo=python&logoColor=white" /> <a href="LICENSE.md"><img alt="License" src="https://img.shields.io/github/license/Petri-Hub/roblox-assets-mcp" /></a> <img alt="Time spent" src="https://img.shields.io/endpoint?url=https%3A%2F%2Flab-wakapi.petri.zip%2Fapi%2Fcompat%2Fshields%2Fv1%2FPetri%2Fproject%3Aroblox-assets-mcp%2Finterval%3Aall_time&label=time%20spent&logo=wakatime&logoColor=white&color=blue&cacheSeconds=3600" />
</p>
<br>
## About
> **TL;DR:** a local MCP server to search Roblox Creator Store, inspect assets, and upload and manage assets owned by a user or group.
## Why it exists
[I am building a Roblox game with friends and an AI agent](https://github.com/Petri-Hub/roblox-with-swe). The agent can help with code, but it also needs the same raw material a human creator would look for: models, audio, decals, plugins, and other things already made for Roblox. This server gives it a small set of tools for that part of the work.
For example, I can ask the agent to find a free forest cabin, check who made it and whether it contains scripts, inspect its preview, and get a URL for the asset it chooses. The agent can then fetch and examine the file in its own workspace before using it in a project.
## How it works
<p align="center">
<img src="assets/how-it-works.svg" alt="You ask an AI assistant for an asset. It calls the local roblox-assets-mcp server over stdio. The server searches Roblox Creator Store and reads asset details, gets a 2D preview from the Thumbnails API, and asks Asset Delivery for a temporary CDN URL. The assistant receives the results and fetches the file in its own workspace." />
</p>
The assistant calls tools over local stdio. The server sends HTTPS requests to Roblox with [HTTPX](https://www.python-httpx.org/), using an Open Cloud API key for Creator Store, Asset Delivery and asset management. It reads 2D previews from the public Thumbnails API. Uploads read a file from the MCP server's own filesystem.
## Philosophy
**Only the asset workflow.**<br>
The tools cover searching, inspecting and downloading assets, as well as uploading and maintaining owned assets. Universe and place management belong to a different set of tools.
**Let the assistant choose.**<br>
Search returns structured names, creators, prices and IDs. Details add a preview and script flag when Roblox provides them. The agent has enough information to compare candidates before downloading one.
**Keep the key local.**<br>
Roblox authentication happens in the MCP process. The agent sees asset data and temporary URLs, while the key remains in the process environment. Access is checked before the server announces itself to the client.
**Use the workspace.**<br>
The server obtains download URLs without saving files. Uploads read an absolute file path on the server; run the MCP in the same filesystem as the assistant's workspace, including when using SSH.
## What it can do
| Tool | What it returns |
|---|---|
| `search_assets` | Matching Creator Store assets, including names, creators, prices when available, and a token for the next page |
| `get_asset_details` | One asset's metadata and the state and URL of its 2D PNG thumbnail when ready |
| `prepare_asset_download` | A temporary HTTPS CDN URL for one asset; the tool does not save the file |
| `create_asset` | Upload a local file and return the Roblox operation |
| `get_asset_operation` | Check a create or update operation |
| `get_owned_asset` | Read Open Cloud metadata for an asset ID |
| `update_asset` | Update metadata or supported model content |
| `list_asset_versions`, `get_asset_version` | Inspect versions |
| `rollback_asset_version` | Restore an earlier version |
| `archive_asset`, `restore_asset` | Archive or restore an asset |
Uploading creates an asset under the supplied user or group; it does not create a Creator Store listing. Rollback and archive affect existing assets; archived assets may stop working in experiences. Confirm the intended action and asset before calling them. In live tests, Roblox allowed archiving a Decal but returned an error for a Model because that asset type is not archivable.
The search tool accepts these asset types:
| Asset type | Description | Example |
|---|---|---|
| `Audio` | Sound effects and music | Footsteps in a forest |
| `Place` | A saved Roblox world and its contents | A starter map |
| `Model` | A group of objects that can include geometry and scripts | A forest cabin |
| `Decal` | An image applied to a surface | A warning sign |
| `Plugin` | A tool that extends Roblox Studio | A terrain editor |
| `MeshPart` | A custom 3D shape | A rock mesh |
| `Video` | A clip for an in-game screen | A looping display |
| `FontFamily` | A font for interface text | A pixel-style font |
Search starts with free models. The assistant can choose another type, include paid results, and request more pages. Thumbnail images may still be pending, and download URLs expire. The server returns the URL; the assistant fetches the file in its own workspace.
Asset details request font-family previews at Roblox's `1200x80` font size; other asset types use `420x420`. The returned image can have a different aspect ratio or transparency, so display it without stretching and choose a suitable background.
## Getting an API key
Create a Roblox [Open Cloud API key](https://create.roblox.com/docs/cloud/open-cloud/api-keys) with the scopes needed for your workflow. By default, the server checks Creator Store and Asset Delivery access on startup; asset-management permissions are checked by Roblox when those tools are called. If your key has only asset-management permissions, set `ROBLOX_VALIDATE_SEARCH_ACCESS=false` in the MCP process environment to skip the search and delivery startup checks. Search and download tools will still fail if their scopes are missing.
| Scope | Used for |
|---|---|
| `creator-store-product:read` | Searching Creator Store and reading asset details |
| `legacy-asset:manage` | Asking Asset Delivery for an asset's download location |
| `asset:read` | Reading owned assets, operations and versions; also required by Roblox for writes |
| `asset:write` | Creating, updating, rolling back, archiving and restoring assets |
If you enable IP restrictions, allow the address of the machine running the MCP server. The public 2D thumbnail endpoint needs no additional scope. Keep the key in your MCP client's environment configuration, never in a project file that you commit. A key used only for testing can be revoked afterward.
## Installation
Roblox Assets MCP is published on [PyPI](https://pypi.org/project/roblox-assets-mcp/) and runs locally over **stdio**. Choose your client below and replace `YOUR_ROBLOX_OPEN_CLOUD_API_KEY` with your key. Configure `ROBLOX_OWNER_ID` (a positive Roblox user or group ID) and `ROBLOX_OWNER_TYPE` (`user` or `group`) in the MCP server environment. Both are required at startup; uploads use this owner automatically. Existing installations must add these variables.
<details>
<summary>Hermes Agent (Pepper)</summary>
Add a server to your Hermes profile's `mcp_servers` configuration. Pepper's existing profiles use this `uvx` pattern:
```yaml
mcp_servers:
roblox-assets:
command: uvx
args: [roblox-assets-mcp]
env:
ROBLOX_API_KEY: "${ROBLOX_API_KEY}"
```
Set `ROBLOX_API_KEY` in the environment that starts Hermes. See [Pepper's configuration](https://github.com/Petri-Hub/pepper) for the wider setup.
</details>
<details>
<summary>Claude Code</summary>
Run this in a terminal. The `user` scope makes the server available across projects:
```sh
claude mcp add --transport stdio --scope user \
--env "ROBLOX_API_KEY=YOUR_ROBLOX_OPEN_CLOUD_API_KEY" \
roblox-assets -- uvx roblox-assets-mcp
```
Check the connection with `claude mcp get roblox-assets` or `/mcp` inside Claude Code. See the [Claude Code MCP guide](https://code.claude.com/docs/en/mcp).
</details>
<details>
<summary>Claude Desktop</summary>
Open **Settings → Developer → Edit Config** and add this entry inside `mcpServers`:
```json
{
"mcpServers": {
"roblox-assets": {
"command": "uvx",
"args": ["roblox-assets-mcp"],
"env": {
"ROBLOX_API_KEY": "YOUR_ROBLOX_OPEN_CLOUD_API_KEY",
"ROBLOX_OWNER_ID": "123456",
"ROBLOX_OWNER_TYPE": "user"
}
}
}
}
```
Restart Claude Desktop after saving. See [Claude Desktop local MCP setup](https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop).
</details>
<details>
<summary>OpenAI Codex</summary>
Add this to `~/.codex/config.toml`. The same user config is used by Codex CLI and its IDE integrations:
```toml
[mcp_servers.roblox-assets]
command = "uvx"
args = ["roblox-assets-mcp"]
env = { ROBLOX_API_KEY = "YOUR_ROBLOX_OPEN_CLOUD_API_KEY" }
```
Restart Codex, then check the server with `codex mcp list`. See the [Codex configuration reference](https://developers.openai.com/codex/config-reference/).
</details>
<details>
<summary>OpenCode</summary>
Add this server under `mcp` in your user `~/.config/opencode/opencode.json` or project `opencode.json`:
```json
{
"mcp": {
"roblox-assets": {
"type": "local",
"command": ["uvx", "roblox-assets-mcp"],
"environment": {
"ROBLOX_API_KEY": "YOUR_ROBLOX_OPEN_CLOUD_API_KEY",
"ROBLOX_OWNER_ID": "123456",
"ROBLOX_OWNER_TYPE": "user"
},
"enabled": true
}
}
}
```
See the [OpenCode MCP server guide](https://opencode.ai/docs/mcp-servers/).
</details>
<details>
<summary>Gemini CLI</summary>
Run:
```sh
gemini mcp add --scope user \
--env "ROBLOX_API_KEY=YOUR_ROBLOX_OPEN_CLOUD_API_KEY" \
roblox-assets uvx roblox-assets-mcp
```
Check with `gemini mcp list`. See the [Gemini CLI MCP guide](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md).
</details>
<details>
<summary>Grok Build</summary>
Add this to `~/.grok/config.toml`:
```toml
[mcp_servers.roblox-assets]
command = "uvx"
args = ["roblox-assets-mcp"]
env = { ROBLOX_API_KEY = "YOUR_ROBLOX_OPEN_CLOUD_API_KEY" }
enabled = true
```
Reload the MCP list in Grok Build after saving. See the [Grok Build MCP guide](https://github.com/xai-org/grok-build/blob/main/crates/codegen/xai-grok-pager/docs/user-guide/07-mcp-servers.md).
</details>
<details>
<summary>DeepSeek Harness</summary>
Add this MCP client entry to your DeepSeek Harness Cordis profile. Start the harness with `ROBLOX_API_KEY` set in its environment:
```yaml
- id: mcp-roblox-assets
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: roblox-assets
transport: stdio
command: uvx
args: [roblox-assets-mcp]
env:
ROBLOX_API_KEY: !!js process.env.ROBLOX_API_KEY
```
See the [DeepSeek Harness MCP client guide](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/mcp/mcp-client/README.md).
</details>
<details>
<summary>Cursor</summary>
Add this entry under `mcpServers` in `.cursor/mcp.json`:
```json
{
"mcpServers": {
"roblox-assets": {
"command": "uvx",
"args": ["roblox-assets-mcp"],
"env": {
"ROBLOX_API_KEY": "YOUR_ROBLOX_OPEN_CLOUD_API_KEY",
"ROBLOX_OWNER_ID": "123456",
"ROBLOX_OWNER_TYPE": "user"
}
}
}
}
```
See the [Cursor MCP guide](https://cursor.com/docs/context/mcp).
</details>
<details>
<summary>VS Code with GitHub Copilot</summary>
Create or edit `.vscode/mcp.json`:
```json
{
"servers": {
"roblox-assets": {
"type": "stdio",
"command": "uvx",
"args": ["roblox-assets-mcp"],
"env": {
"ROBLOX_API_KEY": "YOUR_ROBLOX_OPEN_CLOUD_API_KEY",
"ROBLOX_OWNER_ID": "123456",
"ROBLOX_OWNER_TYPE": "user"
}
}
}
}
```
Start the server from the MCP Servers view in Copilot Chat. See [VS Code MCP setup](https://code.visualstudio.com/docs/agent-customization/mcp-servers).
</details>
<details>
<summary>Zed</summary>
Add this entry under `context_servers` in Zed's `settings.json`:
```json
{
"context_servers": {
"roblox-assets": {
"command": "uvx",
"args": ["roblox-assets-mcp"],
"env": {
"ROBLOX_API_KEY": "YOUR_ROBLOX_OPEN_CLOUD_API_KEY",
"ROBLOX_OWNER_ID": "123456",
"ROBLOX_OWNER_TYPE": "user"
}
}
}
}
```
See the [Zed MCP guide](https://zed.dev/docs/ai/mcp).
</details>
<details>
<summary>Cline and Roo Code</summary>
In either extension's MCP settings, add a **local stdio** server with command `uvx`, argument `roblox-assets-mcp`, and environment variable `ROBLOX_API_KEY`. Both provide an MCP settings editor in the extension UI. See the [Cline MCP guide](https://github.com/cline/cline/blob/main/docs/mcp/mcp-overview.mdx) and [Roo Code MCP guide](https://roocodeinc.github.io/Roo-Code/features/mcp/using-mcp-in-roo/).
</details>
<details>
<summary>Continue</summary>
Create `.continue/mcpServers/roblox-assets.yaml`:
```yaml
name: Roblox Assets MCP
version: 1.0.0
schema: v1
mcpServers:
- name: Roblox Assets
command: uvx
args:
- roblox-assets-mcp
env:
ROBLOX_API_KEY: YOUR_ROBLOX_OPEN_CLOUD_API_KEY
```
See the [Continue MCP guide](https://docs.continue.dev/customize/deep-dives/mcp).
</details>
<details>
<summary>Claude.ai and ChatGPT in a browser</summary>
These web apps connect to **remote** MCP servers. This package runs locally over stdio and does not publish a remote endpoint, so you cannot paste `uvx roblox-assets-mcp` into their connector settings. Connecting a web app requires a separately hosted or securely tunneled remote MCP endpoint. See [Claude remote connectors](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp) and [ChatGPT MCP connectors](https://help.openai.com/en/articles/12584461-developer-mode-and-full-mcp-connectors-in-chatgpt).
</details>
## Technologies
| | Technology | Used for |
|:---:|---|---|
| <img src="https://cdn.simpleicons.org/modelcontextprotocol/9198A1" width="20" height="20" alt="" /> | [Model Context Protocol](https://modelcontextprotocol.io) | The protocol between the assistant and the local tools |
| <img src="https://gofastmcp.com/assets/brand/blue-logo.png" height="20" alt="" /> | [FastMCP](https://gofastmcp.com) | Stdio server and typed tool registration |
| <img src="https://cdn.simpleicons.org/python" width="20" height="20" alt="" /> | [Python](https://docs.python.org/3/) | The language of the server |
| <img src="https://www.python-httpx.org/img/butterfly.png" height="20" alt="" /> | [HTTPX](https://www.python-httpx.org) | Async HTTPS requests to Roblox |
| <img src="https://cdn.simpleicons.org/pydantic" width="20" height="20" alt="" /> | [Pydantic](https://docs.pydantic.dev/) | Models for the data returned by tools |
| <img src="https://cdn.simpleicons.org/uv" width="20" height="20" alt="" /> | [uv](https://docs.astral.sh/uv/) | Dependencies, development and `uvx` distribution |
## What's inside
```text
.
├── .github/
│ └── workflows/
│ ├── quality.yml # formatting, lint, tests and build checks
│ └── release.yml # build and publish a GitHub Release to PyPI
│
├── assets/ # editable Excalidraw flow and its SVG for this README
│
├── src/roblox_assets_mcp/
│ ├── app.py # stdio server, tools and startup check
│ ├── client.py # Roblox HTTP requests and response parsing
│ ├── management.py # Open Cloud asset lifecycle requests
│ ├── config.py # environment settings and their defaults
│ └── models.py # typed tool responses and asset categories
│
├── tests/ # behavior checks for the server
├── Makefile # local quality commands
└── pyproject.toml # package metadata and dependencies
```
## Development
### Requirements
- [Git](https://git-scm.com/install/) to work with the repository.
- [uv](https://docs.astral.sh/uv/getting-started/installation/) to install Python and project dependencies.
- [GNU Make](https://www.gnu.org/software/make/) to run the project commands.
### Setup
From the repository root:
```bash
# Install the dependencies pinned in uv.lock.
uv sync --locked --group dev
```
### Coding
```bash
# Format the Python files after editing them.
make format-apply
# Check Python formatting.
make format-check
# Check Python code with Ruff.
make lint
```
### Testing and building
```bash
# Run the server tests.
make test
# Build the source distribution and wheel in dist/.
make build
# Run formatting, lint, tests and build together.
make quality
```
## Related projects
- [roblox-with-swe](https://github.com/Petri-Hub/roblox-with-swe) is the collaborative Roblox game that motivated this server.
- [pepper](https://github.com/Petri-Hub/pepper) documents the personal agent that will use it.
## Disclaimer
This project is unofficial. It is not made by, affiliated with or endorsed by Roblox.
## License
This repository is licensed under the [MIT License](LICENSE.md).
## References
- [Roblox Creator Store API](https://create.roblox.com/docs/cloud/reference/features/creator-store): search and asset metadata.
- [Roblox Asset Delivery API](https://create.roblox.com/docs/cloud/reference/features/assets): temporary asset download locations.
- [Roblox Thumbnails API](https://create.roblox.com/docs/cloud/reference/features/thumbnails): 2D previews.
- [Roblox Open Cloud scopes](https://create.roblox.com/docs/cloud/reference/scopes): the permissions used by the API key.
- [Model Context Protocol](https://modelcontextprotocol.io): the tool protocol this server speaks.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues