Skip to main content
Glama

@ctruhtech/verse-mcp

Verse MCP server

An MCP server for Verse Engine, which publishes 3D scenes, walkthroughs and worlds, from a single product to a whole city, as links that open in any browser on everyday devices. Connect it to Claude, ChatGPT, Cursor, VS Code or your own agent, and your assistant can publish a file or a public URL and hand you back a Verse link, embed code, a private share link or a guided camera tour.

"Put https://example.com/villa.glb on Verse and give me a link I can share."
"Make that scene private and give me a link I can send to the client."
"I have a big file on my phone. Give me a Verse upload link for it."
"Give me the embed code for it, 1:1."

MIT licensed. Documentation: https://verse.ctruh.com/docs/#/mcp. Install page with one-click buttons: https://verse.ctruh.com/mcp.

Connect in one step: sign in with Verse

Add https://verse.ctruh.com/mcp to your assistant and sign in with your Verse account in the browser. No API key to copy, nothing to install.

  • Claude (web and desktop): Settings → Connectors → Add custom connector → URL https://verse.ctruh.com/mcp → Add, then Connect.

  • Claude Code: claude mcp add --transport http --scope user verse https://verse.ctruh.com/mcp, then run /mcp and choose Authenticate.

  • ChatGPT: Settings → Connectors → Create (developer mode) → URL https://verse.ctruh.com/mcp, authentication OAuth → Create, then sign in.

  • Cursor: Add to Cursor, or { "mcpServers": { "verse": { "url": "https://verse.ctruh.com/mcp" } } } in ~/.cursor/mcp.json, then Connect in Settings → MCP.

  • VS Code: Install in VS Code, or { "servers": { "verse": { "type": "http", "url": "https://verse.ctruh.com/mcp" } } } in .vscode/mcp.json, then Start.

The first time, a Verse page asks you to sign in (email or WhatsApp code) and press Allow. The app gets a key named "MCP · " on your Account page; it lasts 30 days, renews while in use, and you can revoke it there.

Prefer to run it locally, with an API key? See Setup (stdio) below: npx -y @ctruhtech/verse-mcp, Node 20 or newer.

Related MCP server: threejs-mcp

Tools

Tool

What it does

upload_scene

Local path or public URL, to a Verse link. Resumable for big files, progress notifications, waits for the build.

get_scene_status

Build state, progress and ETA; the link once done.

list_scenes

Scenes owned by your account.

create_share_link

Set visibility (public / unlisted / private); private scenes get a revocable share-token link. Optional autoplay of the camera path.

revoke_share_link

Revoke a private share token (or list the active ones).

get_embed_code

iframe, <verse-viewer> element and plain URL.

list_camera_paths, set_camera_path, reset_auto_camera_path, delete_camera_path

Guided tours: read, author, re-plan the automatic fly-through, or delete one.

create_upload_link

For a file the user has but cannot hand over (a chat attachment, a file on a phone): a 30-minute, single-use link where they drop it; it lands in their account.

get_upload_link_status

What happened to an upload link: waiting, uploading, building, done (scene and link), failed or expired.

Every tool is a thin wrapper over the public REST API (API reference) through @ctruhtech/verse-sdk. There is no world-generation tool, because the API has no such endpoint. Share links do not expire on their own; the API has no expiry, so revoke a private link to end access. Errors come back as one plain sentence.

Credentials

Set VERSE_API_KEY to one of:

  • a workspace API key vk_... from your Account page (API keys card). It acts as a member of that workspace: uploads, scenes, visibility, private links and camera paths;

  • your account token (64 hex, from Studio). Same powers, tied to you.

Both are sent as Authorization: Bearer. Uploading needs a free Verse account; opening a published link never does. VERSE_BASE_URL points at another origin (default https://verse.ctruh.com). The key is only ever sent to that origin as a header, and is never logged or returned in tool output. VERSE_UPLOAD_KEY (optional) is the X-API-Key of a self-hosted server running in keyed mode.

Setup (stdio)

Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "verse": {
      "command": "npx",
      "args": ["-y", "@ctruhtech/verse-mcp"],
      "env": { "VERSE_API_KEY": "paste-your-key" }
    }
  }
}

Claude Code:

claude mcp add verse --env VERSE_API_KEY=paste-your-key -- npx -y @ctruhtech/verse-mcp

Cursor: ~/.cursor/mcp.json (or .cursor/mcp.json in a project), same JSON as Claude Desktop.

VS Code: .vscode/mcp.json:

{
  "inputs": [{ "type": "promptString", "id": "verse-key", "description": "Verse API key", "password": true }],
  "servers": {
    "verse": {
      "command": "npx",
      "args": ["-y", "@ctruhtech/verse-mcp"],
      "env": { "VERSE_API_KEY": "${input:verse-key}" }
    }
  }
}

