SuperAPI AI Directory

MayaMCP

Connect AI assistants to Autodesk Maya.

Open website

About this tool

MayaMCP is a Model Context Protocol (MCP) server implementation for Autodesk Maya, designed to let AI assistant clients such as Claude Desktop control Autodesk Maya through natural language. The project has been tested on Maya 2023 and 2025. The author states that the Maya MCP server is still in an early stage, with a relatively streamlined feature set, and that the initial focus was architecture design and simplicity.

Main capabilities The project registers several tools. The materials mention "Advanced Modeling Tools," but do not list a specific tool inventory.

Usage Maya MCP server is designed to require only one MCP server, with no need to install anything inside Maya. This makes it easy to use different versions of Maya without coordinating version changes. It is implemented by leveraging Maya's command port for MEL scripts, which is enabled by default.

Requirements and installation MCP requires Python 3.10 or higher. pip is currently used because there are very few package dependencies. Steps to install a virtual environment:

  1. Download this project.
  2. In the project directory, create a virtual environment using Python 3.10+: python -m venv .venv
  3. Activate the virtual environment:
    • Windows: .venv\Scripts\activate.bat
    • Mac/Linux: source .venv\bin\activate.sh
  4. Run: pip install -r requirements.txt As mentioned earlier, nothing needs to be installed on the Maya side.

MCP client configuration Different MCP clients have different configuration file locations. For Anthropic Claude Desktop, go to File -> Settings -> Developer tab, click the Edit Config button, and a file finder will open the directory containing the JSON configuration file. Then you need to manually edit the configuration JSON file with a text editor, making sure to use the full file path. After making the changes, restart Claude Desktop (use the Exit menu item, rather than closing the window directly). In Developer In the tab, you can see that the Maya MCP server is listed. In Claude Desktop, you can verify whether the Maya MCP tools are available; pressing the button will pop up detailed instructions.

Maya Communication When the Maya MCP server first attempts to communicate with Maya, a prompt will pop up inside Maya. Please click "Allow All" to allow continuous communication between the MCP server and Maya. This action must be performed once per Maya session.

Developer Notes The Maya MCP server module is designed to be easy to modify in a non-intrusive way. The specific approach is: the Maya Python code is stored in the MCP server, sent to Maya's command port for execution, and the results are then returned to the server for processing. The default Maya command port runs MEL, so the Python code is modified to run the Python interpreter within a MEL function call. There are also some limitations, for example, multiline Python code cannot have a return result. Therefore, each command establishes two connections with Maya: the first executes the operation and saves the result, and the second reads the result. To minimize pollution of Maya's global Python interpreter namespace, functions and variables sent to Maya are scoped with the prefix mcp_maya*. Each Maya tool is confined within a function named _mcp_maya_scope(), and the result is assigned to the variable _mcp_maya_results. This can significantly reduce the likelihood of name conflicts. This design has a certain elegance: basically, you only need to add Python files and restart the MCP client and the Maya MCP server. There is no need to integrate operations in both the Maya MCP server and Maya itself at the same time. The added code is only Maya-specific Python and does not require adding any MCP decorators. Compared with a fixed tool set, this design is more conducive to extension and adaptation to different installation environments. The Maya MCP server is built using the low-level Python MCP module, which is necessary to dynamically define all tools at runtime. The tool function signatures are captured dynamically when the server starts.

Adding New Tools Adding a new tool to Maya MCP is very easy. There is no need to modify any existing code; you only need to add a tool command Python file to the mayatools/thirdparty directory. The tool itself is in Maya, so it has access to all Maya Python modules. There are several programming considerations when designing tools:

  • The Python file name and function name must be the same, and ensure they are unique.
  • The Python function will be loaded by both the server and Maya. Any code outside the function must be able to load in standalone Python, which means imports such as maya.cmds should be done within the function scope. The MCP server loads the function in order to inspect the function signature so that information can be sent to the MCP client via JSON-RPC.
  • The function signature will be parsed, and the function parameter annotations must include types.
  • When the function is sent to Maya, it will be scoped within the _mcp_maya_scope function. This brings many benefits: the function sent to Maya will not pollute the Python global space running in Maya too much; in addition, any exceptions thrown will be caught and returned to the MCP client as errors.
  • Usually you should return a list or dictionary, or throw an exception on error.
  • Name functions and parameters appropriately so that the LLM can understand the operation, and include a function docstring.
  • Using default parameters is good practice.
  • Performing error checking is good practice, so that error messages can provide a better explanation of the failure.
  • It is recommended to refer to the project's existing Maya tools as examples.

Applicable scenarios and limitations Currently Maya MCP has only been tested on Windows. Since everything uses standard Python, in theory it should be able to run on Linux and Mac. MCP is still in its early stages, and there is still much room for improvement. The author has proposed some ideas:

  • Expose more functionality.
  • Improve prompt engineering, especially describing Maya's usage and data relationships.
  • Currently everything is registered as tools; resources and prompts could be allowed.
  • It is possible to discover any plugin within Maya that has MCP tools, such as looking at any directory named MCP in PYTHONPATH within Maya, checking all of this content and returning it to the MCP client.

Other information The project involves Model Context Protocol (MCP) and Anthropic Claude Desktop. The author states that the project was completed on personal time and equipment for the purpose of learning MCP, is unrelated to the current employer, and does not represent their work or interests.