Build AR and VR apps
with AI agents

Can an AI agent build an AR or VR app? Yes, if the agent has live XR APIs, validation, and a renderer it can run. The ReactVision MCP server gives Claude, Cursor, Codex, and Windsurf the real component catalogue, then lets the agent validate and test scenes, including in a recorded room. A free ReactVision account is enough to authenticate.

Create a free ReactVision account
https://mcp.reactvision.xyz/viro

Agent-first, not docs pasted into a prompt

Most XR tooling assumes a human in a visual editor, so agents are left guessing from stale training data. ReactVision treats the agent as a first-class builder: the MCP server hands it the same live APIs, component schemas, and infrastructure a human developer uses, plus the tools to check its own work.

What the agent knows

The full ViroReact component catalogue with prop schemas and event handlers, working scene examples, current release notes, and the live platform matrix across iOS, Android, Meta Quest, and visionOS.

What the agent can do

Validate scenes against the real APIs, execute them in a real renderer and read back the frames, diagnose errors and crash logs, check 3D models against performance budgets, generate images and 3D models, and turn Editor scenes into ViroReact code.

An agent with the MCP server vs an agent with pasted docs

Pasting the docs into a chat tells an agent what existed when you copied them. Connecting the ReactVision MCP server lets it look things up live and check its own work. Here is the difference, one job at a time.

Look up the current components, props and examples as it writes

With the ReactVision MCP server

Yes.

With pasted docs only

No. It reads whatever snapshot you pasted.

Check which of iOS, Android, Meta Quest and visionOS support a feature

With the ReactVision MCP server

Yes. It reads the live platform matrix.

With pasted docs only

No.

Catch a made-up component, a misspelled prop or a wrong value before you run it

With the ReactVision MCP server

Yes.

With pasted docs only

No.

Run the scene in a real renderer and see what it drew

With the ReactVision MCP server

Yes.

With pasted docs only

No. You build and look.

Tap the scene and walk the camera through it

With the ReactVision MCP server

Yes.

With pasted docs only

No.

Test the scene in a recorded real room, with no device

With the ReactVision MCP server

Yes.

With pasted docs only

No.

Open a live 3D preview you can look around in the browser

With the ReactVision MCP server

Yes.

With pasted docs only

No.

Explain an error or crash log against known ViroReact issues

With the ReactVision MCP server

Yes.

With pasted docs only

No.

Check a 3D model is light enough for Quest, phones or visionOS

With the ReactVision MCP server

Yes.

With pasted docs only

No.

Generate images and 3D models for the scene

With the ReactVision MCP server

Yes. They land in your asset library.

With pasted docs only

No.

Turn an Editor scene or an 8th Wall project into ViroReact code

With the ReactVision MCP server

Yes.

With pasted docs only

No.

The closed loop: build, validate, test

Writing XR code is the easy part. Knowing whether it renders is the hard part, and it is the part agents normally cannot do. These three steps all run through the MCP server.

01

Build

The agent writes ViroReact against the current component catalogue, prop schemas, real scene examples, and the live platform matrix, so it knows what runs where before it commits to an approach.

A Claude Code session grounding itself with the ReactVision MCP server, calling tools to confirm component props before writing code.
Build: the agent grounds itself in the real API before it writes.
02

Validate

Structural scene checks catch a misspelled prop or a component that does not exist immediately. Performance budget checks flag 3D models too heavy for the target headset, and crash logs come back explained.

A render report listing eight ViroReact scenes with rendered results, engine warnings, render times, and frame sizes.
Validate: every scene run, with the warnings that came back.
03

Test

The agent runs the scene in a real renderer and gets the frames back: it taps objects, walks the camera through the scene, and waits for animations. Record a room once and it can test in that space.

Two phones side by side: one recording a real room, the other running an AR bowling scene the agent tested in that recorded space.
Test: record a room once, then let the agent test in it.

Two agent surfaces, one stack

There are two ways to put an AI agent to work on XR here. Both build against the same renderer, the same ReactVision Spatial infrastructure, and the same scene format.

The ReactVision MCP server is listed in the Claude Connectors Directory. Setup for every agent is in the docs. Agent-written scenes still ship like any ViroReact app: a development build rather than Expo Go, and a physical device for on-device AR testing.

