Virtual Home
Allows AI agents to turn on the living room TV and play a specified YouTube video using an HTTPS YouTube link or 11-character video ID. The TV embeds YouTube's privacy-enhanced player, loads only while the TV is on, and does not download video.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Virtual home
A furnished, interactive 3D house in the browser that AI agents can control over MCP. Switch lights on and off or dim them, open and close doors, and play a YouTube video on the living room TV. Everything is simulated: no physical device is ever controlled.
It runs on Cloudflare Workers. There is no sign-in and no API key: open the site, create a home, and point any MCP-capable agent at it.
How people use it
Open the site and choose Create a private home (random ID) or open a home by ID. Your private home is remembered in this browser: refreshing, or coming back to the site later, takes you to the same one.
In the home, open Connect an AI agent and copy the MCP URL or the ready-made
claude mcp addcommand.Ask your agent to "turn off the kitchen lights", "open the front door" or "put on
https://youtu.be/...". The house on screen changes live.
Each home has its own page and its own MCP endpoint:
What | URL |
Watch and control a home |
|
MCP server for that home |
|
A home ID is 3-32 lowercase letters, digits or hyphens.
MCP tools
Tool | Does |
| Read lights, doors and TV |
|
|
|
|
|
|
Every tool declares input and output schemas, and rejects bad input without changing the house.
Why every home has its own ID
If everyone shared one house, one tester's agent would overwrite another's. Each home ID maps to its own Durable Object, which holds that house's state and is the only thing that can change it. Requests are serialised per home, so two agents in the same home do not race either, and homes never see each other's changes.
There is no login, so the ID is the only protection. Anyone who knows a home's ID can watch and control it:
Create a private home generates a random 10-character ID that is hard to guess. Use it for your own tests.
A simple ID like
demois shared with everyone who types it. Fine for a demo, not for private use.
A home nobody has changed for 7 days is deleted automatically. You can also delete one yourself:
Start over with a new home on the landing page deletes your current private home and creates a new one, so unused homes do not pile up.
Delete this home in the Connect an AI agent panel (shown in the browser that created the home) deletes it immediately. Anyone still watching it is sent back to the landing page.
Related MCP server: agentic3d-mcp
REST API
The same operations are available without MCP. Errors return 422 with {"detail": "..."} and change nothing.
Request | Body |
| none |
|
|
|
|
|
|
|
|
| none: deletes the home, watchers are disconnected, the next visit starts a fresh house |
| WebSocket: the current house on connect, then after every change |
The page itself has buttons for lights, doors and the TV; there is no text box.
Run it locally
npm install
npm --prefix frontend install
npm run build # builds the page into frontend/dist
npm run dev # Worker + page + Durable Objects on http://localhost:8787For frontend work with hot reload, keep npm run dev running and in another terminal run npm run dev:ui (http://localhost:5190, proxied to the Worker).
Checks:
npm test # logic and model tests
npm run typecheck
npm run smoke # end to end against a running Worker (default http://127.0.0.1:8787)npm run smoke -- https://your-worker.workers.dev runs the same checks against a deployment: isolation between homes, an MCP change reaching a watching page live, concurrent writers, and rejected bad input.
Deploy to Cloudflare
npx wrangler login
npm run deployThe first deploy creates the Home Durable Object class (SQLite-backed, available on the Workers free plan) and publishes the Worker with its static assets at https://virtual-home.<your-subdomain>.workers.dev. Add a custom domain in the dashboard if you want one; for MCP on a custom domain, see allowedHostnames in the createMcpHandler docs.
How it works
worker/src/index.tsroutes/mcp/<id>to a statelesscreateMcpHandler,/api/homes/<id>to the home, and everything else to the static page.worker/src/home.tsis theHomeDurable Object: validated changes, persistence, and live updates to watchers over the hibernating WebSocket API (idle viewers cost nothing).worker/src/logic.tsholds the rules as pure functions, so they are unit-tested under plain Node.worker/src/mcp.tsdefines the MCP tools.frontend/is the Vite + React + Three.js page.
Notes
This is public and unauthenticated by design. Each request to a home runs a Durable Object, so a busy public deployment uses Workers and Durable Objects quota. Workers rate limiting can be added if it is abused.
The TV embeds YouTube's own player (privacy-enhanced domain, muted autoplay). It needs internet access, loads only while the TV is on, and does not download video. Browsers may need a tap to play or unmute, and some videos do not allow embedding. A browser without H.264/VP9 support shows a black player.
WebGL is required.
Credits and license
The code is MIT licensed. The house, door, TV and cabinet models are unchanged CC0 downloads from Cozy Home Interiors by 3D Assets. Sources, hashes and license are in frontend/public/models/cozy-home.
This was extracted from Aangan, where an AI assistant controls the same house by voice and chat.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
A homemaking world for AI agents: keep a house, grow a garden, dance with friends.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Make games with AI: one MCP server that connects your agent to Unity, Unreal and Godot editors.
Give an AI agent an iPhone to see, tap and type on over MCP. Free early access (Simulator).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Apple Home devices, scenes, and automations through MCP.38MIT
- AlicenseAqualityCmaintenanceEnables instruction-driven editing of 3D indoor scene meshes, including object segmentation, geometric edits, rendering, and full plan/verify agent loops, through MCP tools.13MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to enter a persistent multiplayer 3D world as an avatar, walk around, observe nearby players and objects, talk to real humans, follow players, and report back what they saw through MCP tools.4862 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables hands-free, context-aware control of a smart home by exposing MCP tools for device control, routine orchestration with confirmation flows, object finding, scene description, recent event history, and daily briefings. It keeps a mock home-state model with SQLite event memory and includes a web simulator that acts as an MCP client.MIT