Vectreal
io.github.Vectreal/vectreal · 27 stars · TypeScript · AGPL-3.0
MCP server Upload, publish and embed 3D models on any website from your agent.
Install
The repo has no one-line install. Follow its README.
Published as
- npm
@vctrl/clistdio
From the server's entry in the official MCP Registry.
Files
@vctrl/cli
The Vectreal command line: sign in once, then let a terminal or an agent act for you in the organization you chose.
Run it with npx, or install it globally to get the vectreal command:
npx -y @vctrl/cli login
npm install -g @vctrl/cli
Setup for Claude Code, Cursor and VS Code is in the agents docs.
Commands
| Command | What it does |
|---|---|
vectreal login [--origin <url>] [--no-browser] |
Signs in through the browser and keeps the session in the OS keychain. Remembers the origin for later commands. |
vectreal whoami [--json] |
Shows the user, organization, role and scopes the session acts as. |
vectreal init [--project <id> | --create <name>] |
Links the current directory to a project by writing .vectreal/project.json. |
vectreal logout |
Ends the session on the server and forgets it here. |
vectreal mcp |
Serves the Vectreal tools to an agent over stdio (MCP) until the agent closes the stream. |
vectreal mcp install [--origin <url>] |
Registers that server in the current directory's .mcp.json, launched the way this CLI was. |
The origin is --origin, then VECTREAL_ORIGIN, then the last one signed in to, then https://vectreal.com. Plain http is allowed on localhost only.
The MCP server
vectreal mcp gives an agent these tools:
| Tool | Does |
|---|---|
search_docs, read_doc |
Search and read the Vectreal docs. No sign-in needed. |
whoami, list_projects, create_project, list_scenes |
Who the session is, and the organization's projects and scenes. |
create_scene_from_file |
Uploads a local GLB as a draft scene, as it is. |
describe_model |
A local GLB's size, meshes, materials and animation clips, and where the viewer places it, without rendering it. |
get_scene_settings, update_scene_settings |
Read every settings section; change lighting, environment, controls, bounds, shadows and presentation. Lighting supersedes environment and shadows once a scene has it. |
publish_scene, unpublish_scene |
Compress a local GLB as the publisher does (Draco, KTX2) and publish it; take a scene offline. |
get_embed_snippet |
The snippet and preview URL for a published scene, creating an embed key and allowing domains when asked. |
Tools that take projectId default to the project vectreal init linked. The server finds that project in CLAUDE_PROJECT_DIR when the agent sets it, else in the directory it was started from. It signs in with the stored session, so run vectreal login first; a tool called without one says so.
To register it with Claude Code, run this in the project directory:
claude mcp add vectreal -- npx -y @vctrl/cli mcp
Or let the CLI write the entry into the current directory's .mcp.json:
npx -y @vctrl/cli mcp install
Run from npx, the entry it writes is npx -y @vctrl/cli mcp, so .mcp.json can be committed. Run from a checkout of this repository, it names paths on that machine instead.
The server is also listed in the MCP Registry as io.github.Vectreal/vectreal.
Output and exit codes
Results go to stdout, as JSON with --json. Everything else goes to stderr.
| Code | Meaning |
|---|---|
| 0 | Done |
| 1 | Failed |
| 2 | Wrong usage |
| 3 | Not signed in, or the server no longer accepts the session: run vectreal login |
Where the session is kept
In the OS keychain (macOS Keychain, Windows Credential Manager, Secret Service on Linux), one entry per origin. Where the keychain cannot be used, as on a headless Linux box with no Secret Service, the session goes to $XDG_CONFIG_HOME/vectreal/credentials.json (default ~/.config/vectreal) instead, and each command that does so says it on stderr. On macOS and Linux that file is readable only by you; on Windows it relies on your profile folder's permissions.
Signing in against a local stack
Register the CLI's OAuth client on the local Supabase stack once, then point the CLI at the dev server:
pnpm nx run vectreal-platform:supabase-register-cli-client
pnpm -s vectreal login --origin http://localhost:4200
From a checkout, use pnpm's -s: without it, pnpm prints its own banner to stdout before the CLI does, which breaks anything reading --json output.
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 27
- License
- AGPL-3.0
- Language
- TypeScript
- Last push
- 2026-11-02
- Forks
- 4
- MCP Registry
- io.github.Vectreal/vectreal
- Homepage
- vectreal.com
- Topics
- docker, glb, gltf, model-viewer, nx, nx-workspace, react, react-three-drei, react-three-fiber, reactjs, three-js, threejs, usdz, web-renderer, google-cloud-platform, react-router, react-router-v7, ssr, supabase, terraform
Next on this shelf
- 3912io.github.johntony1/site-promptio.github.johntony1/site-promptPoint at any part of a website and get a prompt that rebuilds it 1:1, or see how it is made.27
- 3913Geonode MCP Servercom.geonode/mcpWeb data for agents. Extract web pages, crawl websites, discover URLs, and search the web.27
- 3914mcp-stdio-to-streamable-http-adapter MCP Serverpyroprompts/mcp-stdio-to-streamable-http-adapterProxy through a STDIO MCP Server to interact with Streamable HTTP MCP Servers26
- 3915🚀 ⚡️ k6-mcp-serverQAInsights/k6-mcp-serverk6 MCP server26
- 3916JustCall MCP Serversaaslabsco/justcall-mcp-server26
- 3917language-server-mcp MCP Serveralexwohletz/language-server-mcp26