Maya MCP

v0.6.1
io.github.GimbalGoats/maya-mcp Checked 5 days ago Published 4 months ago

Control 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

ParameterTypeDescription
hoststringTarget host (localhost only)
portintegerTarget port number
source_typestringCommand 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.

ParameterTypeDescription
forcebooleanIf 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.

ParameterTypeDescription
file_path *stringAbsolute 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).

ParameterTypeDescription
file_path *stringPath to the Maya scene file to open (.ma or .mb)
forcebooleanIf 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.

ParameterTypeDescription
file_path *stringPath to the file to import (.ma, .mb, .obj, .fbx, .abc, .usd, .usda, .usdc, .usdz)
forcebooleanIf True, replace existing namespace contents. If False (default), merge.
namespaceNamespace 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).

ParameterTypeDescription
file_path *stringPath for the exported file (.ma, .mb, .obj, .fbx, .abc, .usd, .usda, .usdc)
animationbooleanIf True, include animation data (FBX only). If False (default), export static.
export_modestringWhat 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.

ParameterTypeDescription
limitMax nodes to return (default 500, use 0 for unlimited)
long_namesbooleanReturn full DAG paths
node_typeFilter by node type (e.g., 'transform', 'mesh')
patternstringName pattern filter (supports wildcards)

nodes.create Create Node

Create a new node in Maya with optional name, parent, and initial attributes.

ParameterTypeDescription
node_type *stringType of node to create (e.g., 'transform', 'locator', 'joint')
attributesInitial attribute values to set after creation
nameDesired node name (Maya may modify for uniqueness)
parentParent node to parent under

nodes.delete Delete Nodes

Delete one or more nodes from the Maya scene.

ParameterTypeDescription
nodes *arrayNode names to delete
hierarchybooleanDelete entire hierarchy below each node

nodes.rename Rename Nodes

Rename one or more nodes in the Maya scene.

ParameterTypeDescription
mapping *objectMap of current node name to new name

nodes.parent Parent Nodes

Reparent one or more nodes in the Maya hierarchy.

ParameterTypeDescription
nodes *arrayNodes to reparent
parentNew parent node. If None, unparent (parent to world).
relativebooleanPreserve existing local transformations

nodes.duplicate Duplicate Nodes

Duplicate one or more nodes.

ParameterTypeDescription
nodes *arrayNodes to duplicate
input_connectionsbooleanDuplicate input connections
nameName for the new node (only valid when duplicating single node)
parent_onlybooleanDuplicate only the specified node, not its children
upstream_nodesbooleanDuplicate 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.

ParameterTypeDescription
node *stringNode name to query
info_categorystringCategory 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.

ParameterTypeDescription
attributes *arrayAttribute names to get (e.g., ['translateX', 'visibility'])
node *stringNode 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.

ParameterTypeDescription
attributes *objectMap of attribute name to value
node *stringNode 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.

ParameterTypeDescription
node *stringNode name to query connections for
connections_typeFilter by connection type (e.g., 'animCurve', 'shader')
directionstringFilter by direction: incoming, outgoing, or both
limitMax connections to return (default 500, use 0 for unlimited)

connections.get Get Connection Details

Get detailed connection information for specific attributes on a node.

ParameterTypeDescription
node *stringNode name to query
attributesAttribute 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.

ParameterTypeDescription
destination *stringDestination plug in 'node.attribute' format
source *stringSource plug in 'node.attribute' format
forcebooleanIf 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.

ParameterTypeDescription
destinationDestination plug to disconnect from (None = use source only)
sourceSource 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.

ParameterTypeDescription
node *stringNode name to query history for
depthintegerMaximum depth to traverse (default 10, max 50)
directionstringDirection to traverse: input (upstream), output (downstream), or both
limitMax history nodes to return (default 500)

selection.get Get Selection

Get the current selection in Maya

selection.set Set Selection

Set the Maya selection

ParameterTypeDescription
nodes *arrayNode names to select
addbooleanAdd to existing selection
deselectbooleanRemove 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]').

ParameterTypeDescription
components *arrayComponent specifications (e.g., ['pCube1.vtx[0:7]', 'pCube1.f[0]'])
addbooleanAdd to existing selection
deselectbooleanRemove 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).

ParameterTypeDescription
to_type *stringTarget component type
nodesNodes to convert (None = use current selection)

mesh.info Get Mesh Information

Get mesh statistics: vertex/face/edge counts, bounding box, UV status

ParameterTypeDescription
node *stringName 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.