Remote (Streamable HTTP)

Sign-in setup is at the top of this page. API keys keep working: send Authorization: Bearer <key> (a key from the Account page, or your account token) and no sign-in happens.

For clients that only take a fixed header (hosted agents, scripts):

{
  "mcpServers": {
    "verse": {
      "url": "https://verse.ctruh.com/mcp",
      "headers": { "Authorization": "Bearer paste-your-key" }
    }
  }
}

Claude Code with a key instead of sign-in: claude mcp add --transport http verse https://verse.ctruh.com/mcp --header "Authorization: Bearer $VERSE_API_KEY". Nothing is stored between requests, and local file paths are disabled on the remote server (pass public URLs). A request without a key or sign-in is answered 401 with WWW-Authenticate: Bearer realm="verse-mcp", resource_metadata="…" and a JSON-RPC error that says what to send.

To host it yourself:

VERSE_BASE_URL=https://verse.ctruh.com npx @ctruhtech/verse-mcp --http --port 8787   # http://127.0.0.1:8787/mcp

Put TLS in front of it. To mount it inside an existing Node server instead:

import { createHttpHandler } from "@ctruhtech/verse-mcp";
const mcp = createHttpHandler({ baseUrl: "https://verse.ctruh.com" });
// in your request listener: if (url.pathname === "/mcp") return mcp(req, res);

Command line

verse-mcp                 stdio server
verse-mcp --http [--port 8787] [--host 127.0.0.1] [--allow-anonymous]
verse-mcp --version

Develop

npm install
npm run typecheck
npm test                  # scripted Verse origin, both transports, driven by the official MCP client

Issues and source: https://github.com/dev-vinayagastya/verse-mcp. Licence: MIT, see LICENSE.

Available Tools

12 tools
delete_camera_pathDelete a camera pathA
Destructive
Inspect

Delete one guided camera tour from a scene. Use it when the user wants to remove a tour they no longer want; to replace the automatic tour with a fresh plan use reset_auto_camera_path, and to add a tour use set_camera_path. Parameters: scene (id or link) and path_id from list_camera_paths or set_camera_path; 'default' deletes whichever tour currently plays by default. Permanent: the tour cannot be restored, though reset_auto_camera_path can plan a new automatic one. If it was the default, links play no tour until another is made default. Other tours and the scene are untouched. Owner only. Requires sign-in (connector sign-in, or VERSE_API_KEY for the local server).

Inputs: scene (required), path_id (required). Returns: scene, default, deleted

get_embed_codeGet embed code for a sceneA
Read-only
Inspect

