Maya MCP Server
Enables AI assistants to connect to and control Autodesk Maya for 3D modeling, animation, and rendering operations through the Model Context Protocol, supporting object creation, transformation, scene queries, and Python command execution.
README
Maya MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to connect to and control Autodesk Maya. Provides 29 tools for 3D modeling, animation, debugging, and Maya API access through the standardized MCP protocol.
🚀 Features
- 🤖 MCP Protocol Integration: Full Model Context Protocol implementation for AI assistants
- 🔗 Maya Command Port: Direct connection via command port (port 7022)
- 📦 NPX Distribution: Install and run with
npx maya-mcp-server - 🔌 Auto-loading Plugin: Maya plugin loads automatically on startup
- 🛠️ 29 Tools: Complete Maya API coverage - creation, selection, transformation, debugging, and more
- 🔒 Security: Command validation and safe execution environment
- 🎯 Multi-version: Maya 2023, 2024, and 2025 support
- 🐛 Debug Tools: Console capture, logging, and development utilities
- ⚙️ Flexible Config: Files, environment variables, or CLI options
🚀 Quick Start
1. Install and Run via NPX (Recommended)
# Start the MCP server
npx maya-mcp-server
# Or with custom configuration
npx maya-mcp-server --host localhost --port 8765 --debug
2. Install Maya Plugin
Automatic Installation:
# Use the built-in installer
npx maya-mcp-server --install-plugin
# or
npm run install-plugin
Manual Installation:
# Windows
copy plug-ins/maya_mcp.py "%USERPROFILE%\Documents\maya\plug-ins\"
# macOS
cp plug-ins/maya_mcp.py ~/Library/Preferences/Autodesk/maya/plug-ins/
# Linux
cp plug-ins/maya_mcp.py ~/maya/plug-ins/
3. Start Maya
Launch Maya (2023-2025 supported). The MCP plugin will automatically load and start listening on port 7022.
Verify Plugin Loading:
- Check Maya's Script Editor for "Maya MCP Plugin loaded successfully"
- Or manually load via Window → Settings/Preferences → Plug-in Manager
4. Connect AI Assistant
Configure your AI assistant to connect to the MCP server:
Local NPX (29 tools):
{
"mcpServers": {
"maya": {
"command": "npx",
"args": ["maya-mcp-server"],
"env": {}
}
}
}
Smithery.ai Hosted (10 core tools):
{
"mcpServers": {
"maya": {
"command": "npx",
"args": ["@smithery/cli", "run", "@Jeffreytsai1004/maya-mcp"],
"env": {}
}
}
}
Installation
NPX (Recommended)
# Install and run
npx maya-mcp-server
# With options
npx maya-mcp-server --debug --port 8765
Manual Installation
git clone https://github.com/Jeffreytsai1004/maya-mcp.git
cd maya-mcp
pip install -r requirements.txt
python src/server.py
Configuration
Configuration File
Create a config.yaml file:
host: localhost
port: 8765
maya_port: 7022
debug: false
log_level: INFO
timeout: 30
Environment Variables
export MAYA_MCP_HOST=localhost
export MAYA_MCP_PORT=8765
export MAYA_MCP_MAYA_PORT=7022
export MAYA_MCP_DEBUG=true
Command Line Options
python src/server.py --host localhost --port 8765 --debug
Available Tools (29 Total)
Core Maya Operations (9 tools)
maya_create
Create Maya objects (cubes, spheres, etc.)
{
"object_type": "polyCube",
"name": "myCube"
}
maya_select
Select objects by name
{
"objects": ["pCube1", "pSphere1"]
}
maya_transform
Transform objects (move, rotate, scale)
{
"objects": ["pCube1"],
"translate": [5, 0, 0],
"rotate": [0, 45, 0]
}
maya_delete
Delete objects from scene
{
"objects": ["pCube1", "pSphere1"]
}
maya_execute
Execute Python commands in Maya
{
"command": "import maya.cmds as cmds; cmds.polyCube(name='scriptCube')"
}
maya_get_selection
Get currently selected objects
{}
maya_get_scene_info
Get detailed scene information
{
"include_transforms": true,
"include_attributes": false
}
maya_get_object_info
Get detailed information about specific objects
{
"object_name": "pCube1",
"include_attributes": true
}
maya_list_objects
List objects in scene by type
{
"object_type": "transform",
"pattern": "cube*"
}
Console Capture & Debugging Tools (6 tools)
maya_get_console_output
Get Maya console output for debugging
{
"lines": 50,
"include_errors": true
}
maya_enable_console_capture
Enable Maya console output capture
{
"max_lines": 1000
}
maya_disable_console_capture
Disable Maya console output capture
{}
maya_clear_console_buffer
Clear Maya console output buffer
{}
maya_set_debug_mode
Enable or disable debug mode
{
"enabled": true
}
maya_get_debug_info
Get comprehensive debug information
{}
Advanced Maya Integration (14 tools)
maya_get_log_file
Get Maya log file contents for debugging
{
"log_type": "output",
"lines": 100
}
maya_browse_outliner
Browse Maya outliner hierarchy and DAG structure
{
"root_node": "|",
"depth": 3,
"include_shapes": true,
"filter_type": "all"
}
maya_get_menu_structure
Get Maya main menu structure and available commands
{
"menu_name": "Create",
"include_submenus": true
}
maya_execute_menu_command
Execute Maya menu command by name
{
"command": "polyCube",
"arguments": {"name": "menuCube"}
}
maya_get_shelf_tools
Get available tools from Maya shelves
{
"shelf_name": "Polygons"
}
maya_list_plugins
List available and loaded Maya plugins
{
"loaded_only": false,
"include_info": true
}
maya_load_plugin
Load a Maya plugin by name
{
"plugin_name": "objExport",
"quiet": false
}
maya_unload_plugin
Unload a Maya plugin by name
{
"plugin_name": "objExport",
"force": false
}
maya_api_call
Direct Maya API function call with OpenMaya
{
"api_module": "OpenMaya",
"function_name": "MGlobal.displayInfo",
"arguments": ["Hello from API"],
"return_type": "string"
}
maya_execute_mayapy
Execute Python script using MayaPy interpreter
{
"script_content": "import maya.cmds as cmds; print(cmds.ls())",
"timeout": 30
}
maya_get_node_connections
Get detailed node connection information
{
"node_name": "pCube1",
"connection_type": "both",
"include_attributes": true
}
maya_search_nodes
Advanced node search with filters and patterns
{
"search_pattern": "*cube*",
"node_type": "transform",
"has_attribute": "visibility"
}
maya_get_workspace_info
Get Maya workspace and project information
{
"include_rules": true
}
maya_set_workspace
Set Maya workspace directory
{
"workspace_path": "/path/to/project",
"create_if_missing": false
}
Maya Plugin
The Maya plugin (plug-ins/maya_mcp.py) provides:
- Automatic loading when Maya starts
- Command port server on port 7022
- Safe Python command execution
- Scene state management
- Error handling and logging
Manual Plugin Loading
If the plugin doesn't auto-load:
import maya.cmds as cmds
cmds.loadPlugin("path/to/maya_mcp.py")
Development
Development Mode
python src/server.py --debug
Debug Mode
python src/server.py --debug
Hot Reload
The server supports hot reloading of configuration and scripts without restart.
Supported Maya Versions
- Maya 2023
- Maya 2024
- Maya 2025
Requirements
- Python 3.8+
- Autodesk Maya 2023-2025
- MCP SDK
- aiohttp
- websockets
Security
The server includes security measures:
- Command validation and filtering
- Blocked dangerous operations
- Safe Python execution environment
- Connection authentication (optional)
Documentation
- Installation Guide - Detailed installation instructions for all platforms
- API Documentation - Complete API reference with examples
- Troubleshooting Guide - Solutions for common issues
Troubleshooting
For detailed troubleshooting information, see the Troubleshooting Guide.
Quick Fixes
- Maya Not Connecting: Ensure Maya is running and plugin is loaded
- Plugin Not Loading: Check plugin directory and Maya version compatibility
- Port Issues: Try alternative ports (7023, 7024, etc.)
- Server Won't Start: Verify Python 3.8+ and install dependencies
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test your changes
- Submit a pull request
License
MIT License - see LICENSE file for details.
Changelog
v1.0.6 (Latest)
- ✅ WebSocket Compatibility: Fixed Python 3.14 compatibility issues
- ✅ Version Synchronization: Unified all version numbers across files
- ✅ Connection Stability: Improved Maya connection reliability
- ✅ Documentation: Updated all documentation with latest information
v1.0.5
- 🔧 Version number fixes and NPM package updates
v1.0.4
- 🐛 WebSocket timeout parameter compatibility fixes
v1.0.3
- 📝 Documentation improvements and bug fixes
Links
- NPM Package: maya-mcp-server (v1.0.6)
- GitHub Repository: Jeffreytsai1004/maya-mcp
- Smithery.ai: @Jeffreytsai1004/maya-mcp
Support
- Issues: Report bugs and request features
- Discussions: Community help
- Documentation: Installation • API • Troubleshooting
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。