write_module
Create a virtual Python module in Maya. Useful for defining reusable functions.
How to use it
write_module is exposed by the Maya MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the write_module tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Maya MCP Server
$
uvx maya-mcp-serverOther tools in Maya MCP Server (3)
add_session
Manually add a Maya session at a specific host:port. Use when auto-discovery doesn't find your session.
execute_code
Execute Python code in a session. Supports result capture modes: NONE, JSON, RAW.
list_sessions
List all active Maya sessions. Returns session info including sessionkey for use with other tools/resources.