What each part of ReactVision does

ViroReact is MIT licensed and free forever. ReactVision Spatial, the Editor, and the MCP server are managed products: Cloud Anchors, Geospatial Anchors, Co-Location, asset hosting, environment rendering, visual editing, and agent access to the whole stack. iOS (ARKit), Android (ARCore), Meta Quest (OpenXR), Apple Vision Pro (visionOS), and the web are supported today. Android XR is coming.

Proof it ships

~10,000

npm installs of ViroReact per month

140,000+

npm installs in 2025

5 platforms

iOS, Android, Meta Quest, Apple Vision Pro, and the web, from one codebase

Shipped on ViroReact: Looking Glass (geospatial AR heritage storytelling), Pikd (brand AR for Red Bull and Burger King), InkStory (AR image recognition, built solo), Amakin (AR city game with portals, Ctrl+Space winner). The ReactVision MCP server is listed in the Claude Connectors Directory.

Common questions

Can AI agents build AR and VR apps?
Yes, if the agent has live XR APIs, validation, and a renderer it can run. The ReactVision MCP server gives Claude, Cursor, Codex, and Windsurf the real ViroReact component catalogue, then lets the agent validate scenes structurally, run them in a real renderer, and test them in a recorded room. Without that loop, agents generate plausible XR code they can never check.
Can I vibe-code an AR app?
Yes. Describe the AR experience to your coding agent and let it write the app. With the ReactVision MCP server connected, Claude Code, Cursor, Codex or Windsurf writes ViroReact against the real API, checks the scene, runs it in a renderer, and opens a live preview so you can see the result before you build for a phone. If you would rather not touch code at all, the Editor agent builds scenes in the browser from a description. To run AR on a phone you still make a development build, not Expo Go, and test on a physical device.
Is there an MCP server for AR and VR?
Yes. The ReactVision MCP server (https://mcp.reactvision.xyz/viro) is a remote Model Context Protocol server for building AR and VR apps with ViroReact on iOS, Android, Meta Quest and Apple visionOS. It gives an agent the component catalogue and platform matrix, scene validation, a renderer it can run and tap, testing in recorded rooms, error diagnosis, and image and 3D model generation. Other XR MCP servers bridge an engine such as Unity or Blender, or cover one device; our post comparing AR and VR MCP servers goes through them.
Why is an MCP server better than pasting docs into the chat?
Pasted docs go stale and cannot act. The MCP server is a live connection: the agent queries the current component catalogue, prop schemas, and platform matrix at the moment it writes, and it can call tools to validate, execute, and compare the scenes it produces. Knowledge plus a feedback loop, instead of a snapshot.
Which coding agents work with the ReactVision MCP server?
Any agent that speaks the Model Context Protocol, including Claude, Claude Code, Codex, Cursor, and Windsurf. The server is also listed in the Claude Connectors Directory, so Claude users can add it in a couple of clicks.
What does it cost to connect an agent?
A free ReactVision account is enough to authenticate. Add https://mcp.reactvision.xyz/viro as an MCP server in your agent, sign in with your ReactVision account, and you are connected. AI generation draws on your account's AI credits, and paid plans get higher limits.
Should I use the Editor agent or the MCP server?
The Editor agent lives in the browser: describe an experience and it builds scenes, generates assets, and wires interactions inside the ReactVision Editor, no code. The MCP server lives in your IDE or terminal: it makes your own coding agent fluent in ViroReact inside your repo. Same stack underneath; pick the surface that matches how you build.
Can the agent actually see whether its scene renders?
Yes. Through the MCP server the agent executes a scene in a real renderer and receives the frames that appeared on screen. It can tap objects, walk the camera through the scene, wait for animations, and capture the results. With Environment Testing it can run scenes against a recording of a real room, so spatial behaviour is tested without a device in hand.

Want a worked example? Read how a geospatial AR app was built with Claude Code and ViroReact.

Related comparisons and guides

Put your agent to work on XR

Add the ReactVision MCP server to the coding agent you already use, authenticate with a free ReactVision account, and tell it what to build.

Create a free ReactVision account