mcp-for-maya
This server lets AI agents inspect, plan, modify, verify, render, and export Autodesk Maya scenes through MCP.
Inspect scenes: whole-scene spatial snapshots, object/zone inspection, measurements, assertions, and spatial constraint validation.
Check quality: 11-point scene review, aesthetic scoring, layout planning, and issue/conflict detection.
Manage cameras: create static shot cameras or orbiting turntable cameras.
Recover safely: save, list, and roll back scene checkpoints.
Execute Maya work: run arbitrary Python, inject reusable modules, and describe/paginate scene nodes, attributes, and connections.
Use assets: search and import Poly Haven CC0 models with texture wiring and polycount checks.
Export scenes: whole scenes or selected objects to FBX, OBJ, or USD.
See results: capture viewport screenshots or render previews in GUI Maya sessions.
Manage connections: discover Maya sessions, add sessions manually, and diagnose/install connection setup.
Enables AI agents to directly drive Autodesk Maya for 3D modeling, scene planning, and engineering-grade delivery. Provides tools for spatial scene awareness, inspection and measurement, aesthetic analysis, camera planning, checkpoint/rollback, engineering audits, arbitrary Python execution inside Maya, viewport snapshots and render previews, session management, asset import, and FBX/OBJ/USD export.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-for-maya inspect my current Maya scene and measure the tabletop thickness"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
English | 简体中文
mcp-for-maya
MCP server that lets AI agents see what is actually in an Autodesk Maya scene
What this is
mcp-for-maya is a Model Context Protocol (MCP) server that lets AI agents (such as Codex and Claude) drive Autodesk Maya: build models, plan scenes, and finish production work.
Core capability: AI no longer writes code blind. It can look at scene objects, materials, and how things sit in space at any time, then check its own changes against fixed rules.
This server runs Python code directly inside Maya by design, not by accident. For details, seedocs/threat-model.md.
For live captures and examples, see docs/assets/showcase.md.
1. Install
# Install from PyPI (recommended)
pip install mcp-for-maya
# Or run instantly with uvx without installing
uvx mcp-for-maya
# Alternative: install directly from git with uv
uv tool install git+https://github.com/Xxx91n/mcp-for-maya.git
# Or install from cloned source
git clone https://github.com/Xxx91n/mcp-for-maya.git
cd mcp-for-maya
pip install -e .2. Connect Maya
Option A: Automatic setup (recommended)
Once the MCP server is running, the agent automatically calls maya_setup_guide to guide you through connecting:
Make sure Maya is open
Give the agent any instruction (like "check my Maya scene")
If not connected, the agent runs diagnostics and can install
userSetup.py(merges safely with backup before writing)Restart Maya, and the command port opens automatically
Option B: Manual setup
Run this in Maya's Script Editor:
import maya.cmds as cmds
cmds.commandPort(name=":7001", sourceType="python")Tip: Open Script Editor via Maya menu → Windows → General Editors → Script Editor. Make sure the tab language is set to Python (not MEL).
Option C: Persistent auto-connect
Save the following code as userSetup.py in your Maya scripts folder:
Platform | Path |
Windows |
|
Linux |
|
macOS |
|
import maya.cmds as cmds
cmds.evalDeferred('cmds.commandPort(name=":7001", sourceType="python")', lowestPriority=True)Multiple Maya instances
Each commandPort binds to a specific host:port. A second instance cannot use the same port, so each Maya instance must use its own port. Typical layout:
Maya instance | commandPort | Notes |
Instance A |
| Main workspace |
Instance B |
| Second instance |
Instance A |
| MEL port (identified once, then never probed again) |
Run cmds.commandPort(name=":<port>", sourceType="python") in each instance's Script Editor (or each one's userSetup.py). Auto-scan is the primary method — the server regularly scans local Maya listening ports and sets up connections. If an instance is missed, call add_session(host, port) manually. If port scanning touches other local TCP services, set MAYA_MCP_INCLUDE_PORTS=7001,7002 (comma-separated, ranges like 7005-7010 supported) to limit the scan, or use MAYA_MCP_EXCLUDE_PORTS=<port> to ignore specific ports.
Note: A commandPort does not persist across sessions — it closes when Maya quits. To keep it persistent, add it to userSetup.py (Option C).
Troubleshooting
Issue | Solution |
| Run |
Port already in use | Close the other Maya instance or pick another port |
userSetup.py does not run | Check that the file is in the right scripts folder, then restart Maya |
Blocked by firewall | Make sure localhost:7001 can be accessed locally |
Second Maya instance not found | Each instance needs its own port (same port causes bind conflicts); if scanning still misses it, use |
Script Editor spams syntax errors | An older symptom of scanning MEL ports. Current versions identify a non-Python port once and then stop probing it; if it still happens, exclude the port with |
3. Configure your MCP client
Codex ~/.codex/config.toml:
[mcp_servers.maya]
command = "uvx"
args = ["mcp-for-maya"]
tool_timeout_sec = 120For git source installs: args = ["--from", "git+https://github.com/Xxx91n/mcp-for-maya.git", "mcp-for-maya"]. For local source builds, set command = "python", args = ["-m", "maya_mcp_server"], and point PYTHONPATH to <repo>/src in env.
4. Start using it
Chat naturally in your agent:
"Check out what's in my Maya scene, then put together a display shelf by the entrance"
The AI calls scene_snapshot() to see the scene, builds the model, then checks the result with scene_review().
Every scene edit follows ICEV: look at the scene, work out the change, make the change, then check the result — in that order, every time. The same four steps are also an agent skill card in skills/icev-workflow:
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ INSPECT │ ──→ │ COMPUTE │ ──→ │ EXECUTE │ ──→ │ VERIFY │
│ look │ │ work out │ │ apply │ │ check │
└──────────┘ └──────────┘ └──────────┘ └──────────┘INSPECT (look): Call
scene_snapshot()to capture the scene's spatial dataCOMPUTE (work out): Calculate positions, sizes, and spacing from the spatial data
EXECUTE (apply): Run Maya Python code via
execute_code()VERIFY (check): Check the outcome with
scene_assert()+scene_review(); GUI sessions can also look at the result
Capability | Tools | Notes |
🧊 Spatial awareness |
| One call gets the objects, their types, world positions, and sizes. |
🎨 Look quality |
| 5 dimensions: color balance (60-30-10), spatial composition (golden ratio / rule of thirds), proportion & scale (ergonomics), lighting quality (three-point setup, fill ratio, color temperature, decay), visual flow |
🎬 Cameras |
| 8 built-in shot types + orbit animation |
🛡️ Disaster recovery |
| Writes the scene to a |
🧠 Scene planning |
| Scene health checks, zone balance, layout tips, conflict prevention, natural-language planning. With |
📋 Scene checks |
| 11 fixed checks (0-100 score) + your own constraint checks + scene assertions |
⚡ Code execution |
| Run arbitrary Python in Maya / inject reusable modules |
👁️ Check by looking |
| Viewport screenshot of exactly what the artist sees, plus a one-frame playblast preview, so the AI can look at the result (GUI sessions only) |
🔌 Session management |
| Multi-session discovery/attachment + setup diagnostics and installation guidance |
📦 Asset library |
| Poly Haven CC0 models — downloads over HTTPS on the host (domain allowlist, MD5 check, size limits, local cache), Maya imports FBX with auto-wired textures, checks face count and size limits, and prevents duplicates via |
📤 Scene export |
| Export whole scenes or selected objects to FBX/OBJ/USD; format auto-detected from file extension (no guesswork), auto-creates folders, explicit overwrite opt-in, restores selection afterward |
🔎 Scene-graph inspection |
| Tells you what a node is (exact types, per-attribute metadata such as type, enum choices, and ranges, and how it is wired, with a response size cap — |
25 MCP tools in total.
Related MCP server: MayaMCP
Tools in detail
Spatial awareness
# Full scene snapshot (one call returns spatial data for all objects)
scene_snapshot(detail="compact", format="cos")
# Inspect a specific object (including neighboring objects)
scene_inspect(target="wall_entrance", include_neighbors=True)
# Measurement (4 modes, on world-space bounding boxes)
scene_measure(obj_a="wall_north", obj_b="counter_A", mode="clearance")
# Verify scene state
scene_assert(
expectations='{"wall": {"exists": true, "position": [0,0,500]}}'
) # position in internal centimetresScene checks
# 11 fixed checks (returns 0-100 score)
scene_review()
# Spatial constraint validation
scene_validate(rules='[{"type": "min_clearance", "value": 180}]') # value in internal centimetresCameras
# Create a camera (8 built-in shot types)
camera_create(target="product_display", shot_type="medium", azimuth=30, elevation=15)
# Types: extreme_wide / wide / medium / close / extreme_close / bird_eye / low_angle / over_shoulder
# Orbit animation camera
camera_orbit(center=[0, 100, 0], radius=500, frames=120)Disaster recovery
# Save the scene to a .ma file on disk under checkpoints/ (no undo history)
scene_checkpoint(name="before_renovation")
# List all checkpoints
scene_checkpoint_list()
# Read a checkpoint back (it saves the current scene first, then points the scene name back at the original file; a scene that was never saved has no original file, so it stays in the checkpoint file; run scene_snapshot afterward to refresh scene state)
# Scope: each file is self-contained; references are flattened without modifying reference sources; assumes one scene file per session
# The result says scene_modified_before: whether the scene had unsaved changes
# at the moment this call read the flag. That flag blocks nothing: the copy
# taken before the switch is written exactly as before, and its path is in
# safety_snapshot (only a save that fails, with discard_current_state set,
# turns that into "skipped_by_user").
scene_rollback(filename="cp_before_renovation.ma")Assets (Poly Haven, host-side download)
asset_search(query="camera", asset_type="models", limit=20) # Search Poly Haven index
# Each result includes dimensions ([x, y, z] in metres, Poly Haven order) and polycount (int).
# Either is null when Poly Haven publishes no valid value. Search makes no file downloads.
asset_import(asset_id="Camera_01", resolution="1k")
# Downloads via HTTPS to local cache (MD5 verified + SHA-256 audit),
# then Maya imports the local FBX grouped under GRP_asset_<asset_id>
# (duplicate calls skip re-importing; force=True forces a re-import).
# Textures wire up automatically by file suffix
# (diff/rough/metal/nor_gl/ao/disp...), using sRGB/Raw color spaces and bump2d normals.
# Single-part assets with simple texture names (Diffuse/Rough/Metal...)
# are also recognized and connected to the asset's material.
# Limits: default 100k polygon cap (bypass with allow_high_polycount), dimension sanity check.Scene export
scene_export(path="D:/out/scene.fbx") # Full scene export; format inferred from .fbx extension
scene_export(path="/tmp/kit", format="obj") # Missing extension gets appended -> kit.obj
scene_export(
path="D:/out/kit.usd", objects=["GEO_box"]
) # Export selected; restores selection afterward
# format in {fbx,obj,usd}: format and extension conflicts throw an error immediately, never guess.
# Existing files are protected unless overwrite=True. prompt=False is forced
# (avoids dialog popups that could freeze the connection); does not touch the scene dirty flag.
# Alembic is not supported (AbcExport is outside the cmds.file interface).Check by looking (GUI sessions only)
# Viewport screenshot of exactly what the artist sees (includes HUD and selection highlights)
scene_viewport_snapshot(max_size=800, format="jpeg")
# Single-frame playblast preview (clean preview without HUD; supports camera selection, dimensions rounded up to multiples of 4)
scene_render_preview(camera="CAM_hero", width=640, height=360)
# Both tools return [image, JSON metadata]; headless sessions return a gui_session_required error
# Use format="png" for wireframe or line-art review; always rely on returned metadata for actual dimensionsCoS output format
Default output uses CoS (Chain-of-Symbol) notation: scene data written as very short lines of text, which saves the number of tokens sent to the AI. The original research paper reports roughly 65% token savings compared to JSON on demo scenes (arXiv:2305.10276, -65.8%).
SCENE[164obj, 5zones] UNIT=cm UP=y MODIFIED=n
shell (23obj) @(-11.8,178.8,145.7)
GRP_floor[mesh]@(0,0,0) 1121.5x20x1530.5
pasted__arch_wall[mesh]@(0,0,0) 100x300x10
entrance (6obj) @(157.3,162.6,-111.6)
GRP_workshopFront[group]@(1162,-17,103) 227.4x200.9x193.3The first line always ends with MODIFIED=y|n: y means the scene has changes that were never saved, n means it has none. This is Maya's own flag for the whole scene. Changes made through the MCP tools count too, so the marker says whether anything changed, not who changed it. scene_snapshot(format="json") reports the same fact as the top-level scene_modified field, and it is read fresh on every call instead of coming from the object-list cache.
Agent skills
The repository includes two Experimental skill cards (under the skills/ folder):
Skill | Purpose |
| ICEV discipline: every scene edit must look first, work out the change, apply it, then check the result |
| Check guide: scoring details for the 11 checks and how to turn findings into actions |
scene_review() provides 11 fixed checks (scores 0-100, normalized by rule weight):
Check | Points | What it checks |
spatial | 10 | Object, camera, and light counts |
overlaps | 10 | Bounding box collisions (excluding parent-child) |
conflicts | 10 | Object penetration checks |
zones | 5 | Zone naming coverage |
naming | 5 | Objects still carrying Maya default names |
components | 10 | GRP_ grouping and hierarchy nesting depth <= 4 |
orphans | 5 | Empty groups and default object names |
aesthetics | 15 | 5 aesthetic dimensions (color, composition, scale, lighting, flow) |
lighting | 10 | Three-point lighting, fill ratio, and decay |
organization | 10 | Overall hierarchy health |
constraints | 5 | Custom rule violations |
Security & privacy
No telemetry: nothing is tracked and nothing is phoned home. You can check this in the source. The only outgoing network calls come from the two asset tools, and only when you call them: they reach
api.polyhaven.com/dl.polyhaven.org|.comover HTTPS, with the domain allowlist, MD5 check, and size limits written inpolyhaven.py.Local single-user: the command port binds to localhost only, and a connected MCP client is trusted not to mean harm.
Guards against slips: one pipeline (
pipeline.py+security.py) checks parameters, rate-limits calls (~100 calls/60s for reads, ~20 calls/60s for writes per session), scans patterns, and writes one JSON line per call, covering all 25 tools. The scan has two levels: a few precise patterns are blocked outright and the call fails with[blocked_pattern](os.system, baresubprocess, and a handful of others with no false-positive history), while the broader patterns only record a warning. A call can also be rejected for other reasons — a rate limit, one of theMAYA_MCP_DISABLE_*flags, orsafe_mode— and those carry their own error codes, so the code in the error tells you which one fired. It catches honest mistakes, not a client that means harm. For the complete threat model, see docs/threat-model.md.Transactional safety:
scene_checkpointandscene_rollbackwrite the scene to a.mafile on disk and read it back on request (a checkpoint file keeps no undo history; file references are flattened).Strict policy mode (optional): Set
MAYA_MCP_DISABLE_EXECUTE=1,MAYA_MCP_DISABLE_WRITE_MODULE=1, orMAYA_MCP_DISABLE_ARBITRARY=1(disables all three) to remove code execution tools fromtools/listand reject calls with[policy_disabled]. Read-only tools remain active. These guard against accidental misuse; they are not a hard boundary against a malicious agent, since an agent holdingexecute_codeis already trusted. They only limit how much damage one mistake can do during demos, testing, or in CI sandboxes. See docs/threat-model.md and error codes in docs/guide/error-codes.md.safe_modecode allowlist (optional): WhenMAYA_MCP_SAFE_MODE=1is set (off by default), code payload tools remain listed, but theircodeparameters must pass an allowlist checked on the parsed code, which denies everything else by default: imports are limited to standard packages (maya,math,json,re,collections,itertools,functools,dataclasses,typing), blocked builtin functions reject upon reference rather than just call (eval,exec,open,__import__, getattr, setattr, etc.), accessing__builtins__or dunder attributes is rejected, and unparseable input is rejected immediately. Blocked calls fail with[safe_mode_rejected], reporting the violated rule ID and recording it in the call record. Successful calls return amode: "safe"field, and the tool description adds aBoundary:notice. DISABLE flags take priority by removing tools first—safe_mode only restricts what stays. Like DISABLE flags, this guards against mistakes rather than deliberate attacks, and it is not a hard barrier. See docs/threat-model.md and error codes in docs/guide/error-codes.md.Vulnerability reporting: See SECURITY.md.
Requirements
Environment | Requirement |
Host (runs the MCP server) | Python >= 3.10 ( |
Injected helper (runs inside Maya) | Maya >= 2023 (bundled Python >= 3.9, relies on |
Verified against | Maya 2024 GUI |
Development
uv sync --frozen # Set up locked dev environment from uv.lock (or: pip install -e . --group dev, requires pip>=25.1)
python -m pytest tests/ -q # Run tests
ruff check src tests # Lint
mypy src # Type check
python -m maya_mcp_server -vv # Run with DEBUG logging (-v=INFO, -vv=DEBUG)For contribution workflow, see CONTRIBUTING.md; for changelog, see CHANGELOG.md.
Credits
Forked from chadrik/maya-mcp-server, retaining its MIT license.
Available Tools
25 toolsadd_sessionAdd SessionA
Manually add a Maya session at a specific host and port.
Boundary: Disambiguated from list_sessions (report the sessions the SessionManager already discovered) and maya_setup_guide (diagnose and repair a connection) — add_session registers a host:port you already know.
Use this when auto-discovery doesn't find your Maya session, or to connect to a Maya instance on a specific port.
Inputs: host, port. Returns: Information about a Maya session.
asset_importAsset ImportAIdempotent
Import a Poly Haven CC0 model into Maya (find ids via asset_search).
Boundary: Disambiguated from asset_search (host-side id and metadata lookup that touches no Maya session) — asset_import is the mutating half and needs a live session to import into.
Pipeline: host downloads FBX + textures from the Poly Haven whitelist (https-only, size caps, per-file md5 verify) into the platformdirs cache -> Maya imports the local FBX (explicit meters unit handling) -> texture maps auto-wire by PH naming convention (diff/albedo -> color sRGB; rough/metal -> Raw single-channel; nor_gl -> bump2d normal) -> polycount gate -> group as GRP_asset_ -> bbox/metadata report.
Idempotent by default: a second call with the same asset_id reports the existing group instead of duplicating (force=True re-imports).
Inputs: asset_id (required), force, resolution, session_key, +2 more. Returns: result
asset_searchAsset SearchARead-onlyIdempotent
Search the Poly Haven CC0 asset index (host-side, no Maya needed).
Boundary: Disambiguated from asset_import (downloads the asset into a live Maya scene and mutates it) — asset_search only resolves ids and metadata, so it needs no session and changes nothing.
Queries https://api.polyhaven.com/assets and returns matching asset metadata. Read-only and idempotent - pure lookup.
Inputs: limit, query, asset_type. Returns: result
camera_createCamera CreateA
Create a camera positioned for a specific shot type.
Boundary: Disambiguated from camera_orbit (animates a turntable around a point over many frames) — camera_create frames one static shot and adds no animation.
Supports the 8 built-in shot types: extreme_wide, wide, medium, close, extreme_close, over_shoulder, bird_eye, low_angle.
Inputs: target (required), name, azimuth, elevation, +2 more. Returns: result
camera_orbitCamera OrbitA
Create an orbiting camera with turntable animation around a point.
Side effects: creates a new camera and animation curves in the scene and marks the scene dirty. Not idempotent — each call adds another camera. Requires an active Maya session.
Boundary: Disambiguated from camera_create (static shot-type framing; use camera_orbit only when an animated orbit is needed).
Inputs: center (required), name, frames, radius, +1 more. Returns: result
execute_codeExecute CodeADestructive
Execute arbitrary Python code in an active Maya session.
Runs arbitrary code with full session privileges of the connected Maya process. Execution is irreversible and cannot be undone (modifications do not register an automatic undo chunk). The return value shape is governed by the result_type envelope parameter. Requires an established Maya session (discoverable via list_sessions).
Under safe_mode (MAYA_MCP_SAFE_MODE, opt-in, default off) the code payload passes a deny-by-default allowlist checked on the parsed code before dispatch: imports outside the v1 roots (maya/math/json/re/collections/ itertools/functools/dataclasses/typing), denied builtins (eval/exec/open/import/getattr/setattr/...), builtins references (any use of a denied name rejects, not just calls), dunder attribute access, and unparseable input are rejected with safe_mode_rejected naming the triggering rule id. Successful responses carry mode: "safe" on their structured payload. This catches slips, it is not a sandbox — code that passes still runs with full session privileges.
Inputs: code (required), result_type, session_key.
list_sessionsList SessionsARead-onlyIdempotent
List all active Maya sessions.
Boundary: Disambiguated from add_session (register a host:port by hand) and maya_setup_guide (diagnose an empty result) — list_sessions only reports what is already connected.
Returns a list of session information including:
session_key: Session key used to interact with tools and resources
host: Session host address
port: Session port number
pid: Maya process ID
user: Logged-in user
maya_version: Maya version string
scene_name: Current scene filename
scene_path: Full path to current scene
Note: To detect new or removed sessions, clients should call this tool periodically (e.g., every 10-30 seconds) and compare results. The SessionManager automatically scans for new Maya sessions in the background.
If this returns an empty list, call maya_setup_guide() for connection help.
Inputs: no named parameters. Returns: result
maya_setup_guideMaya Setup GuideADestructive
Maya connection setup guide and diagnostics.
Boundary: Disambiguated from list_sessions (read the current session set) and add_session (attach a host:port you already know) — maya_setup_guide diagnoses and repairs the connection itself.
Use this tool when list_sessions returns empty or when setting up Maya MCP for the first time. Provides platform-aware diagnostics, auto-installation of userSetup.py, and step-by-step fallback instructions.
Inputs: port, action, confirm, dry_run, +2 more. Returns: object
scene_aestheticsScene AestheticsARead-onlyIdempotent
Score the scene's look on 5 design dimensions.
Scores the scene's look across 5 design dimensions:
Color Theory: 60-30-10 rule, temperature balance, harmony type, saturation variety, contrast
Spatial Composition: golden ratio proportions, rule-of-thirds alignment, visual weight balance
Proportion & Scale: human ergonomic reference, size hierarchy (hero/secondary/tertiary)
Lighting Quality: layer composition (key/fill/rim/accent), color temperature consistency
Visual Flow: sight line clarity, circulation paths, visual rhythm patterns
Returns an overall score (0-100) with grade (S/A/B/C/D/F) and improvement suggestions.
Boundary: Disambiguated from scene_review (scene_aesthetics evaluates visual design theory and artistic harmony in depth, while scene_review is a broad check of the whole scene).
Inputs: format, session_key. Returns: result
scene_assertScene AssertARead-onlyIdempotent
Verify scene state matches expected values.
Use this after modifications to confirm the scene is in the desired state. This is the check step (the last of ICEV's four steps).
bbox_min/bbox_max compare world-axis boxes built from each shape's own box, transformed once: a rotated parent no longer widens them layer by layer, but geometry that does not fill its own box (an L-shape, a character mesh) can still read up to one axis-alignment too wide.
Boundary: Disambiguated from scene_validate (checks relational spatial constraints across zones rather than exact expected values for named objects).
Inputs: expectations (required), format, session_key. Returns: result
scene_checkpointScene CheckpointA
Save the current scene to a .ma file on disk under checkpoints/.
Boundary: Disambiguated from scene_checkpoint_list (list the checkpoint files already written) and scene_rollback (open one and point the scene at it) — scene_checkpoint is the save half.
Writes a self-contained .ma into a checkpoints/ directory next to the scene file. A scene that was never saved to disk needs an explicit name, and its temporary checkpoint goes under the Maya workspace — returned with original_file_status="no_original_file" and scene_rebound_to=null. Same-name checkpoints are rejected unless overwrite=True (the old file is preserved via rename).
Honest bounds: the file contains no undo history — after scene_rollback, call scene_snapshot to rebuild context. References are flattened (self-contained, no write-back). Assumes one scene file per session.
Inputs: name, overwrite, session_key. Returns: result
scene_checkpoint_listScene Checkpoint ListARead-onlyIdempotent
List all saved checkpoints for the current scene state.
Boundary: Disambiguated from scene_checkpoint (save a new checkpoint) and scene_rollback (open one and point the scene at it) — scene_checkpoint_list only reads what is already on disk.
Saved scenes list <scene_dir>/checkpoints; a scene never saved to disk lists the workspace checkpoints instead (adhoc flag per entry).
Inputs: session_key. Returns: result
scene_describeScene DescribeARead-onlyIdempotent
API-level self-description of ONE node (not spatial).
Boundary: scene_inspect answers WHERE an object is (position, bbox, neighbors); scene_nodes discovers candidate node names; scene_describe answers WHAT the node is at the API level - exact node type, per-attribute metadata, and connection wiring - so you can compose accurate execute_code/setAttr/connectAttr calls against real names.
Inputs: node (required), attrs, limit, session_key, +2 more. Returns: result
scene_exportScene ExportA
Export the Maya scene (or named objects) to a local file.
Writes through cmds.file with prompt=False forced (a modal dialog would hang the command channel). Formats: fbx, obj, usd (Alembic is not supported - its AbcExport API is not a cmds.file surface). The selection set is restored after every objects= export and the scene's modified flag is untouched.
destructive_hint is False but note: overwrite=True permanently replaces the target file - that path is not recoverable.
Inputs: path (required), format, objects, overwrite, +1 more. Returns: result
scene_inspectScene InspectARead-onlyIdempotent
Deep inspection of a specific object or zone.
Returns detailed properties including transform, BBox, material, mesh stats, and optionally nearby objects with distances.
Object positions, box corners, sizes, neighbor distances and zone centers/boxes are in the scene's current linear unit (cm, m or mm). JSON object results name that unit. Centimetre output keeps its previous shape; non-centimetre zone results and the CoS view add the unit.
An object's BBox is the node's own box, without its ancestors' transforms. The zone branch reports world-axis boxes built from each shape's own box transformed once, so a rotated parent no longer widens them layer by layer; geometry that does not fill its own box can still read up to one axis-alignment too wide. Boundary: Disambiguated from scene_snapshot (broad whole-scene spatial overview) and scene_describe (API-level attribute metadata, types, and connection wiring).
Inputs: target (required), format, session_key, include_neighbors. Returns: result
scene_measureScene MeasureARead-onlyIdempotent
Measure the spatial relationship between two objects.
Call this in the compute step (the second of ICEV's four steps), to turn a spatial question into a number before you execute a change: size a clearance before moving something, prove two objects interpenetrate before you separate them, or get the axis detail behind an overlap that scene_validate reported.
Read-only and idempotent: it queries world-space bounding boxes and never modifies the scene, so no checkpoint file is written. Requires an active Maya session.
Every mode measures world-space AABBs, not the mesh surface and not the object origin. Each shape's own box is transformed once, so a rotated parent no longer widens the result layer by layer; geometry that does not fill its own box (an L-shape, a character mesh) can still measure up to one axis-alignment too wide. The modes differ in what the number means: center distance between the AABB midpoints. surface distance between the closest facing AABB corners — an axis-aligned approximation, so it over-reports clearance for rotated or concave geometry. clearance SIGNED, and 0 is NOT a "merely touching" signal. Per axis the gap is +separated / 0=touching / -penetrating: > 0 euclidean distance across the STRICTLY SEPARATED axes only. Penetrating axes contribute 0, so they are invisible in this number. = 0 no axis is strictly separated and at least one axis is exactly touching. The other axes may be deeply penetrating, so 0 does NOT mean the boxes just touch. < 0 all three axes penetrate; the value is the SHALLOWEST penetration depth, the minimum translation needed to pull them apart. bbox_overlap is true if and only if all three axes strictly penetrate. A single penetrating axis already makes it read false, so it can never be read as "no penetration". Read details.clearances_xyz for the signed per-axis truth before concluding anything from distance alone. bbox overlap test. On overlap, distance is 0 and overlap_dims holds the per-axis penetration extents; otherwise distance is euclidean and gaps_xyz holds the per-axis gaps.
Distances are in the scene's current linear unit (cm, m or mm), not always centimetres.
Boundary: Disambiguated from scene_inspect (per-object property deep-dive), scene_snapshot (whole-scene spatial overview) and scene_assert (checks the scene against expected values rather than measuring one pair).
Inputs: obj_a (required), obj_b (required), mode, format, +1 more. Returns: result
scene_nodesScene NodesARead-onlyIdempotent
Bounded enumeration of scene nodes - including non-DAG nodes.
Boundary: scene_snapshot is the low-resolution spatial overview you call once per workflow; scene_nodes is the name-discovery complement for the API layer - it lists nodes a spatial view never shows (materials, shadingEngines, tool nodes) and pages honestly: has_more/next_cursor tell you when the list was cut (for attribute schema and connection inspection, call scene_describe).
Inputs: type, limit, cursor, pattern, +4 more. Returns: result
scene_planScene PlanA
Plan a scene layout: organization checks plus layout suggestions.
Checks the scene and produces an actionable plan:
Organization check: finds orphan meshes, empty groups, default names
Zone analysis: coverage and spatial balance across zones
Layout suggestions: spacing, overlap, and clustering detection
Conflict prevention: predicts near-miss collisions
Action plan: prioritized step-by-step execution guide
With recommend_assets=True, also recommends Poly Haven models across the built-in scene zones (entrance, display, furniture, lighting; shell, ip_core, and path are skipped with no search): reads fresh zone geometry (after auto_fix completes when auto_fix=True), resolves a target object per zone from objective (full DAG path, unique short name, or single measurable zone object; otherwise falls back to the zone's world-axis bounding box, built from shape boxes transformed once, so a rotated parent no longer widens it by layer), searches the models index in a worker thread under a 5s soft time budget reusing the 300s models index cache, checks words, deduplicates (capped at 3 per zone and 12 total), and screens candidates in metres (0.5x-1.5x per sorted axis for an object target; upper limit only for zone_bbox). Recommendations are advisory references — search only, no download and no import — and a search timeout, network failure (returning partial/offline status), or corrupt metadata never drops or changes the plan itself. Clearances and collisions are not verified.
Blockout first: check organization and proportions before committing to detailed modeling. Accepts a plain-language objective.
Boundary: Disambiguated from scene_review (scene_plan focuses on forward-looking layout planning and actionable auto_fix reorganization, whereas scene_review gives an overall diagnostic score).
Inputs: format, auto_fix, objective, session_key, +1 more. Returns: result
scene_render_previewScene Render PreviewARead-onlyIdempotent
Single-frame playblast preview from a camera (clean, no HUD).
Boundary: Disambiguated from scene_viewport_snapshot (capture the panel as the artist sees it, HUD and selection highlights included) — scene_render_preview renders a chosen camera with the HUD suppressed.
GUI sessions only - headless sessions get a structured gui_session_required error.
Side-effect disclosures (read_only_hint is honest):
Switching the panel camera via the modelPanel camera flag is instantaneous, visible, and NOT undoable in Maya.
Everything is put back: the panel camera is restored on every path - success or failure - so terminal state equals entry.
The current time may visibly jump during capture; it is restored afterwards (playblast timeline quirk).
viewer=False: no playblast window pops up.
On failure the restore is still attempted; a failed restore is logged, never raised over the error result.
Only a killed Maya process can skip the restore.
Inputs: width, camera, format, height, +3 more.
scene_reviewScene ReviewARead-onlyIdempotent
Check a whole scene - all the aspects worth checking after operations.
Runs spatial integrity, overlap detection, zone coverage, aesthetics, constraint validation, orphan detection, naming, componentization, conflicts, lighting quality, and scene organization. Returns a score (0-100) and detailed issue list.
Checks you add in the Maya session with
_mcp_scene.register_validator(...) (call it through execute_code) are
reported in a separate "custom" section - validators per rule,
score/max_score in weight points, issues for what did not pass.
The built-in score is unchanged and the section is absent when nothing
is registered.
Boundary: Disambiguated from scene_validate (narrow rule-based spatial constraint checking) and scene_aesthetics (in-depth 5-dimension aesthetic theory scoring).
Use this after any major scene modification to verify quality.
Inputs: checks, format, session_key. Returns: result
scene_rollbackScene RollbackA
Open a checkpoint file and point the scene at its original path (S2).
Boundary: Disambiguated from scene_checkpoint (save a checkpoint from the current scene) and scene_checkpoint_list (list the ones already written) — scene_rollback is the read-back half.
Before opening, the current scene is saved to a file first (auto_before_rollback); if that fails, the read-back aborts — pass discard_current_state=True to escape (the result reports safety_snapshot="skipped_by_user"). The scene points back only when it has a file path at read-back time; otherwise it stays on the checkpoint path (S1) and scene_rebound_to is null.
The checkpoint file carries no undo history — call scene_snapshot afterwards to rebuild context.
The result also says scene_modified_before: whether the scene still had changes that were never saved at the moment this call read the flag — a read of its own, just before the rollback request and before any file is opened. It is the same Maya flag scene_snapshot reports; after the open, that flag describes the checkpoint, not the scene being replaced. The value never changes what this tool does: a changed scene and a clean scene take the same path, and the copy written before the switch behaves exactly as before (safety_snapshot reports "skipped_by_user" only when discard_current_state lets a failed save through). The one new failure is Maya refusing to answer that question: the call then errors, with nothing opened yet, instead of printing a made-up "clean".
That read is its own round trip, so it is worth saying what it covers when calls overlap: two scene_rollback calls for one session can each run their own read and their own switch. The value then describes the scene as it was at that read, which may be a scene the other call has already replaced. Nothing is gated by that difference, and scene_name_before still names the scene the rollback itself read (empty when the scene was never saved).
Inputs: filename (required), session_key, discard_current_state. Returns: result
scene_snapshotScene SnapshotARead-onlyIdempotent
Get a complete spatial overview of the current Maya scene.
Returns a structured description of ALL objects with positions, sizes, and types. Call this once at the start of each task to see the whole scene before changing it.
Sizes are world-axis bounding boxes. Each shape's own box is transformed once, so a rotated parent no longer widens a size layer by layer; geometry that does not fill its own box (an L-shape, a character mesh) can still read up to one axis-alignment too wide.
The first line ends with MODIFIED=y or MODIFIED=n. y means the scene has changes that were never saved; n means it has none. This is Maya's own flag for the whole scene, so it says nothing about which object changed. Changes made through this server's own tools count too, so y does not mean a person edited the scene. JSON output carries the same fact as the top-level scene_modified field. The flag is read again on every call and never comes from the cache, while the object list may be a few seconds old.
Object positions, box corners and zone centers/boxes are in the scene's current linear unit (cm, m or mm); JSON and the CoS header name that unit.
Boundary: Disambiguated from scene_inspect (deep-dive inspection of specific objects or zones) and scene_nodes (granular DAG/DG node name discovery with pagination).
Inputs: detail, format, session_key. Returns: result
scene_validateScene ValidateARead-onlyIdempotent
Validate scene against spatial constraints.
Checks the scene for constraint violations like minimum clearance, object limits, overlaps, and height requirements. This is a read-only check without auto_fix mutations (it cannot modify or repair objects; for automated fixes, see scene_plan with auto_fix=True). Because it is non-destructive, it needs no undo or rollback checkpoint. Requires an active Maya session.
Boundary: Disambiguated from scene_review (a full check of scene quality across 11 checks) and scene_assert (verifies specific numeric values or object existence).
Inputs: rules (required), format, session_key. Returns: result
scene_viewport_snapshotScene Viewport SnapshotARead-onlyIdempotent
Capture the active viewport as an image (WYSIWYG).
Boundary: Disambiguated from scene_render_preview (playblast a frame from a chosen camera with the HUD suppressed) — scene_viewport_snapshot captures the panel exactly as the artist sees it, HUD included.
GUI sessions only - headless (mayapy/batch/native-channel) sessions get a structured gui_session_required error.
The capture is what the artist sees: viewport HUD, selection highlights and ornaments included. That is a feature - the agent verifies exactly what the user is looking at. A cmds.refresh(force=True) runs first so the frame is current.
Inputs: format, quality, max_size, session_key.
write_moduleWrite ModuleADestructive
Create a virtual in-memory Python module in an active Maya session.
Injects reusable Python functions into the target Maya session's sys.modules. Modules are virtual and in-memory: they do not persist across Maya restarts, and existing modules are protected unless overwrite=True is explicitly set. Requires an active Maya session.
Under safe_mode (MAYA_MCP_SAFE_MODE, opt-in, default off) this code payload passes the same deny-by-default allowlist as execute_code: non-allowlisted imports, denied builtin names (any reference, not just calls), builtins references, dunder attribute access, and unparseable input are rejected with safe_mode_rejected naming the triggering rule id. Successful responses carry mode: "safe" on their structured payload. Under the code allowlist, execute_code payloads can only import the v1 allowlisted roots, so a module defined here whose root is not one of those roots is not importable by name from allowlisted code.
Boundary: Use write_module to define reusable libraries and helper functions; use execute_code for one-shot imperative execution or expression evaluation.
Inputs: code (required), name (required), overwrite, session_key. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
The set is dense with scene-inspection tools (scene_snapshot, scene_inspect, scene_describe, scene_nodes, scene_measure) and scene-checking tools (scene_assert, scene_validate, scene_review, scene_aesthetics, scene_plan), which could easily be misselected. However, nearly every description carries an explicit 'Boundary:' paragraph naming the neighbouring tools, so an agent can resolve the overlaps from documentation alone; only a couple (scene_validate vs scene_assert, scene_review vs scene_aesthetics) remain genuinely close.
Dominant noun_action convention with consistent prefix groups (scene_*, camera_*, asset_*), all snake_case. A few outliers use verb_noun or three-part forms (list_sessions, add_session, maya_setup_guide, write_module, execute_code), which is a minor deviation rather than a conflicting convention.
25 tools is at the heavy end of the range and the surface is noticeably redundant: five separate read-only scene-inspection tools and four-plus scene-scoring/validation tools. Each is individually justified, but the count feels inflated for what is essentially 'inspect, plan, validate, edit, export'.
Coverage is broad and lifecycle-aware: discovery sessions, spatial inspection, planning, checkpoint/rollback, rendering, asset search/import, export, and arbitrary code execution. The notable gap is direct object manipulation (no move/transform/delete/reset tools), so agents must fall back to execute_code for the most basic edit operations.
Maintenance
Related MCP Connectors
Generate 3D models, worlds, PBR materials, and coordinated asset packs from AI agents.
Give the physical world an API: cameras become typed endpoints your agent can read and act on.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to programmatically control Autodesk Maya via natural language using over 30 tools for 3D modeling, lighting, and animation. It connects through Maya's command port to facilitate procedural scene generation and complex production-ready workflows.1-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control Autodesk Maya through natural language for scene creation, modeling, material assignment, and object manipulation.1MIT
- AlicenseBqualityCmaintenanceEnables AI agents to drive Autodesk Maya through semantic tools covering scene, object, material, animation, and rendering operations, paired with execute_python/execute_mel escape hatches and read-only resources. Also supports multi-instance routing, viewport capture for visual iteration, and asynchronous render job polling.221MIT
- AlicenseBqualityBmaintenanceConnects AI assistants such as Claude, Cursor, and VS Code to a running Autodesk Maya session through Maya's commandPort, exposing 23 tools for scene inspection, object creation and transforms, materials, attributes, rendering, file import/export, viewport screenshots, and arbitrary Python execution. This lets users build and modify Maya scenes, query scene data, and run renders using natural language.233MIT