ParameterTypeDescription
node *stringName of the mesh node (transform or shape)
limitMaximum vertices to return (default 1000, use 0 for unlimited)
offsetintegerStarting vertex index (0-based)

mesh.evaluate Evaluate Mesh Topology

Analyze mesh topology for issues: non-manifold edges, lamina faces, holes, and border edges.

ParameterTypeDescription
node *stringName of the mesh node (transform or shape)
checksChecks to perform (default: all)
limitMax 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.

ParameterTypeDescription
formatstringImage format: 'jpeg' (default) or 'png'
frameOptional frame to capture (defaults to current time)
heightintegerCapture height in pixels (64-4096)
offscreenbooleanUse offscreen capture when available (default False)
panelOptional preferred modelPanel name
qualityintegerJPEG quality 1-100 (used when format='jpeg')
show_ornamentsbooleanShow viewport ornaments/gizmos (default True)
widthintegerCapture width in pixels (64-4096)

curve.info Get Curve Information

Get NURBS curve information: degree, spans, form, CV count, knots, length, bounding box.

ParameterTypeDescription
node *stringName 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.

ParameterTypeDescription
node *stringName of the curve node (transform or shape)
limitMaximum CVs to return (default 1000, use 0 for unlimited)
offsetintegerStarting 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.

ParameterTypeDescription
primitive_type *stringType of primitive to create
axisstringUp axis for the primitive
depthnumberDepth (cube)
heightnumberHeight (cube/cylinder/cone/plane)
nameOptional name for the transform node
radiusnumberRadius (sphere/cylinder/cone/torus)
subdivisions_axisAxis subdivisions (sphere/cylinder/cone/torus)
subdivisions_depthDepth subdivisions
subdivisions_heightHeight subdivisions
subdivisions_widthWidth subdivisions
widthnumberWidth (cube/plane)

modeling.extrude_faces Extrude Faces

Extrude polygon faces with local translation, offset, and division options.

ParameterTypeDescription
faces *arrayFace components to extrude (e.g., ['pCube1.f[0]', 'pCube1.f[2]'])
divisionsintegerNumber of extrusion divisions
keep_faces_togetherbooleanKeep faces together during extrusion
local_translate_xLocal X translation
local_translate_yLocal Y translation
local_translate_zLocal Z translation (extrusion thickness)
offsetOffset amount for the extrusion

modeling.boolean Run Mesh Boolean

Perform a boolean operation (union, difference, intersection) on two meshes.

ParameterTypeDescription
mesh_a *stringFirst mesh (base)
mesh_b *stringSecond mesh (operand)
operationstringBoolean operation type

modeling.combine Combine Meshes

Combine multiple meshes into a single mesh.

ParameterTypeDescription
meshes *arrayList of mesh names to combine (minimum 2)
nameOptional name for the combined mesh

modeling.separate Separate Mesh

Separate a combined mesh into individual meshes.

ParameterTypeDescription
mesh *stringName of the mesh to separate

modeling.merge_vertices Merge Vertices

Merge vertices on a mesh within a distance threshold.

ParameterTypeDescription
mesh *stringName of the mesh
thresholdnumberDistance threshold for merging (default 0.001)
verticesOptional specific vertex components to merge (None = all vertices)

modeling.bevel Bevel Components

Bevel edges or vertices with offset, segments, and fraction options.

ParameterTypeDescription
components *arrayEdge or vertex components to bevel (e.g., ['pCube1.e[0:3]'])
fractionnumberBevel fraction (default 0.5)
offsetnumberBevel offset distance (default 0.5)
segmentsintegerNumber of bevel segments (default 1)

modeling.bridge Bridge Edge Loops

Bridge between edge loops to create connecting faces.

ParameterTypeDescription
edge_loops *arrayEdge components for the edge loops to bridge
divisionsintegerNumber of divisions in the bridge (default 0)
tapernumberTaper amount (default 1.0)
twistintegerTwist amount (default 0)

modeling.insert_edge_loop Insert Edge Loop

Insert an edge loop at the specified edge using polySplitRing.

ParameterTypeDescription
edge *stringSingle edge component (e.g., 'pCube1.e[4]')
divisionsintegerNumber of edge loops to insert (default 1)
weightnumberPosition weight along the edge (0-1, default 0.5)

modeling.delete_faces Delete Faces

Delete polygon faces from a mesh.

ParameterTypeDescription
faces *arrayFace 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.

