Stori3D
v0.11.0See and edit the building project open in Stori3D: walls, rooms, openings, finishes, skies.
stori3d-mcp An MCP server that lets AI agents see and edit the Stori3D building project you have open in your browser. It works with Claude Code, OpenAI Codex, Google Antigravity, Gemini CLI, Cursor, VS Code (Copilot), Claude Desktop, and any other MCP client. Things you can ask an agent: - "Lay out a 3-bed house of about 120 m² with an open-plan kitchen" - "Make the study 1 m wider and add a window on the east wall" - "Furnish the bedroom" - "Check the door widths and stairs against the usual rules" - "Give me a door and window schedule with marks" - "Show me the shadows at 9 am on the…
Summary extracted from the README.
stori3d-mcp
An MCP server that lets AI agents see and edit the Stori3D building project you have open in your browser. It works with Claude Code, OpenAI Codex, Google Antigravity, Gemini CLI, Cursor, VS Code (Copilot), Claude Desktop, and any other MCP client.
Things you can ask an agent:
- "Lay out a 3-bed house of about 120 m² with an open-plan kitchen"
- "Make the study 1 m wider and add a window on the east wall"
- "Furnish the bedroom"
- "Check the door widths and stairs against the usual rules"
- "Give me a door and window schedule with marks"
- "Show me the shadows at 9 am on the winter solstice"
The agent can look at the model (3D pictures and 2D plans) to check its own work. Every change it makes is one undo step in Stori3D.
How it works
AI tool ──stdio (MCP)──▶ stori3d-mcp ◀──WebSocket 127.0.0.1:47831──▶ Stori3D tab (browser)
Stori3D runs in the browser, so the tab connects to this server on your own computer when you press Connect in Stori3D's AI agent panel. The tab then runs the tools through Stori3D's element API.
Set up
The AI agent panel in Stori3D walks you through this for your tool, and so does stori3d.com/mcp. You set it up once per computer.
Claude Desktop: get the Stori3D extension from the AI agent panel (step 1) and open the file; Claude Desktop asks whether to install it. It runs on the Node.js that Claude Desktop ships with, so there's nothing else to install. It doesn't update itself: Stori3D tells you when to get it again. To add the server by hand instead, open Settings → Developer → Edit Config and add it under mcpServers:
{
"mcpServers": {
"stori3d": {
"command": "npx",
"args": ["-y", "stori3d-mcp@latest"]
}
}
}
The other tools run it with Node.js 18 or newer:
| Tool | How |
|---|---|
| Claude Code | claude mcp add --scope user stori3d -- npx -y stori3d-mcp@latest (--scope user: in every folder, not just this one) |
| Cursor | the Add to Cursor button on stori3d.com/mcp, or the mcpServers entry above in ~/.cursor/mcp.json |
| VS Code (Copilot) | the Install in VS Code button on stori3d.com/mcp, or code --add-mcp '{"name":"stori3d","command":"npx","args":["-y","stori3d-mcp@latest"]}' |
| Windsurf | Cascade's MCP menu → Open MCP config file, and the mcpServers entry above |
| OpenAI Codex | codex mcp add stori3d -- npx -y stori3d-mcp@latest, or in ~/.codex/config.toml the lines below |
| Gemini CLI | gemini mcp add --scope user stori3d npx -- -y stori3d-mcp@latest, or the mcpServers entry above in ~/.gemini/settings.json |
| Google Antigravity | Agent panel → MCP Servers → Manage → View raw config, and the mcpServers entry above |
Codex's config.toml:
[mcp_servers.stori3d]
command = "npx"
args = ["-y", "stori3d-mcp@latest"]
@latest makes npx check for a newer version each time your AI tool starts; without it npx keeps running the version it cached first, and new tools never appear. Restart your AI tool after an update.
The Claude Desktop extension is this package packed as an MCP Bundle: npm run mcpb writes it to the app's public/downloads/stori3d.mcpb, and it goes out with the app.
Stori3D developers can run it from a source checkout instead: build it (npm install && npm run build in packages/stori3d-mcp) and use node <checkout>/packages/stori3d-mcp/dist/index.js as the command. For example:
claude mcp add stori3d -- node <checkout>/packages/stori3d-mcp/dist/index.js
The server only accepts Stori3D's own web addresses, so to connect it to a development copy of the app, name the copy's address too. For example:
claude mcp add stori3d -e STORI3D_ALLOWED_ORIGINS=http://localhost:5173 -- node <checkout>/packages/stori3d-mcp/dist/index.js
Connect
- Open your project in Stori3D (Chrome, Edge or Firefox on the same computer) and go to AI agent in the side rail. Press Connect.
- Start your AI tool if it isn't running. Once Stori3D finds it, it shows a 6-digit code and the sentence to paste: "Connect to Stori3D with code 123456". The agent calls the
connecttool. - The app bar shows AI connected. Every action the agent takes appears in the panel's activity list.
Turn on Remember … on this computer next to the code, and next time pressing Connect is enough: the server and the tab prove a key they kept from the first pairing instead. While the page stays open, a remembered AI tool whose session ends is waited for and reconnects by itself. Forget remembered AI tools in the panel drops it. (From 0.11.0; the app pairs with older servers by code.)
Chrome may ask once whether Stori3D can access "apps and services on this device". Allow it: that's the connection to this server. If Stori3D can't find your AI tool after half a minute, the panel says what to check.
Tools
| Session | connect, status |
| Read | project_summary, list_elements, get_element, get_selection, get_schedule, list_catalogue, list_finishes, list_palettes, list_skies, list_properties, get_plan_svg, get_drawing_svg (elevations, sections and the section lines placed on the plan), list_views, list_tours, list_model_parts (imported models' IFC classes and property sets), list_underlays, list_sheets, list_comments (clients' comments on the review link) |
| See and view | capture_view (overview, plan, elevation or section, element, saved view or current view, returned as an image; underlays on request), select, set_camera, go_to_view, set_active_level, set_section |
| Files | export_file (IFC, glTF, USDZ, STL, OBJ, DXF, SVG, the sheets as PDF, schedules as Excel, the project), export_image, render_image (path traced), export_video (a tour as MP4): saved on your computer, in Downloads unless the agent gives a path. import_file brings a model (IFC, SketchUp .dae/.zip, glTF, OBJ, FBX, STL) or an underlay (image, PDF, DXF) in from a path, up to 22 MB. |
| Change | update_element (also moving wall ends, doors and windows, curving walls), create_walls (straight or curved), create_room, create_slab, create_roof, create_stair (straight, L, U, winders), split_wall, place_opening, place_furniture, place_column, place_beam, place_ramp, place_lift, place_parking, create_grid, paint_surface, apply_palette, set_sky, set_sun, set_site, solid_operation, save_view, create_tour, update_tour, delete_tour, set_project_details, create_level, copy_level, remove_elements, set_properties, set_product, define_property, remove_property, sheets (create_sheet, place_drawing, update_sheet with revisions, remove_sheet, set_title_block), annotations (add_drawing_note, remove_drawing_note), batch, undo |
| Share (asks you first) | share_tour, share_link (view-only or review link), stop_sharing, reply_comment, resolve_comment |
It also provides the resource stori3d://guide (conventions and design rules of thumb) and four prompts: layout_from_brief, furnish_room, compliance_check and door_window_schedule.
Conventions: lengths are in mm, areas in m² and angles in degrees. Plan coordinates have x pointing east and y pointing north.
Safety
- Local only. The server listens on 127.0.0.1, and only accepts connections from Stori3D's own web addresses (it checks the
Originheader). - Your consent. Nothing is shared until you press Connect and give the agent the code. The server and the tab each have to prove they have the code, without sending it, before the tab answers any tool call or the server believes any answer. Pairing ends when either side disconnects.
- Remembered tools. Only when you turn Remember on: both sides keep a key derived from that pairing, and later prove it to each other with fresh nonces, so nothing that crosses the socket helps anyone guess it. It's tied to the AI tool it was made with (the MCP client's name), kept in the browser's storage for Stori3D's address and in
~/.stori3d-mcp/remembered.json(only you can read it; dropped after 90 days unused). You still press Connect once per page; Forget drops both halves. - Undoable. Each change is one undo step named "AI: …". The agent's
undotool can only undo its own changes. Deleting a level, or more than 10 elements, asks you first. - Asked first. Anything that reaches outside the project asks you in Stori3D before it happens: sharing a link or tour, taking one down, and answering a client's comment (you see the answer first).
- Files. The agent reads and writes files only at the paths it names, through this server on your computer; exports go to Downloads unless it says otherwise, and never over an existing file. All the tab chooses is a file's name, which can't place it anywhere else.
- Read-only mode in the AI agent panel lets the agent look but not change anything.
- No scripts, no account access. Agents can't run code in Stori3D or reach your sign-in. What the agent sees goes to the AI tool you chose, under its terms.
Options
| Environment variable | Purpose |
|---|---|
STORI3D_PORT |
Use one fixed port instead of trying 47831–47835 |
STORI3D_ALLOWED_ORIGINS |
Extra allowed page origins, comma-separated (for a self-hosted Stori3D, or a development copy on http://localhost:5173) |
STORI3D_HOME |
Where remembered pairings are kept, instead of ~/.stori3d-mcp |
STORI3D_INSTALL |
How the server was installed, told to the app so it says how to update (mcpb: the Claude Desktop extension sets it) |
The names from before the rename, NEXUS3D_PORT and NEXUS3D_ALLOWED_ORIGINS, still work.
Licence
Proprietary: © 2026 Stori3D. You may install and use it, unmodified, only to connect AI tools to Stori3D. See LICENSE. It relies on open-source packages that npm installs separately under their own MIT licences: @modelcontextprotocol/sdk, @noble/curves, @noble/hashes, ws and zod. The Claude Desktop extension carries them and the packages they need inside it, each with its own licence file.