mcp

v0.1.10
@mui/mcp Checked 2 hours ago Published 18 days ago

MUI MCP Server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

generateReactCode

generates React + Material UI code from a natural-language prompt (optionally grounded in a Figma frame). Returns the generated files plus a short explanation. Requires `MUI_RECIPES_API_KEY`. Pass `threadId` back on subsequent calls to keep multi-turn conversations on the same chat. Pass `muiPairing` to target a specific MUI / MUI X major.

ParameterTypeDescription
prompt *stringNatural-language brief for the codegen run.
designContextDesign tool context. Use the `figma` variant when the host has a Figma frame in scope; `opaque` is the escape hatch for other tools (Penpot, Sketch, screenshots).
modelstringOptional model override; otherwise the backend default.
muiPairingobjectTarget MUI / MUI X version pairing. Detect from the project's `package.json` (`@mui/material` and `@mui/x-data-grid` ranges) and pass accordingly. Omit to default to the latest stable pairing (current…
threadIdstringContinue an existing conversation. Must be owned by the caller. Omit to start a new thread.

fetchDocs

Fetch documentation for one or more URLs extracted from previous tool calls responses. The URLs should be passed as an array in the "urls" argument.

ParameterTypeDescription
urls *arrayThe list of URLs to fetch documentation from