ParameterTypeDescription
components *arrayComponent strings to move (e.g., ['pCube1.vtx[0:3]'])
absoluteAbsolute [x, y, z] position (mutually exclusive with translate)
translateRelative [x, y, z] translation (mutually exclusive with absolute)
world_spacebooleanUse world space coordinates (default True)

modeling.freeze_transforms Freeze Transforms

Freeze (reset) transforms on nodes, applying current values as identity.

ParameterTypeDescription
nodes *arrayNode names to freeze transforms on
rotatebooleanFreeze rotation (default True)
scalebooleanFreeze scale (default True)
translatebooleanFreeze translation (default True)

modeling.delete_history Delete Construction History

Delete construction history from nodes or the entire scene.

ParameterTypeDescription
all_nodesbooleanIf True, delete history from all nodes in the scene
nodesNode names to delete history from

modeling.center_pivot Center Pivot

Center the pivot point on nodes.

ParameterTypeDescription
nodes *arrayNode names to center pivots on

modeling.set_pivot Set Pivot

Set the pivot point of a node to an explicit position.

ParameterTypeDescription
node *stringNode name to set pivot on
position *array[x, y, z] position for the pivot
world_spacebooleanPosition 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.

ParameterTypeDescription
colorOptional [r, g, b] color (0-1 range)
material_typestringType of material shader to create
nameOptional 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.

ParameterTypeDescription
material *stringName of the material (or shading group) to assign
targets *arrayMeshes 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).

ParameterTypeDescription
color *array[r, g, b] color values (0-1 range)
material *stringName of the material node
attributestringColor 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.

ParameterTypeDescription
joints *arrayList of joint names to use as influences
mesh *stringName of the mesh to bind
bind_methodstringBinding algorithm: closestDistance (default), heatMap, or geodesicVoxel
max_influencesintegerMaximum influences per vertex (default 4)

skin.unbind Unbind Skin

Detach a skin cluster from a mesh, removing skin deformation.

ParameterTypeDescription
mesh *stringName of the mesh to unbind

skin.influences List Skin Influences

List influences (joints) on a skin cluster with index mapping.

ParameterTypeDescription
skin_cluster *stringName 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.

ParameterTypeDescription
skin_cluster *stringName of the skinCluster node
limitMaximum vertices to return (default 100, use 0 for unlimited)
offsetintegerStarting 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.

ParameterTypeDescription
skin_cluster *stringName of the skinCluster node
weights *arrayList of {vertex_id: int, weights: {joint: weight}} entries
normalizebooleanNormalize 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.

ParameterTypeDescription
source_mesh *stringSource mesh (must have a skinCluster)
target_mesh *stringTarget mesh (must have a skinCluster)
influence_associationstringInfluence matching method (default: closestJoint)
surface_associationstringSurface 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.

ParameterTypeDescription
file_path *stringAbsolute path to the .py script file
argsOptional arguments dict injected as __args__ in the script namespace
timeoutOptional 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.

ParameterTypeDescription
code *stringPython or MEL code to execute
languagestringCode language (default: python)
timeoutOptional 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).

ParameterTypeDescription
time *numberThe frame number to set as current time
updatebooleanWhether 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.

ParameterTypeDescription
max_time *numberPlayback end time
min_time *numberPlayback start time
animation_endAnimation range end (defaults to max_time)
animation_startAnimation range start (defaults to min_time)

animation.set_keyframe Set Keyframe

Set keyframe on attribute(s) at current or specified time.

ParameterTypeDescription
node *stringName of the node to keyframe
attributesAttribute names to keyframe (None = all keyable)
in_tangent_typestringIn-tangent type: auto, linear, flat, step, stepnext, spline, clamped, plateau, fast, slow
out_tangent_typestringOut-tangent type: auto, linear, flat, step, stepnext, spline, clamped, plateau, fast, slow
timeTime/frame to set keyframe at (None = current time)
valueValue to set (None = current value)

animation.get_keyframes Get Keyframes

Query keyframes for attribute(s) on a node within optional time range.

ParameterTypeDescription
node *stringName of the node to query
attributesAttribute names to query (None = all animated attributes)
time_range_endEnd of time range to query (None = all time)
time_range_startStart of time range to query (None = all time)

animation.delete_keyframes Delete Keyframes

Delete keyframes in a time range for attribute(s).

ParameterTypeDescription
node *stringName of the node to delete keyframes from
attributesAttribute names (None = all animated attributes)
time_range_endEnd of time range (None = all time)
time_range_startStart of time range (None = all time)