Skip to main content
Glama
Rosh MCP Server
by rosh-studio

Rosh MCP Server

Let an AI agent build live 3D rooms in Rosh without rendering anything, and compile and publish Rosh programs.

Rooms (new in 0.2.0). A room is a live 3D space on rosh.cloud. The agent writes Rosh lines; the room checks each one and confirms or refuses it with a reason; rosh_room_look reads the room back as text, with layout notes (things that overlap, things hidden behind others from where visitors stand, things underground). The agent never needs a screen. The same room is drawn live by the browser, and by the Unity and Unreal clients.

What is Rosh?

Rosh lets you write programs in plain English:

create box called player at 400 300
set player color "blue"
on key "ArrowRight" then set player x to player x + 5

This compiles to a runnable HTML5 canvas app, a Phaser game, or a Three.js 3D scene — depending on the target.

Related MCP server: canvas3d-mcp

Quick Start

Claude Desktop / Claude Code

Add to your MCP config (~/.claude/mcp.json or Claude Desktop settings):

{
  "mcpServers": {
    "rosh": {
      "command": "uvx",
      "args": ["rosh-mcp"],
      "env": {
        "ROSH_API_KEY": "rosh_k1_your_key_here"
      }
    }
  }
}

Cursor / Windsurf

Same config format — add to your MCP settings file.

Get an API Key

Go to rosh.cloud/account/keys (sign in first), choose Build rooms with Claude or Cursor and Make key. The page shows the key once, with the claude mcp add command and the JSON above already filled in.

rosh_room_guide needs no key, and rosh_room_look works without one on public rooms; everything else needs ROSH_API_KEY.

Tools

Rooms

Tool

Description

Auth Required

rosh_room_guide

The lines a room understands, with examples: read first

No

rosh_create_room

Create a room from starting Rosh code

Yes (write)

rosh_list_rooms

List your rooms

Yes (read)

rosh_room_do

Send Rosh lines to a live room; each confirmed or refused

Yes (world)

rosh_room_look

Read a room as text, with layout notes

No (public rooms)

rosh_set_room_code

Replace a room's starting code

Yes (write)

A first brief to try: "Build a small 3D room about Pictish stones for a school group of 10-year-olds at slug pictish-stones. You cannot see it: check it with rosh_room_look and fix its layout notes."

Limits: 20 new rooms an hour per key by default; rooms can't be deleted through the API yet.

Programs

Tool

Description

Auth Required

rosh_docs

Get the full Rosh language reference

Yes (read)

rosh_compile

Compile Rosh code to HTML

Yes (read)

rosh_publish

Publish a program to rosh.cloud

Yes (write)

rosh_list_programs

List your programs

Yes (read)

rosh_get_program

Get program details by ID

Yes (read)

rosh_update_program

Update an existing program

Yes (write)

rosh_delete_program

Delete a program

Yes (write)

rosh_hide_program

Hide a program (moderation)

Yes (moderate)

rosh_show_program

Unhide a program

Yes (moderate)

Example Prompts

Try these with any MCP-capable AI:

  • "Build me a space shooter game" — AI reads docs, writes Rosh code, compiles to Phaser

  • "Create a 3D rotating sculpture" — compiles to Three.js

  • "Make an interactive dashboard with buttons and counters" — compiles to web

  • "Show me what Rosh can do" — AI calls rosh_docs and explores

Environment Variables

Variable

Required

Default

Description

ROSH_API_KEY

Yes

—

Your rosh.cloud API key

ROSH_API_BASE

No

https://rosh.cloud

API base URL

Development

git clone https://github.com/rosh-studio/rosh-mcp.git
cd rosh-mcp
pip install -e .
rosh-mcp  # runs the stdio server

License

MIT

Available Tools

9 tools
rosh_compileA

Compile Rosh code into a runnable HTML page. No API key needed.

Rosh is a plain-English programming language. Example: create box called player at 400 300 set player color "blue" on key "ArrowRight" then set player x to player x + 5

Args: code: Rosh source code to compile target: Target platform — "web" (HTML5 canvas), "phaser" (game engine), or "threejs" (3D)

Inputs: code (required), target. Returns: result

rosh_delete_programA

Permanently delete a program. Requires API key with write scope.

Args: program_id: The numeric program ID

Inputs: program_id (required). Returns: result

rosh_docsA

Get the Rosh language documentation — keywords, widgets, targets, and examples.

Returns the full language reference including all 25 keywords, available widgets, compile targets (web, phaser, threejs), and example programs. No API key needed.

Inputs: no named parameters. Returns: result

rosh_get_programA

Get details of a specific program by ID. Requires API key.

Args: program_id: The numeric program ID

Inputs: program_id (required). Returns: result

rosh_hide_programA

Hide a program from public view (moderation). Requires API key with moderate scope.

Args: identifier: Program ID (numeric) or slug (string)

Inputs: identifier (required). Returns: result

rosh_list_programsA

List all programs owned by the authenticated user. Requires API key.

Inputs: no named parameters. Returns: result

rosh_publishA

Compile and publish a Rosh program to rosh.cloud. Requires API key with write scope.

The published program gets a public URL at https://rosh.cloud/p/{username}/{slug}

Args: title: Display title for the program slug: URL-safe identifier (lowercase, hyphens only, e.g. "space-shooter") code: Rosh source code target: Target platform — "web", "phaser", or "threejs" description: One-line description of what the program does

Inputs: title (required), slug (required), code (required), target, +1 more. Returns: result

rosh_show_programA

Make a hidden program visible again. Requires API key with moderate scope.

Args: identifier: Program ID (numeric) or slug (string)

Inputs: identifier (required). Returns: result

rosh_update_programA

Update an existing program. Only provided fields are changed. Requires API key with write scope.

Args: program_id: The numeric program ID title: New title (optional) description: New description (optional) code: New source code (optional) target: New target platform (optional)

Inputs: program_id (required), title, description, code, +1 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool has a unique purpose with clear verb_noun naming. Even closely related tools like compile and publish are distinct (compile generates HTML, publish additionally deploys). Hide and show are clear opposites, and CRUD operations are well separated.

    Naming Consistency5/5

    All tools follow a consistent rosh_verb_noun pattern in snake_case. The naming convention is uniform across the entire tool set, making it predictable for agents.

    Tool Count5/5

    With 9 tools, the server covers a focused domain (Rosh language management) without bloat. Each tool serves a necessary function: compilation, documentation, CRUD, and moderation. The count feels right for the scope.

    Completeness5/5

    The tool set appears complete for the domain: it includes compilation, publishing, full CRUD for programs, moderation (hide/show), and documentation. There are no obvious missing operations like a search or share tool, but they are not essential for core functionality.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to control and manipulate live 3D scenes across frameworks like Three.js, A-Frame, and Babylon.js using a comprehensive set of object and environment tools. It features an integrated in-world chat system that allows for real-time scene modifications directly from within the 3D canvas.
      33
      3
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables AI agents to create, render, and validate 3D scenes, 2D art, and games in HTML canvas using Three.js, WebGL, or Canvas 2D, with multi-angle screenshots, structured validation reports, and interactive playtesting.
      5
      -