Provides tools for creating, manipulating, and managing 3D scenes in Autodesk Maya, including primitive creation, material assignment, transformations, lighting, cameras, mesh operations, keyframing, file import, viewport capture, session management, and more.
Click on "Install 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., "@maya-mcpcreate a red sphere and a blue cube"
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.
maya-mcp
Control Autodesk Maya with natural language using Claude and the Model Context Protocol (MCP)
Experimental project β use at your own risk. This is an independent, unofficial experiment created with Claude Code. It is not affiliated with, endorsed by, or officially supported by Autodesk in any way. The Maya name and trademarks belong to Autodesk, Inc.
Executing AI-generated code inside a live Maya session carries real risks: unexpected crashes, loss of unsaved work, unintended modifications to scenes, rigs, or assets. Always work on a duplicate or test scene. Never run this on production material without a full backup. The author(s) accept no responsibility for data loss, corruption, or any other damage resulting from its use.
π Code knowledge graph
Interactive, auto-published map of this codebase β modules, functions, call/import edges and community clusters β rebuilt by graphify and deployed to GitHub Pages on every push to src/:
abrahamadsk.github.io/maya-mcp Β· part of the MCP ecosystem graph hub.
MCP server for Autodesk Maya β 16 MCP tools with RAG-powered documentation search, anti-hallucination safety, self-learning patterns, and optional AI-driven 3D generation via the Vision3D addon.
Related MCP server: Maya MCP Server
Features
Production Maya Operations
Beyond primitives, maya-mcp handles real production tasks: polygon modeling (extrude, bevel, boolean, combine, smooth), animation keyframing with tangent control, multi-format I/O (OBJ, FBX, GLTF, Alembic, USD, MA/MB), viewport capture/playblast, full scene snapshots, and shelf button creation. All operations use undo chunks for safe rollback.
AI-Powered 3D Generation (optional addon)
Optionally integrates with Vision3D for image-to-3D and text-to-3D generation. Non-blocking async workflow: submit job β poll status β download results β import into Maya. Runs on a remote GPU server so your local machine stays responsive. Vision3D is not required β maya-mcp works fully without it.
Embedded Maya Console Panel
A dockable Qt panel that lives inside Maya as a workspaceControl tab (next to the Attribute Editor). Provides a chat interface to Claude with live Maya context (scene name, object count, selection, renderer). Installs automatically β the first time Claude connects to Maya (via maya_ping or maya_launch), the MCP Pipeline menu and panel are injected into the running Maya session. No manual userSetup.py editing required. The panel persists across Maya sessions β if left open, it auto-restores on next launch. Uses PySide2 (Maya 2023β2024) or PySide6 (Maya 2025+) automatically via a compatibility shim. All MCP servers (maya-mcp, fpt-mcp, flame-mcp) are accessible from the panel through Claude Code CLI.
Cross-MCP Orchestration
Works alongside fpt-mcp (ShotGrid/Flow Production Tracking) and flame-mcp (Autodesk Flame). Each DCC has its own embedded console, and all consoles access all MCP servers via Claude Code CLI. When multiple servers are configured, Claude can orchestrate end-to-end VFX workflows across applications. Consistent architecture across all three servers.
Review & Colour Management
Review previews are colour-correct and deterministic. The Viewport 2.0 capture paths (review_turntable, maya_viewport_capture) pin the colour-management view transform before the playblast and restore it after, so a version preview matches the viewport instead of riding the session's current view. The view is configurable (config.json β review_view_transform, default Un-tone-mapped (sRGB) β the view of Maya's built-in default OCIO config). For Arnold file renders, color_policy.py (and docs/ARNOLD_API.md) provide a preview-vs-EXR policy: bake the output transform for an 8-bit preview, but force the driver to Raw for scene-linear EXRs β the guardrail that keeps a display transform out of the EXRs the comp/Flame stage consumes.
Architecture
Claude / LLM
β MCP protocol (stdio)
FastMCP server (src/maya_mcp/server.py) β 16 MCP tools
βββ RAG engine (src/maya_mcp/rag/)
β βββ ChromaDB + BM25 hybrid search
β βββ HyDE adaptive query expansion
β βββ In-session cache + RRF fusion
βββ Safety module (src/maya_mcp/safety.py)
β βββ 14+ dangerous pattern detectors
βββ Maya bridge (src/maya_mcp/maya_bridge.py)
β βββ TCP socket β Command Port :8100
βββ Vision3D client (HTTP)
βββ GPU server for 3D generationTools (16 MCP tools)
Maya Direct Tools (9 tools)
Tool | Description |
| Create cube / sphere / cylinder / cone / plane / torus |
| Create and assign material (lambert / blinn / phong / aiStandardSurface) |
| Move / rotate / scale with world/object space and relative mode |
| Create directional / point / spot / area / ambient lights |
| Create cameras with focal length and look-at target |
| Extrude, bevel, boolean (union/diff/intersect), combine, separate, smooth |
| Keyframe any attribute with tangent control (auto/linear/flat/spline/step) |
| Import OBJ, FBX, GLB/GLTF, Alembic, MA/MB with namespace and scale (streams progress; 120s budget for heavy assets) |
| Playblast screenshot to PNG/JPG at any resolution |
Dispatcher Tools (3 tools)
Tool | Description |
| Session lifecycle + generic Maya ops (see action table below) |
| Optional Vision3D addon (see action table below) |
| Optional World Labs (Marble) addon β imageβGaussian-splat environment, convert + load into Maya for Arnold (see action table below) |
RAG & Intelligence (4 tools)
Tool | Description |
| Hybrid RAG search across 5 Maya API corpora with relevance scores |
| Save validated working patterns for future sessions (with trust gates) |
| Token efficiency report: RAG savings, safety blocks, patterns learned, p_fallo |
| Zero the session counters immediately (manual companion to the 30-min idle auto-reset) |
Maya Session Dispatcher (maya_session β 12 actions)
Action | Description |
| Verify connection, returns Maya version and scene info |
| Open Maya and wait for Command Port to respond (streams progress while waiting) |
| New empty scene (refuses if the scene has unsaved changes; pass confirm=true to discard them) |
| Save current scene |
| List scene objects with type and name filters |
| Full scene state: file, renderer, object counts, plugins, units |
| Delete objects with safety checks on wildcards |
| Execute arbitrary Python in Maya (safety scanning; optional timeout param up to 600s with 10s progress heartbeats) |
| Create reusable shelf buttons with custom Python commands |
| Read recent durable-audit records (read-only; requires MAYA_AUDIT_LOG=1). Optional filters: limit, tool, action, status |
| Drive the native Toolkit publisher (tk-multi-publish2) inside an engine'd Maya launched via tank. mode preview/publish, include/exclude intent tokens, comment, timeout. Captures dependencies automatically. |
| Deterministic Viewport 2.0 turntable playblast to a .mov (long op, runs in Maya). Frames the model, orbits 360Β° over startβend at the given fps, 16:9 / square pixels / overscan, offscreen (never Arnold), colour-managed (the review view transform is pinned and restored so the preview matches the viewport). Needs out_path (resolve via fpt tk_resolve_path, template movie_asset_publish); returns the mov plus a Version code Asset_Task to name the review Version after its task. |
Vision3D Dispatcher (maya_vision3d β 7 actions, optional, requires Vision3D)
Action | Description |
| Set the Vision3D server URL for the rest of this MCP session (runtime-only, asked from the user in the chat) |
| Check availability and model status of the selected server |
| Image-to-3D generation (full pipeline) |
| Text-to-3D generation |
| Texture an existing mesh with AI |
| Poll async job status |
| Download completed results to local disk |
RAG β Knowledge Engine
Architecture
LLMs hallucinate Maya API details constantly β wrong flag names (width= instead of w=), nonexistent commands (cmds.usdExport instead of cmds.mayaUSDExport), incorrect return types. maya-mcp includes a hybrid RAG engine (ChromaDB semantic + BM25 lexical, fused via Reciprocal Rank Fusion) with 5 curated documentation corpora covering maya.cmds, PyMEL, Arnold/mtoa, Maya-USD, and a comprehensive anti-patterns database. The LLM calls search_maya_docs before writing any unfamiliar code, getting verified syntax with relevance scores.
HyDE Query Expansion
Short queries like "set keyframe tangent" don't match code-heavy documentation well. maya-mcp uses Hypothetical Document Embedding (HyDE) β it detects which Maya API domain the query targets (cmds, PyMEL, Arnold, USD, MEL) and wraps the query in a domain-specific code template before embedding. This bridges the gap between natural-language questions and code documentation.
Dangerous Pattern Detection
Before any code reaches Maya, the safety module scans for 14+ dangerous patterns: bulk deletes without filters, undo system tampering, filesystem operations on scene files, plugin deregistration with active nodes, namespace deletions, referenced geometry modification, and more. Each pattern includes an explanation of WHY it is dangerous and a SAFE alternative.
Self-Learning
When the RAG returns low-relevance results (< 60%) but the operation succeeds, the LLM can call learn_pattern to save the working pattern for future sessions. Model trust gates ensure only Opus/Fable can write directly to docs β other models stage candidates for human review. Knowledge grows over time without manual curation.
Token Tracking
Every tool call tracks tokens in/out. The session_stats tool reports how much context was saved by RAG vs loading full documentation, making the efficiency gains measurable and visible.
Project Structure
maya-mcp/
βββ src/
β βββ maya_mcp/
β βββ __init__.py
β βββ __main__.py
β βββ server.py # FastMCP server β 16 MCP tools
β βββ maya_bridge.py # TCP bridge β Maya Command Port :8100
β βββ safety.py # Dangerous pattern detection (14+ patterns)
β βββ config.example.json
β βββ rag/
β β βββ config.py # Embedding model, search params, token tracking
β β βββ build_index.py # Chunk docs β ChromaDB + BM25 corpus
β β βββ search.py # Hybrid search: BM25 + semantic + HyDE + RRF
β β βββ index/ # ChromaDB persistent index (auto-generated)
β β βββ corpus.json # BM25 corpus (auto-generated)
β βββ docs/
β βββ CMDS_API.md # maya.cmds reference (commands, flags, patterns)
β βββ PYMEL_API.md # PyMEL object-oriented API reference
β βββ ARNOLD_API.md # Arnold/mtoa shaders, AOVs, render settings
β βββ USD_API.md # Maya-USD import/export, proxy shapes, pxr API
β βββ ANTI_PATTERNS.md # Common LLM hallucinations + wrong flag names
β
βββ console/ # Qt console β Maya panel + legacy standalone
β βββ qt_compat.py # PySide2 (Maya 2023-2024) / PySide6 (2025+) shim
β βββ maya_panel.py # Dockable workspaceControl panel for Maya
β βββ chat_widget.py # Reusable MCPChatWidget (shared by panel & standalone)
β βββ claude_worker.py # QThread worker β Claude CLI subprocess bridge
β βββ server_panel.py # MCP server discovery, health checks, ServerStatusBar
β βββ userSetup_snippet.py # Paste into Maya's userSetup.py for auto-setup
β βββ app.py # Legacy standalone entry point (use fpt-mcp console)
β βββ chat_window.py # Legacy standalone chat window
β βββ build_app_bundle.py # Legacy macOS .app bundle generator
β
βββ tests/
βββ pyproject.toml # Build config, entry point: python -m maya_mcp.server
βββ reference/ # Pipeline I/O (git-ignored)
βββ CLAUDE.md # Project documentation for Claude
βββ WORKFLOW_GUIDE.md # Workflow guide
βββ .env.example # Configuration template
βββ README.mdRequirements
macOS
Autodesk Maya 2023 or later
Python 3.13 or higher (ships with Maya 2027)
Node.js v22 or higher (required by Claude Code)
Claude Code 2.x
A Claude account β Pro, Max, or API key
Optional
Ollama >= 0.17.6 β for local / free inference instead of Anthropic cloud
macOS:
brew install ollama && brew services start ollamaLinux: https://ollama.com/download/linux (systemd)
Verify:
ollama --versionCreate the
qwen3.5-mcpmodel (required for Ollama backends):ollama pull qwen3.5:9b cat > /tmp/Modelfile.qwen35mcp <<'EOF' FROM qwen3.5:9b PARAMETER num_ctx 16384 PARAMETER temperature 0.7 PARAMETER top_p 0.8 PARAMETER top_k 20 EOF ollama create qwen3.5-mcp -f /tmp/Modelfile.qwen35mcpSee MODEL_STRATEGY.md for the full rationale (num_ctx bump,
think: falserequirement, KEEP_ALIVE tuning, KV-cache dtype)
Vision3D server for AI-powered 3D generation
Installation
Automatic Installation
git clone https://github.com/abrahamADSK/maya-mcp.git
cd maya-mcp
chmod +x install.sh
./install.shThe installer creates a virtual environment, installs dependencies, builds the RAG index, and registers the MCP server with Claude Code.
1. Clone and configure
git clone https://github.com/abrahamADSK/maya-mcp.git
cd maya-mcp
cp .env.example .env
# Optional: set GPU_API_URL as a *suggested default* for Vision3D.
# It is never auto-selected β Claude will surface it when asking you
# which Vision3D URL to use, and you have to confirm it explicitly.
# Example: GPU_API_URL=http://<your-gpu-host>:80002. Install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
# RAG dependencies (optional but recommended)
pip install chromadb sentence-transformers rank-bm253. Build the RAG index
python -m maya_mcp.rag.build_indexFirst run downloads the embedding model (~570 MB, cached afterwards). The index is stored in src/maya_mcp/rag/index/ and can be committed to git.
4. Set up Maya Command Port β automatic
install.sh does this for you. Step 7 of the installer detects every Maya version installed on the host, locates each version's user scripts dir, and writes an idempotent guarded block into userSetup.py that:
Adds the maya-mcp repo root to
sys.pathOpens the Command Port on
MAYA_PORT(from.env, default8100) bound tolocalhostusingsourceType='mel'with thename=kwarg form (the localhost bind keeps the port reachable only from this host β an all-interfaces bind would expose an unauthenticated arbitrary-code-execution port to the LAN; Maya 2027 also silently ignores the positional form whensourceTypeis specified)Registers the MCP Pipeline menu via
executeDeferred
The block is bounded by sentinel markers and reruns of install.sh are safe β the installer replaces the whole region when the markers are found.
Run ./install.sh --doctor after install to verify userSetup.py was written for every detected version (plus 4 other install-completeness checks).
Port 8100 default rationale: maya-mcp historically used port 7001, the Maya commandPort convention. On hosts with Autodesk Flame installed, port 7001 is already held by Flame's S+W Service Discovery and S+W Probe Server, and connections silently succeed against Flame instead of Maya β producing empty responses that the bridge (prior to v1.4.2) misinterpreted as successful no-ops. The default was moved to 8100 to coexist with Flame. Override via
MAYA_PORTin.envif your environment still uses 7001.
The MCP Pipeline Console panel installs itself automatically. The first time Claude connects to Maya (via maya_ping or maya_launch), the server injects the panel menu and UI through the Command Port. The panel docks next to the Attribute Editor and persists across sessions.
Add to your Maya userSetup.py:
Windows:
%USERPROFILE%/Documents/maya/<version>/scripts/userSetup.pymacOS:
~/Library/Preferences/Autodesk/maya/<version>/scripts/userSetup.pyLinux:
~/maya/<version>/scripts/userSetup.py
# --- MCP Pipeline Console auto-setup ---
import sys as _mcp_sys
_mcp_root = r"/path/to/maya-mcp" # replace with your clone path
if _mcp_root not in _mcp_sys.path:
_mcp_sys.path.insert(0, _mcp_root)
import maya.utils as _mcp_utils
def _mcp_open_command_port():
try:
import maya.cmds as _mc
# Bind to localhost: an all-interfaces (":8100") bind exposes an
# unauthenticated arbitrary-code-execution port to the whole LAN.
if not _mc.commandPort("localhost:8100", query=True):
_mc.commandPort(name="localhost:8100", sourceType="mel")
except Exception:
pass
def _mcp_menu_startup():
try:
from console.maya_panel import install_menu
import maya.cmds as _mc
if not _mc.menu("mcpPipelineMenu", exists=True):
install_menu()
except Exception:
pass
_mcp_utils.executeDeferred(_mcp_open_command_port)
_mcp_utils.executeDeferred(_mcp_menu_startup)
# --- end MCP Pipeline Console ---5. Configure Claude Code
claude mcp add maya-mcp -s user -- /path/to/maya-mcp/.venv/bin/python -m maya_mcp.serverOr for Claude Desktop, add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"maya-mcp": {
"command": "/path/to/maya-mcp/.venv/bin/python",
"args": ["-m", "maya_mcp.server"],
"cwd": "/path/to/maya-mcp",
"env": {
"GPU_API_URL": "http://your-gpu-host:8000",
"GPU_API_KEY": "your-api-key-here"
}
}
}
}6. Vision3D addon (optional β for AI 3D generation)
maya-mcp can optionally integrate with Vision3D for image-to-3D and text-to-3D generation. This is not required for core Maya functionality.
Vision3D URL is never stored. maya-mcp does not hold any Vision3D endpoint in config files, environment presets, or hardcoded defaults. On the first Vision3D call of each MCP session:
The dispatch returns
vision3d_url_required.Claude asks you in the chat which Vision3D URL to use.
You type the URL (e.g. a local Mac MPS instance or a remote CUDA host).
Claude calls
maya_vision3d(action="select_server", params={"url": "<the-url>"}).The URL is cached in the MCP process memory until restart and used for every subsequent call of the session.
You can switch servers mid-session by calling select_server again with a different URL. No restart required.
Suggested default via GPU_API_URL β if the environment variable GPU_API_URL is set, Claude surfaces it to you as a suggested default when asking for the URL. You still have to confirm or override it explicitly; it is never auto-selected. This is the only escape hatch for pre-selector installs. GPU_API_KEY is only needed if your Vision3D server has an API key configured.
Usage
Once installed, maya-mcp is available through Claude Code or any MCP-compatible client. Open Maya, ensure the Command Port is running, and start a conversation:
You: "Create a 2x2 grid of spheres with 0.5 unit spacing"
Claude β maya_create_primitive (sphere) Γ 4 β maya_transform (position each) β ResultYou: "Generate a 3D model from this reference image and import it"
Claude β maya_vision3d(action='generate_image', ...) β maya_vision3d(action='poll', ...) β maya_vision3d(action='download', ...) β maya_import_file β ResultAll operations go through the safety scanner before reaching Maya. Dangerous patterns are blocked with an explanation and a safe alternative.
Configuration Reference
Variable | Description | Default |
| Maya host |
|
| Maya Command Port |
|
| Optional suggested default for the Vision3D URL prompt. Never auto-selected β Claude asks the user to confirm or override at the first Vision3D call of each session. | β |
| Vision3D API key | β |
| Verify TLS certificates for |
|
| Shape generation timeout (seconds) |
|
| Texture generation timeout (seconds) |
|
| Opt-in durable audit log of tool executions. Set to | off |
config.json (not env vars) also accepts, besides backend/model/Ollama settings:
Key | Description | Default |
| Colour-management view pinned for review/preview captures ( |
|
| Static AST validation of |
|
| Models allowed to write learned patterns to the RAG corpus; others stage candidates for review. |
|
Audit Log (opt-in)
A durable, append-only record of what the model executed in Maya, and what happened β for accountability and forensics, separate from the logs/timings.jsonl efficiency telemetry.
Off by default. It only writes when
MAYA_AUDIT_LOGis set to a truthy value (1/true/yes/on). When unset there is zero perf, disk, or privacy impact and no behaviour change.What it records. One JSON line per call to
src/maya_mcp/logs/audit.jsonl:ts,tool,action, sanitisedparams,status(ok/error/safety_blocked/ast_rejected), plusmodel/backend. It coversexecute_python, the dedicated mutation tools, the mutatingmaya_sessionactions, and blocked attempts (safety scan / AST dry-run rejections). Read-only actions (ping,list_scene,scene_snapshot) are excluded.Size & privacy. For
execute_pythonthe code is stored truncated to ~2000 chars plus a SHA-256 of the full code and its length; Maya result payloads are never stored. The file rotates at 5 MB toaudit.jsonl.1(one rollover) and lives under the git-ignoredlogs/dir.Write-only. There is no MCP tool to read it (the tool count is unchanged). Inspect it with
jq/grep, e.g.jq 'select(.status=="safety_blocked")' src/maya_mcp/logs/audit.jsonl.
Cross-MCP Pipeline
When both maya-mcp and fpt-mcp are configured, Claude can orchestrate end-to-end VFX workflows: query ShotGrid for an asset β download reference image β generate 3D via Vision3D β import into Maya β register the publish back in ShotGrid. All from one conversation.
All three MCP servers (maya-mcp, fpt-mcp, flame-mcp) share the same architecture: hybrid RAG, HyDE, safety layer, self-learning, token tracking, and model trust gates.
Troubleshooting
Maya Command Port not responding β Verify in Maya's Script Editor: cmds.commandPort('localhost:8100', query=True). If False, run the open_command_port() snippet.
RAG search returns "index not found" β Run python -m maya_mcp.rag.build_index to build the index.
Shape inference fails immediately β Model weights may be incomplete. Check that hunyuan3d-dit-v2-0-turbo/model.fp16.safetensors (~4.6 GB) exists on the GPU server.
GPU API connection refused β Verify Vision3D is running: curl $GPU_API_URL/api/health.
Ecosystem
maya-mcp is part of a four-component VFX pipeline. Each component has a defined role:
Repo | Role |
Controls Autodesk Flame for compositing, conform, and finishing | |
Controls Autodesk Maya for 3D modeling, animation, and rendering | |
Connects to Autodesk Flow Production Tracking (ShotGrid) for production tracking, asset management, and publishes | |
GPU inference server for AI-powered 3D generation β the remote backend for maya-mcp's image-to-3D and text-to-3D tools |
maya-mcp sits at the 3D creation stage of the pipeline. It consumes vision3d via HTTP β submitting image-to-3D or text-to-3D jobs and importing the resulting .glb files into Maya. It works alongside fpt-mcp for end-to-end workflows: query ShotGrid for an asset, generate or load reference, build the 3D asset in Maya, and register the publish back in ShotGrid. flame-mcp typically operates downstream, receiving rendered outputs from Maya for finishing.
License
MIT License β see LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/abrahamADSK/maya-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
