MCP integration
The open-source mtlx CLI can serve local MaterialX tools over the Model Context Protocol (MCP) using stdio. Install mtlx-cli, then configure your MCP client to launch mtlx mcp:
{
"mcpServers": {
"mtlx": {
"command": "mtlx",
"args": ["mcp"]
}
}
}
The server exposes check_material, inspect_material, render_material, and edit_material. Rendering returns a PNG and needs Chrome, Edge, or a Playwright-installed Chromium on the machine. edit_material edits loose .mtlx files through the mtlx-core/session API and rejects invalid changes.
For Claude Code or the Codex CLI, the equivalent setup is:
claude mcp add mtlx -- mtlx mcp
codex mcp add mtlx -- mtlx mcp
These tools work on local files. Use the CLI or SDK for cloud upload, download, and search. See the MCP implementation in the open-source repository.