The ViroReact MCP server gives your coding agent structured, source-level knowledge of ViroReact (@reactvision/react-viro), the most widely used open-source library for building AR and VR experiences with React Native. Think of it as a living guide to ViroReact, always current, that plugs straight into the tools you already use.
Connect it to Claude, ChatGPT, Codex, Cursor or any other MCP client, and your agent can look up every component's props and events, find working example scenes, validate the scenes it writes, check what runs on which platform, and diagnose errors against known issues. No hunting through docs, no guesswork.
This repository holds the server's knowledge layer: the indexer and every read-only tool, which you can read, run locally and contribute to. You don't need it to use the server; connect to the hosted one below.
The server is hosted at:
https://mcp.reactvision.xyz/viro
There is no API key. Add the URL as a remote (HTTP) MCP server, then click Authenticate: you'll be sent to ReactVision to sign in and pick the team the usage is billed to. A free ReactVision Studio account is enough.
| Client | How |
|---|---|
| Claude (web, Desktop, Cowork) | Settings → Connectors → Add custom connector → paste the URL |
| Claude Code | claude mcp add --transport http reactvision-viro https://mcp.reactvision.xyz/viro |
| ChatGPT | Add a custom app/connector with the URL and OAuth authentication |
| Codex CLI | codex mcp add reactvision-viro --url https://mcp.reactvision.xyz/viro |
| Cursor, VS Code, others | Add a remote/HTTP MCP server with the URL; the client opens the browser to sign in |
Config-file clients take the same URL:
{
"mcpServers": {
"reactvision-viro": {
"type": "http",
"url": "https://mcp.reactvision.xyz/viro"
}
}
}Full setup guide: https://viro-community.readme.io/docs/viroreact-mcp-server
The reactvision-xr-builder plugin in plugin/ connects the same server and adds skills that tell your agent how to use its tools for each task: getting started, project setup, Viro Live previews, performance reviews, ViroReact upgrades, crash debugging and 8th Wall migration.
In Claude Code:
/plugin install reactvision-xr-builder --marketplace ReactVision/viro-mcp
On Claude Code before 2.1.275, run /plugin marketplace add ReactVision/viro-mcp, then /plugin install reactvision-xr-builder@reactvision.
In Claude on the web, Desktop or Cowork: Customize → Plugins → Add → Add marketplace, enter ReactVision/viro-mcp, then install ReactVision XR Builder. Its Connectors tab then asks you to connect the server and sign in.
In Cursor: copy this repository's plugin folder to ~/.cursor/plugins/local/reactvision-xr-builder, then restart Cursor or run Developer: Reload Window. On a Teams or Enterprise plan, an admin can instead add the repository as a team marketplace (Dashboard → Plugins & MCPs → Team Marketplaces → Add Marketplace → Import from Repo, paste https://github.com/ReactVision/viro-mcp); members then open Customize in the sidebar, find the reactvision-xr-builder plugin, select Install and choose a project or user scope.
In Google Antigravity: clone this repository and run agy plugin install ./viro-mcp/plugin, or copy the plugin folder to ~/.gemini/config/plugins/reactvision-xr-builder (all workspaces) or .agents/plugins/reactvision-xr-builder (one workspace).
In ChatGPT and Codex: install ReactVision XR Builder from the plugin directory.
Each host has its own manifest in plugin/: .claude-plugin/, .cursor-plugin/, .antigravity-plugin/ (with mcp_config.json) and .openai-plugin/ (ChatGPT and Codex). They share skills/ and assets/. To release a version:
- Set the same
versionin all four manifests.npm run plugin:check(also run in CI) fails when their name, version, description or server URL differ. - In
plugin/.openai-plugin/plugin.json, updateextensions.com.openai.publication.release_notes, and the review test cases if the tools they name changed. - Run
npm run plugin:chatgptand uploaddist/plugins/reactvision-xr-builder-<version>-chatgpt.zipat https://platform.openai.com/plugins. Claude, Cursor and Antigravity install from this repository, so they need no build.
Every tool is prefixed reactviro_. The tools below are all in this repository; they are read-only and answer from a knowledge base built from the ViroReact source.
Components and API
list_components,get_component: the component catalog, with forgiving name lookup ("Box"findsViroBox)get_component_props,list_props: props and event signatures extracted from the TypeScript source, including JSDoc and@since.get_component_propsandget_componentalso show a component's known traps, andget_component_propsits doc comment, with any required setup in fullget_platform_matrix: what works on iOS, Android, Meta Quest and visionOSchangelog_since: what changed since a version. The lighting model, physics body type, animation easing and shader modifier catalogs are docs read withget_docs
Search and source
search,list_files,get_file,get_docs: hybrid full-text and semantic search over components, docs and examplesget_overview,find_symbol,find_native_bridge: find your way around the codebaselist_examples,get_example: real AR scenes from the ViroReact showcase app, filterable by the component they use
Scenes
validate_scene: lint TSX against the extracted prop schemas and value types, warn about common AR and physics mistakes (an unwiredViroARPlaneSelector, text too small to read, thin or scaled colliders, a constantvelocity), report what the target platforms do not support, and list the assets it needsdiagnose_error: match an error or stack trace against curated known issues
Only on the hosted server
The hosted server adds tools that run on ReactVision's infrastructure and aren't part of this repository: rendering a scene to screenshots, previewing a scene inside a recorded AR session, generating images and 3D models into your Studio library, converting Studio scenes and 8th Wall projects, and checking your team's usage. Your client lists them once connected.
The hosted server uses OAuth 2.1 ("Sign in with ReactVision"). A request without a token gets a 401 pointing at /.well-known/oauth-protected-resource, the client runs OAuth with PKCE, and you pick the team to bill on ReactVision's consent screen. Tokens are never stored by the server. Every tool call is metered against that team's plan; ask your agent to call reactviro_get_usage to see what's left.
Requires Node 22.12 or later.
npm install
npm run index # build knowledge/reactviro.db from a local ViroWorkspace
npm run dev # http://127.0.0.1:3000/viroThe indexer reads a ViroWorkspace checkout containing viro and, if present, its docs, showcase, react-viro-onnx and react-viro-face-tracking siblings; anything missing is skipped. By default it looks two directories above the working directory, so clone this repository into ViroWorkspace/, or set PROJECT_DIR to the folder that contains ViroWorkspace. Component props and events are extracted with the TypeScript compiler API at index time; nothing is parsed at query time.
The local server has no authentication and no metering, and binds to 127.0.0.1. Point any MCP client at http://127.0.0.1:3000/viro. Every variable is documented in .env.example.
npm test # vitest
npm run typecheck
npm run build && npm startconfig.ts: what gets indexed, and the tool prefix. Change indexing behaviour here, not in the indexer.indexer/: walks the source, extracts the API surface, writes SQLite + FTS5 (plus embeddings whenAI_GATEWAY_URLandAI_GATEWAY_KEYare set).src/tools/: one module per tool group;custom.tswires them up.data/: curated knowledge edited by hand (platform matrix, known issues, AR domain reference). No re-index needed after editing.
Issues and pull requests are welcome. A new tool goes in src/tools/<group>.ts, takes its name from `${config.toolPrefix}_…`, uses a .strict() Zod schema, and is registered in custom.ts with read-only annotations. Fixes to data/*.json are especially useful: a wrong cell in the platform matrix, or a known issue that diagnose_error should recognise.
Please report vulnerabilities privately, as described in SECURITY.md, rather than in a public issue.
Discord is the best place to find the team and other developers building with ViroReact:
Please follow our Code of Conduct.
For teams adopting XR at scale, the ReactVision team works directly with you on architecture, migrations from 8th Wall or Unity, performance audits, and shipping production experiences. https://reactvision.xyz/contact
For independent agencies and consultants vetted by the ReactVision team: https://reactvision.xyz/partners
- Website: https://reactvision.xyz
- ViroReact: https://github.com/ReactVision/viro
- ViroReact docs: https://viro-community.readme.io/docs/overview
- ReactVision Studio: https://studio.reactvision.xyz
- Blog: https://updates.reactvision.xyz
Licensed under the Elastic License 2.0: you may read, modify and run this code, but not offer it to others as a hosted or managed service. © ReactVision, Inc.
ViroReact itself is MIT licensed and free forever: https://github.com/ReactVision/viro