Get copy-paste code to show a scene inside a web page. Use it when the user wants the scene on their website, store or CMS; for a link to send in a message, use create_share_link. Parameters: aspect sets the frame shape ('fill' takes the parent's size, for full-bleed heroes); load 'lazy' saves bandwidth below the fold, 'tap' suits pages with many scenes, 'eager' suits a single hero; background is hex without #, 'transparent' to sit on the page colour, or 'studio:warm'; share_token is required for a private scene and is the token inside the link create_share_link returned. Read-only and makes no change to the scene; works without sign-in for public and unlisted scenes.

Inputs: scene (required), load, title, aspect, +2 more. Returns: url, scene, iframe, script, +1 more

get_scene_statusCheck a scene's build statusA
Read-only
Inspect

Check whether a scene has finished building and get its link once it has. Use it after upload_scene returned 'compiling', or when the user asks if a scene is ready; poll every 10 to 30 seconds. For upload links use get_upload_link_status; to browse all scenes use list_scenes. Parameter: scene can be the job id from upload_scene, the scene id, or a Verse link the user pasted. Job ids resolve for 2 hours after upload; after that pass the scene id or link, which is looked up in the signed-in account. Read-only and free to call repeatedly. A failed build returns a plain message saying what to fix (for example an unsupported file inside a zip). Older scenes need sign-in; a build started in this session does not.

Inputs: scene (required). Returns: eta, link, arUrl, error, +6 more

list_camera_pathsList a scene's camera pathsA
Read-only
Inspect

List the guided camera tours of a scene and which one plays by default. Use it before editing tours, or to give the user a tour link; every scene gets an automatic default tour after it builds. To create a tour use set_camera_path, to regenerate the automatic one use reset_auto_camera_path, and to remove one use delete_camera_path. Parameter: scene is the scene id, job id or a link the user pasted; the returned path ids are what set_camera_path, delete_camera_path and tour links use. Read-only. Works without sign-in for public and unlisted scenes; private scenes need the owner signed in.

Inputs: scene (required). Returns: paths, scene, default, tourLink

list_scenesList your scenesA
Read-only
Inspect

List the scenes in the user's Verse workspace, newest first. Use it to find a scene id when the user refers to a scene by name or date ("my villa from yesterday"), or to show what they have published; for one known scene use get_scene_status. Parameter: limit (1 to 100, default 20); use 5 to 10 when looking for something recent. The response always carries total, so you can tell whether older scenes were left out. Read-only. Includes view counts and open review comments, useful for answering "which scene gets the most views". Requires sign-in (connector sign-in, or VERSE_API_KEY for the local server).

Inputs: limit. Returns: total, scenes

reset_auto_camera_pathPlan the automatic tourA
Idempotent
Inspect

Plan a fresh automatic tour for a scene and make it the default: an eye-height walkthrough for interiors, a drone fly-through for exteriors or a 360-degree orbit for products. Use it when the user wants a tour without choosing a route, or after the scene changed; for a hand-picked route use set_camera_path. Parameter: scene only; the scene must have finished building (check get_scene_status), and the tour type comes from its content, not from you. Replaces the scene's default with the new plan; custom tours from set_camera_path are kept. Safe to repeat. Owner only. Requires sign-in (connector sign-in, or VERSE_API_KEY for the local server).

Inputs: scene (required). Returns: kind, scene, pathId, tourLink

set_camera_pathCreate a camera path (guided tour)AInspect

Create a custom guided camera tour, a scripted walk or fly-through that share links can play. Use it when the user wants a specific route, order of rooms or framing; for a good tour without choosing a route, use reset_auto_camera_path. Parameters: keyframes use scene metres with y up. Every key needs a non-zero forward vector f; add look to keep a target point centred, which takes over aiming at that key. Keys without dur are timed from speed; hold pauses at a key, which suits a room reveal. In 'walk' mode the camera keeps eye height and steers around walls, so put keys in open floor space; 'fly' moves freely and suits exteriors. Limits: 2 to 256 keys per tour and up to 24 tours per scene. Each call adds a new tour and keeps the others; the first tour on a scene becomes the default unless another is. Owner only. Requires sign-in (connector sign-in, or VERSE_API_KEY for the local server).

Inputs: keys (required), scene (required), mode, name, +2 more. Returns: keys, scene, pathId, default, +1 more

upload_scenePublish a 3D scene and get a Verse linkAInspect

Publish a 3D file as a Verse scene and return a link that opens in any browser, from a single product to a walkable building or a whole city. Use it when you have a public http(s) URL, or a path on this machine (local server only). If the user has the file but no public URL, use create_upload_link; to re-share an existing scene, use create_share_link. Parameters: source links must be directly downloadable (Dropbox dl=1, Google Drive 'anyone with the link', S3/R2/GCS presigned). Leave kind, as and path unset unless the guess would be wrong, e.g. a Gaussian-splat .ply is kind 'splat'. visibility applies once the build finishes. wait_seconds 0 returns as soon as the upload is accepted. Formats: GLB, glTF, FBX, OBJ, IFC, USD/USDZ, PLY, SPLAT, LAS/LAZ/E57. Limits: up to 1 GB per file on the free plan and 20 GB on paid plans; 20 uploads an hour per account, and files over 500 MB count against a smaller hourly allowance (2 on free). Files over 100 MB go up in resumable parts with progress notifications. A product usually builds in seconds; a large walkable scene can take many minutes, in which case status comes back 'compiling' and you poll get_scene_status. Every call creates a new scene in the user's workspace, unlisted unless visibility says otherwise. Requires sign-in (connector sign-in, or VERSE_API_KEY for the local server).

Inputs: source (required), as, bake, kind, +5 more. Returns: kind, link, arUrl, fixes, +3 more

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.7/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool has a distinct resource and action, and the descriptions explicitly disambiguate the closest pairs: upload_scene vs create_upload_link, get_scene_status vs get_upload_link_status, create_share_link vs get_embed_code, and set_camera_path vs reset_auto_camera_path. The cross-references make it hard for an agent to pick the wrong tool.

    Naming Consistency5/5

    All tools follow a consistent snake_case verb_noun pattern: upload_scene, create_share_link, get_scene_status, list_camera_paths, delete_camera_path, and so on. The only variation is the natural use of set/reset/revoke verbs for their specific operations, which is still predictable.

    Tool Count5/5

    At 12 tools, the surface is well scoped: ingestion, status, sharing, listing, embedding, and four camera-tour operations. Each tool covers a distinct part of the workflow without obvious redundancy.

    Completeness4/5

    The core lifecycle is covered: upload, poll status, list, share/revoke, embed, and full CRUD for camera tours. The main gap is scene-level lifecycle management—there is no delete_scene or update-scene-metadata tool, so agents cannot remove or rename scenes through this surface.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    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