Maya MCP Server
Enables AI-assisted 3D modeling and scene control in Autodesk Maya through natural language commands, supporting object creation, transformation, material application, and more.
README
Maya MCP Server
Connect Claude AI to Autodesk Maya through Model Context Protocol
English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Español | Français | Deutsch | Русский
Overview
Maya MCP Server enables Claude AI to directly control Autodesk Maya through the Model Context Protocol, enabling:
- 🎨 AI-assisted 3D modeling
- 🤖 Natural language Maya control
- 📸 Real-time scene preview
- 🔧 Workflow automation
Quick Start
1. Install Dependencies
pip install "mcp[cli]>=1.3.0"
2. Load Maya Plugin
Load plug-ins/maya_mcp.py in Maya's Plug-in Manager:
-
Copy
plug-ins/maya_mcp.pyto:- Windows:
C:\Users\<username>\Documents\maya\<version>\plug-ins\ - macOS:
~/maya/<version>/plug-ins/
- Windows:
-
Open Maya → Windows > Settings/Preferences > Plug-in Manager
-
Find
maya_mcp.py, check Loaded and Auto load -
Verify in Script Editor:
MayaMCP: Plugin loaded successfully MayaMCP: Server started at localhost:9877
3. Configure Claude Desktop
Edit config file (Settings > Developer > Edit Config):
Option A: Using npx (Recommended)
Standard Configuration:
{
"mcpServers": {
"maya-mcp": {
"command": "npx",
"args": [
"--yes",
"maya-mcp-server"
],
"env": {
"MAYA_HOST": "localhost",
"MAYA_PORT": "9877"
},
"alwaysAllow": [
"get_scene_info",
"get_object_info",
"create_primitive",
"delete_object",
"set_material",
"transform_object",
"smart_select",
"get_scene_summary",
"get_console_output",
"execute_maya_code"
]
}
}
}
Force Update Configuration (always pull latest package):
{
"mcpServers": {
"maya-mcp": {
"command": "npx",
"args": [
"--yes",
"--no-cache",
"maya-mcp-server"
],
"env": {
"MAYA_HOST": "localhost",
"MAYA_PORT": "9877"
},
"alwaysAllow": [
"get_scene_info",
"get_object_info",
"create_primitive",
"delete_object",
"set_material",
"transform_object",
"smart_select",
"get_scene_summary",
"get_console_output",
"execute_maya_code"
]
}
}
}
Option B: Using Python
{
"mcpServers": {
"maya-mcp": {
"command": "python",
"args": ["-m", "maya_mcp.server"],
"env": {
"PYTHONPATH": "YOUR_PROJECT_PATH/src",
"MAYA_HOST": "localhost",
"MAYA_PORT": "9877"
},
"alwaysAllow": [
"get_scene_info",
"create_primitive",
"delete_object",
"set_material",
"transform_object",
"smart_select",
"get_scene_summary",
"get_console_output",
"execute_maya_code"
]
}
}
}
💡 More configuration options in
examples/
4. Test Connection
Restart Claude Desktop, then ask:
Get current Maya scene information
If you see scene info returned, it's working! ✅
Features
🛠️ Core Tools
| Tool | Function |
|---|---|
get_scene_info |
Get scene information (objects, cameras, lights) |
get_object_info |
Get object details (position, rotation, material) |
create_primitive |
Create geometry (cube/sphere/cylinder/plane/torus) |
delete_object |
Delete objects |
transform_object |
Transform objects (move/rotate/scale) |
set_material |
Set materials and colors |
execute_maya_code |
Execute Python code |
smart_select |
Smart object selection with regex and filters |
get_scene_summary |
Get comprehensive scene summary |
get_console_output |
Get Maya console/script editor output 🆕 |
💬 Example Conversations
User: Create a red cube at position (0, 5, 0)
Claude:
1. Created cube
2. Moved to specified position
3. Applied red material
✅ Done
User: Create a simple table and chair scene
Claude:
1. Created table top (scaled cube)
2. Created 4 table legs (cylinders)
3. Created chair
4. Set materials
✅ Scene created successfully
Usage Examples
Basic Operations
# Scene queries
"Show all objects in the current scene"
"Get detailed info for pCube1"
"Get console output to see recent Maya logs"
# Create objects
"Create a sphere named mySphere"
"Create 10 cubes in a row"
# Modify objects
"Move pCube1 to (5, 0, 0)"
"Set pSphere1 to blue"
"Rotate pCylinder1 45 degrees on Y axis"
# Smart selection
"Select all objects with 'character' in their name"
"Find all meshes with more than 5000 faces"
Advanced Operations
# Procedural modeling
"Execute code to create a 5x5 cube grid"
# Vertex/Face editing
"Create a plane and edit vertices to make a terrain"
"Extrude faces to create details"
# UV editing
"Apply automatic UV projection to selected objects"
"Create spherical UV mapping for the sphere"
# Animation
"Create keyframe animation for bouncing ball"
"Set up 3-point lighting system"
# Rigging
"Create a spine bone chain with 5 joints"
"Set up parent constraints"
# Dynamics
"Create particle system with gravity"
"Apply bend deformer to plane"
# Boolean operations
"Subtract cube2 from cube1"
"Union two overlapping spheres"
# Batch operations
"Set all spheres to random colors"
# Complex scenes
"Create a simple interior scene with floor, walls, and furniture"
Configuration Options
Environment Variables
| Variable | Default | Description |
|---|---|---|
MAYA_HOST |
localhost |
Maya server address |
MAYA_PORT |
9877 |
Maya server port |
PYTHONPATH |
- | Python module search path (Python direct mode only) |
Custom Port
In Maya plugin:
start_maya_mcp_server(host='localhost', port=9878)
In config file:
"env": {
"MAYA_PORT": "9878"
}
Troubleshooting
Connection Failed
Issue: "Cannot connect to Maya"
Solutions:
- ✅ Verify Maya is running
- ✅ Confirm plugin is loaded (check Plug-in Manager)
- ✅ Check Script Editor for startup messages
- ✅ Ensure port 9877 is not in use
Module Not Found
Issue: "ModuleNotFoundError: No module named 'maya_mcp'"
Solutions:
- Install dependencies:
pip install "mcp[cli]>=1.3.0" - Check PYTHONPATH setting (if using Python direct mode)
- Try using npx method instead
NPX Configuration Issues
Issue: npx fails to start the server or can't find files
Solutions:
- Use absolute paths in configuration (not relative paths)
- Use forward slashes
/in Windows paths - Verify project structure is intact
- See detailed guide: NPX_TROUBLESHOOTING.md
Plugin Load Failed
Issue: Maya reports "No initializePlugin() function"
Solutions:
- Ensure using latest version of
maya_mcp.py - Plugin file contains
initializePlugin()anduninitializePlugin()functions
Security Notes
⚠️ Important:
execute_maya_codetool allows execution of arbitrary Python code- Always save Maya scene before executing
- Use with caution in production environments
- Test operations in a test scene first
Logs
Server logs are saved at:
- Windows:
%TEMP%\maya-mcp\maya-mcp.log - macOS/Linux:
/tmp/maya-mcp/maya-mcp.log
Check logs to debug connection issues or command execution errors.
Development
Adding New Tools
- Add command handler in
plug-ins/maya_mcp.py - Add MCP tool definition in
src/maya_mcp/server.py - Test new tool
Run Development Server
# Set environment
export PYTHONPATH=/path/to/maya-mcp-server/src
# Run server
python -m maya_mcp.server
Contributing
Contributions welcome! See CONTRIBUTING.md
Acknowledgments
Inspired by:
- Blender-MCP - Architecture reference
License
Disclaimer
This is a third-party project, not an official Autodesk product.
<div align="center">
Get Started • Configuration Guide • Report Issues
Made with ❤️ for Maya artists and AI enthusiasts
</div>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。