PlayCanvas Editor MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
| npm | Developer Site | Editor Manual | API Reference | Blog | Forum |
An MCP server that lets AI agents automate the
PlayCanvas Editor and check that scenes actually run. The
MCP client is built into the Editor, so no browser extension is needed.
Install
Add the server to your MCP client. For Claude Code:
Requires Node.js 22.18+. Add the server once per agent: two servers take
turns owning the Editor port.
Claude Desktop, Cursor, and a shared project .mcp.json
Add this to claude_desktop_config.json (Settings > Developer > Edit Config), to Cursor's
global MCP servers (Cursor Settings > MCP), or to a .mcp.json committed to the project root
for Claude Code. On Windows, use "command": "cmd" with "args": ["/c", "npx", "-y", "@playcanvas/editor-mcp-server"].
Codex CLI and app
On Windows, insert cmd /c before npx. If the first run times out while npx downloads, raise
startup_timeout_sec under [mcp_servers.playcanvas] in ~/.codex/config.toml.
Then open your project in the Editor, click the MCP button below Publish, and click CONNECT. To
start with no project open, use the MCP button next to NEW PROJECT on playcanvas.com/editor. Allow
Chrome's Apps on device permission when prompted; if the Editor stays on Connecting, it is
blocked. The default port is 52000; to change it, pass --port to the server and set the
same port in the Editor.
Usage
Ask your agent for the outcome you want in the open project. For example:
Tools
| Category | Coverage |
| --- | --- |
| Projects | Listing, exact reads, creation, name, description and visibility edits, and opening a project in the connected Editor |
| Entity | Exact reads, filtered lists, resolution, search, script lookup, creation, schema-safe batch edits, duplication, hierarchy changes, deletion and component lifecycle |
| Scripts | Asset text reads and writes, parsing, attachment, attributes, ordering and removal |
| Assets | Exact reads, reference graphs, native creation, streamed upload and atomic download up to 512 MiB, schema-safe edits, moves, duplication, source replacement, reimport, deletion and materials |
| Templates | Instantiation and instance override inspection, application, reversion and unlinking |
| Animation | Animation state graph reads and edits, mapping-safe state renames and animation events |
| Processing | Lightmaps, model unwrap and cancellation, texture conversion, atlases, cubemaps, fonts, metadata, compressed variants, prefiltering, sprites and bundles |
| Scene | Exact reads, listing, loading, creation, duplication, rename, deletion and scene settings |
| Settings | Scoped project, private, user, session and scene settings reads and edits |
| Viewport | Camera and viewport state, visibility, capture and focus |
| Editor | Selection, edit-time logs, transform gizmo state, undo and redo |
| Builds | Listing, exact reads, creation options, streamed downloads, primary build selection and deletion |
| Store | PlayCanvas Store search and import, licenses, Sketchfab search and import, and My Assets search and import |