Maya MCP
v0.6.1Control Autodesk Maya scenes with 71 typed tools for modeling, animation, shading, and more.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
health.check Check Maya Connection Health
Check the health status of the Maya connection
maya.connect Connect To Maya
Establish a connection to Maya's commandPort
| Parameter | Type | Description |
|---|---|---|
host | string | Target host (localhost only) |
port | integer | Target port number |
source_type | string | Command interpreter type |
maya.disconnect Disconnect From Maya
Close the connection to Maya
scene.info Get Scene Information
Get information about the current Maya scene
scene.new Create New Scene
Create a new empty Maya scene. Checks for unsaved changes first and refuses by default if the scene was modified. Use force=True to discard unsaved changes. When a client supports form elicitation, the server may ask for confirmation instead of requiring an immediate retry.
| Parameter | Type | Description |
|---|---|---|
force | boolean | If True, discard unsaved changes. If False (default), refuse when scene has unsaved changes. |
scene.save Save Scene
Save the current scene. Saves to the current file path. Fails if the scene is untitled.
scene.save_as Save Scene As
Save the scene to a new file path. Validates the path and saves as Maya ASCII or Binary based on extension.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute or relative path to save the scene to (.ma or .mb) |
scene.open Open Scene
Open a Maya scene file. Validates the file path and checks for unsaved changes before proceeding. Use force=True to discard unsaved changes. When a client supports form elicitation, the server may ask for confirmation instead of requiring an immediate retry. Supported formats: .ma (Maya ASCII), .mb (Maya Binary).
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the Maya scene file to open (.ma or .mb) |
force | boolean | If True, discard unsaved changes. If False (default), refuse when scene has unsaved changes. |
scene.undo Undo Scene Operation
Undo the last operation in Maya. Critical for LLM error recovery.
scene.redo Redo Scene Operation
Redo the last undone operation in Maya.
scene.import Import Scene File
Import a file into the current Maya scene. Supports multiple formats (.ma, .mb, .obj, .fbx, .abc, .usd, .usda, .usdc, .usdz). Returns only top-level parent transforms to protect token budget.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the file to import (.ma, .mb, .obj, .fbx, .abc, .usd, .usda, .usdc, .usdz) |
force | boolean | If True, replace existing namespace contents. If False (default), merge. |
namespace | Namespace behavior: None = no namespace, '' = auto-generate, 'name' = use specified |
scene.export Export Scene File
Export scene content to a file. Export selected nodes or entire scene. Supports multiple formats (.ma, .mb, .obj, .fbx, .abc, .usd, .usda, .usdc).
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path for the exported file (.ma, .mb, .obj, .fbx, .abc, .usd, .usda, .usdc) |
animation | boolean | If True, include animation data (FBX only). If False (default), export static. |
export_mode | string | What to export: 'selected' (default) or 'all' |
nodes.list List Nodes
List nodes in the Maya scene, optionally filtered by type. Returns max 500 nodes by default to limit response size.
| Parameter | Type | Description |
|---|---|---|
limit | Max nodes to return (default 500, use 0 for unlimited) | |
long_names | boolean | Return full DAG paths |
node_type | Filter by node type (e.g., 'transform', 'mesh') | |
pattern | string | Name pattern filter (supports wildcards) |
nodes.create Create Node
Create a new node in Maya with optional name, parent, and initial attributes.
| Parameter | Type | Description |
|---|---|---|
node_type * | string | Type of node to create (e.g., 'transform', 'locator', 'joint') |
attributes | Initial attribute values to set after creation | |
name | Desired node name (Maya may modify for uniqueness) | |
parent | Parent node to parent under |
nodes.delete Delete Nodes
Delete one or more nodes from the Maya scene.
| Parameter | Type | Description |
|---|---|---|
nodes * | array | Node names to delete |
hierarchy | boolean | Delete entire hierarchy below each node |
nodes.rename Rename Nodes
Rename one or more nodes in the Maya scene.
| Parameter | Type | Description |
|---|---|---|
mapping * | object | Map of current node name to new name |
nodes.parent Parent Nodes
Reparent one or more nodes in the Maya hierarchy.
| Parameter | Type | Description |
|---|---|---|
nodes * | array | Nodes to reparent |
parent | New parent node. If None, unparent (parent to world). | |
relative | boolean | Preserve existing local transformations |
nodes.duplicate Duplicate Nodes
Duplicate one or more nodes.
| Parameter | Type | Description |
|---|---|---|
nodes * | array | Nodes to duplicate |
input_connections | boolean | Duplicate input connections |
name | Name for the new node (only valid when duplicating single node) | |
parent_only | boolean | Duplicate only the specified node, not its children |
upstream_nodes | boolean | Duplicate upstream nodes |
nodes.info Get Node Information
Get comprehensive information about a Maya node in a single call. Use info_category to choose: summary (default), transform, hierarchy, attributes, shape, or all. Reduces tool-call chaining.
| Parameter | Type | Description |
|---|---|---|
node * | string | Node name to query |
info_category | string | Category of information to retrieve |
attributes.get Get Attributes
Get one or more attribute values from a Maya node. Supports batch queries to reduce tool call chaining.
| Parameter | Type | Description |
|---|---|---|
attributes * | array | Attribute names to get (e.g., ['translateX', 'visibility']) |
node * | string | Node name to query |
attributes.set Set Attributes
Set one or more attribute values on a Maya node. Supports batch operations to reduce tool call chaining.
| Parameter | Type | Description |
|---|---|---|
attributes * | object | Map of attribute name to value |
node * | string | Node name to modify |
connections.list List Connections
List connections on a Maya node with direction and type filters. Returns max 500 connections by default to limit response size.
| Parameter | Type | Description |
|---|---|---|
node * | string | Node name to query connections for |
connections_type | Filter by connection type (e.g., 'animCurve', 'shader') | |
direction | string | Filter by direction: incoming, outgoing, or both |
limit | Max connections to return (default 500, use 0 for unlimited) |
connections.get Get Connection Details
Get detailed connection information for specific attributes on a node.
| Parameter | Type | Description |
|---|---|---|
node * | string | Node name to query |
attributes | Attribute names to check for connections (None = all connectable attrs) |
connections.connect Connect Attributes
Connect two attributes in Maya. Use force=True to disconnect existing connections first.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination plug in 'node.attribute' format |
source * | string | Source plug in 'node.attribute' format |
force | boolean | If True, disconnect existing connections to destination first |
connections.disconnect Disconnect Attributes
Disconnect attributes in Maya. Can disconnect a specific connection, all outgoing from a source, or all incoming to a destination.
| Parameter | Type | Description |
|---|---|---|
destination | Destination plug to disconnect from (None = use source only) | |
source | Source plug to disconnect from (None = use destination only) |
connections.history List Node History
List construction/deformation history on a node. Traverses upstream (input) or downstream (output) dependency graph.
| Parameter | Type | Description |
|---|---|---|
node * | string | Node name to query history for |
depth | integer | Maximum depth to traverse (default 10, max 50) |
direction | string | Direction to traverse: input (upstream), output (downstream), or both |
limit | Max history nodes to return (default 500) |
selection.get Get Selection
Get the current selection in Maya
selection.set Set Selection
Set the Maya selection
| Parameter | Type | Description |
|---|---|---|
nodes * | array | Node names to select |
add | boolean | Add to existing selection |
deselect | boolean | Remove from selection |
selection.clear Clear Selection
Clear the Maya selection (deselect all)
selection.set_components Set Component Selection
Select mesh components (vertices, edges, or faces) using Maya notation (e.g., 'pCube1.vtx[0:10]', 'pSphere1.e[5]', 'pPlane1.f[0:99]').
| Parameter | Type | Description |
|---|---|---|
components * | array | Component specifications (e.g., ['pCube1.vtx[0:7]', 'pCube1.f[0]']) |
add | boolean | Add to existing selection |
deselect | boolean | Remove from selection |
selection.get_components Get Component Selection
Get currently selected mesh components grouped by type (vertices, edges, faces).
selection.convert_components Convert Component Selection
Convert the current selection to a different component type (vertex, edge, or face).
| Parameter | Type | Description |
|---|---|---|
to_type * | string | Target component type |
nodes | Nodes to convert (None = use current selection) |
mesh.info Get Mesh Information
Get mesh statistics: vertex/face/edge counts, bounding box, UV status
| Parameter | Type | Description |
|---|---|---|
node * | string | Name of the mesh node (transform or shape) |
mesh.vertices Get Mesh Vertices
Query vertex positions from a mesh with offset/limit pagination. Returns vertex positions as [x, y, z] arrays.
| Parameter | Type | Description |
|---|---|---|
node * | string | Name of the mesh node (transform or shape) |
limit | Maximum vertices to return (default 1000, use 0 for unlimited) | |
offset | integer | Starting vertex index (0-based) |
mesh.evaluate Evaluate Mesh Topology
Analyze mesh topology for issues: non-manifold edges, lamina faces, holes, and border edges.
| Parameter | Type | Description |
|---|---|---|
node * | string | Name of the mesh node (transform or shape) |
checks | Checks to perform (default: all) | |
limit | Max components per check (default 500) |
viewport.capture Capture Viewport
Capture a single viewport frame as inline image content using Maya playblast. Read-only: does not modify scene data.
| Parameter | Type | Description |
|---|---|---|
format | string | Image format: 'jpeg' (default) or 'png' |
frame | Optional frame to capture (defaults to current time) | |
height | integer | Capture height in pixels (64-4096) |
offscreen | boolean | Use offscreen capture when available (default False) |
panel | Optional preferred modelPanel name | |
quality | integer | JPEG quality 1-100 (used when format='jpeg') |
show_ornaments | boolean | Show viewport ornaments/gizmos (default True) |
width | integer | Capture width in pixels (64-4096) |
curve.info Get Curve Information
Get NURBS curve information: degree, spans, form, CV count, knots, length, bounding box.
| Parameter | Type | Description |
|---|---|---|
node * | string | Name of the curve node (transform or shape) |
curve.cvs Get Curve CVs
Query CV positions from a NURBS curve with offset/limit pagination. Returns CV positions as [x, y, z] arrays in world space.
| Parameter | Type | Description |
|---|---|---|
node * | string | Name of the curve node (transform or shape) |
limit | Maximum CVs to return (default 1000, use 0 for unlimited) | |
offset | integer | Starting CV index (0-based) |
modeling.create_polygon_primitive Create Polygon Primitive
Create a polygon primitive (cube, sphere, cylinder, cone, torus, plane) with configurable dimensions, subdivisions, and axis.
| Parameter | Type | Description |
|---|---|---|
primitive_type * | string | Type of primitive to create |
axis | string | Up axis for the primitive |
depth | number | Depth (cube) |
height | number | Height (cube/cylinder/cone/plane) |
name | Optional name for the transform node | |
radius | number | Radius (sphere/cylinder/cone/torus) |
subdivisions_axis | Axis subdivisions (sphere/cylinder/cone/torus) | |
subdivisions_depth | Depth subdivisions | |
subdivisions_height | Height subdivisions | |
subdivisions_width | Width subdivisions | |
width | number | Width (cube/plane) |
modeling.extrude_faces Extrude Faces
Extrude polygon faces with local translation, offset, and division options.
| Parameter | Type | Description |
|---|---|---|
faces * | array | Face components to extrude (e.g., ['pCube1.f[0]', 'pCube1.f[2]']) |
divisions | integer | Number of extrusion divisions |
keep_faces_together | boolean | Keep faces together during extrusion |
local_translate_x | Local X translation | |
local_translate_y | Local Y translation | |
local_translate_z | Local Z translation (extrusion thickness) | |
offset | Offset amount for the extrusion |
modeling.boolean Run Mesh Boolean
Perform a boolean operation (union, difference, intersection) on two meshes.
| Parameter | Type | Description |
|---|---|---|
mesh_a * | string | First mesh (base) |
mesh_b * | string | Second mesh (operand) |
operation | string | Boolean operation type |
modeling.combine Combine Meshes
Combine multiple meshes into a single mesh.
| Parameter | Type | Description |
|---|---|---|
meshes * | array | List of mesh names to combine (minimum 2) |
name | Optional name for the combined mesh |
modeling.separate Separate Mesh
Separate a combined mesh into individual meshes.
| Parameter | Type | Description |
|---|---|---|
mesh * | string | Name of the mesh to separate |
modeling.merge_vertices Merge Vertices
Merge vertices on a mesh within a distance threshold.
| Parameter | Type | Description |
|---|---|---|
mesh * | string | Name of the mesh |
threshold | number | Distance threshold for merging (default 0.001) |
vertices | Optional specific vertex components to merge (None = all vertices) |
modeling.bevel Bevel Components
Bevel edges or vertices with offset, segments, and fraction options.
| Parameter | Type | Description |
|---|---|---|
components * | array | Edge or vertex components to bevel (e.g., ['pCube1.e[0:3]']) |
fraction | number | Bevel fraction (default 0.5) |
offset | number | Bevel offset distance (default 0.5) |
segments | integer | Number of bevel segments (default 1) |
modeling.bridge Bridge Edge Loops
Bridge between edge loops to create connecting faces.
| Parameter | Type | Description |
|---|---|---|
edge_loops * | array | Edge components for the edge loops to bridge |
divisions | integer | Number of divisions in the bridge (default 0) |
taper | number | Taper amount (default 1.0) |
twist | integer | Twist amount (default 0) |
modeling.insert_edge_loop Insert Edge Loop
Insert an edge loop at the specified edge using polySplitRing.
| Parameter | Type | Description |
|---|---|---|
edge * | string | Single edge component (e.g., 'pCube1.e[4]') |
divisions | integer | Number of edge loops to insert (default 1) |
weight | number | Position weight along the edge (0-1, default 0.5) |
modeling.delete_faces Delete Faces
Delete polygon faces from a mesh.
| Parameter | Type | Description |
|---|---|---|
faces * | array | Face components to delete (e.g., ['pCube1.f[0]', 'pCube1.f[3]']) |
modeling.move_components Move Components
Move mesh components (vertices, edges, faces) by relative translation or to an absolute position.
| Parameter | Type | Description |
|---|---|---|
components * | array | Component strings to move (e.g., ['pCube1.vtx[0:3]']) |
absolute | Absolute [x, y, z] position (mutually exclusive with translate) | |
translate | Relative [x, y, z] translation (mutually exclusive with absolute) | |
world_space | boolean | Use world space coordinates (default True) |
modeling.freeze_transforms Freeze Transforms
Freeze (reset) transforms on nodes, applying current values as identity.
| Parameter | Type | Description |
|---|---|---|
nodes * | array | Node names to freeze transforms on |
rotate | boolean | Freeze rotation (default True) |
scale | boolean | Freeze scale (default True) |
translate | boolean | Freeze translation (default True) |
modeling.delete_history Delete Construction History
Delete construction history from nodes or the entire scene.
| Parameter | Type | Description |
|---|---|---|
all_nodes | boolean | If True, delete history from all nodes in the scene |
nodes | Node names to delete history from |
modeling.center_pivot Center Pivot
Center the pivot point on nodes.
| Parameter | Type | Description |
|---|---|---|
nodes * | array | Node names to center pivots on |
modeling.set_pivot Set Pivot
Set the pivot point of a node to an explicit position.
| Parameter | Type | Description |
|---|---|---|
node * | string | Node name to set pivot on |
position * | array | [x, y, z] position for the pivot |
world_space | boolean | Position is in world space (default True) |
shading.create_material Create Material
Create a material (lambert, blinn, phong, standardSurface) with an associated shading group and optional color.
| Parameter | Type | Description |
|---|---|---|
color | Optional [r, g, b] color (0-1 range) | |
material_type | string | Type of material shader to create |
name | Optional name for the material node |
shading.assign_material Assign Material
Assign a material to meshes or face components. Resolves the shading group from the material automatically.
| Parameter | Type | Description |
|---|---|---|
material * | string | Name of the material (or shading group) to assign |
targets * | array | Meshes or face components to assign the material to |
shading.set_material_color Set Material Color
Set a color attribute on a material (e.g., color, baseColor, transparency).
| Parameter | Type | Description |
|---|---|---|
color * | array | [r, g, b] color values (0-1 range) |
material * | string | Name of the material node |
attribute | string | Color attribute name (e.g., 'color', 'baseColor', 'transparency', 'incandescence') |
skin.bind Bind Skin
Bind a mesh to a skeleton with influence options. Creates a skinCluster with configurable bind method and max influences.
| Parameter | Type | Description |
|---|---|---|
joints * | array | List of joint names to use as influences |
mesh * | string | Name of the mesh to bind |
bind_method | string | Binding algorithm: closestDistance (default), heatMap, or geodesicVoxel |
max_influences | integer | Maximum influences per vertex (default 4) |
skin.unbind Unbind Skin
Detach a skin cluster from a mesh, removing skin deformation.
| Parameter | Type | Description |
|---|---|---|
mesh * | string | Name of the mesh to unbind |
skin.influences List Skin Influences
List influences (joints) on a skin cluster with index mapping.
| Parameter | Type | Description |
|---|---|---|
skin_cluster * | string | Name of the skinCluster node |
skin.weights.get Get Skin Weights
Get per-vertex skin weights with offset/limit pagination. Default limit is 100 vertices (skin weight data is dense). Use offset to paginate through large meshes.
| Parameter | Type | Description |
|---|---|---|
skin_cluster * | string | Name of the skinCluster node |
limit | Maximum vertices to return (default 100, use 0 for unlimited) | |
offset | integer | Starting vertex index (0-based) |
skin.weights.set Set Skin Weights
Set per-vertex skin weights with optional normalization. Accepts up to 1000 vertex entries per call.
| Parameter | Type | Description |
|---|---|---|
skin_cluster * | string | Name of the skinCluster node |
weights * | array | List of {vertex_id: int, weights: {joint: weight}} entries |
normalize | boolean | Normalize weights after setting (default True) |
skin.copy_weights Copy Skin Weights
Copy skin weights from one mesh to another using surface and influence association methods.
| Parameter | Type | Description |
|---|---|---|
source_mesh * | string | Source mesh (must have a skinCluster) |
target_mesh * | string | Target mesh (must have a skinCluster) |
influence_association | string | Influence matching method (default: closestJoint) |
surface_association | string | Surface matching method (default: closestPoint) |
script.list List Approved Scripts
List available Python scripts from configured MAYA_MCP_SCRIPT_DIRS directories. Read-only, does not require Maya connection.
script.execute Execute Approved Script
Execute a Python script file in Maya from an allowed MAYA_MCP_SCRIPT_DIRS directory. The script is read server-side and sent to Maya. Optional args dict is injected as __args__ in the script namespace.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path to the .py script file |
args | Optional arguments dict injected as __args__ in the script namespace | |
timeout | Optional timeout override in seconds (default from MAYA_MCP_SCRIPT_TIMEOUT) |
script.run Run Raw Script Code
Execute raw Python or MEL code in Maya. REQUIRES MAYA_MCP_ENABLE_RAW_EXECUTION=true environment variable. Disabled by default for security.
| Parameter | Type | Description |
|---|---|---|
code * | string | Python or MEL code to execute |
language | string | Code language (default: python) |
timeout | Optional timeout override in seconds (default from MAYA_MCP_SCRIPT_TIMEOUT) |
animation.set_time Set Current Time
Set the current time (go to a specific frame).
| Parameter | Type | Description |
|---|---|---|
time * | number | The frame number to set as current time |
update | boolean | Whether to update the viewport (default True) |
animation.get_time_range Get Time Range
Get playback range, animation range, and current time.
animation.set_time_range Set Time Range
Set the playback and animation range.
| Parameter | Type | Description |
|---|---|---|
max_time * | number | Playback end time |
min_time * | number | Playback start time |
animation_end | Animation range end (defaults to max_time) | |
animation_start | Animation range start (defaults to min_time) |
animation.set_keyframe Set Keyframe
Set keyframe on attribute(s) at current or specified time.
| Parameter | Type | Description |
|---|---|---|
node * | string | Name of the node to keyframe |
attributes | Attribute names to keyframe (None = all keyable) | |
in_tangent_type | string | In-tangent type: auto, linear, flat, step, stepnext, spline, clamped, plateau, fast, slow |
out_tangent_type | string | Out-tangent type: auto, linear, flat, step, stepnext, spline, clamped, plateau, fast, slow |
time | Time/frame to set keyframe at (None = current time) | |
value | Value to set (None = current value) |
animation.get_keyframes Get Keyframes
Query keyframes for attribute(s) on a node within optional time range.
| Parameter | Type | Description |
|---|---|---|
node * | string | Name of the node to query |
attributes | Attribute names to query (None = all animated attributes) | |
time_range_end | End of time range to query (None = all time) | |
time_range_start | Start of time range to query (None = all time) |
animation.delete_keyframes Delete Keyframes
Delete keyframes in a time range for attribute(s).
| Parameter | Type | Description |
|---|---|---|
node * | string | Name of the node to delete keyframes from |
attributes | Attribute names (None = all animated attributes) | |
time_range_end | End of time range (None = all time) | |
time_range_start | Start of time range (None = all time) |