MCP server for working with Mantine UI components - provides documentation, generation, and theme utilities
npm install @hakxel/mantine-ui-serverA Model Context Protocol (MCP) server that provides tools for working with Mantine UI components.
``bashInstall globally
npm install -g @hakxel/mantine-ui-server
$3
`bash
npx @hakxel/mantine-ui-server
`Configuration
$3
Add the server configuration to your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json`json
{
"mcpServers": {
"mantine": {
"command": "npx",
"args": ["@hakxel/mantine-ui-server"],
"env": {
"MANTINE_VERSION": "7.16.2" // Optional: specify version
}
}
}
}
`$3
Add to your VSCode settings or Cline extension settings:
`json
{
"mcpServers": {
"mantine": {
"command": "npx",
"args": ["@hakxel/mantine-ui-server"],
"env": {
"MANTINE_VERSION": "7.16.2" // Optional: specify version
}
}
}
}
`Usage Examples
$3
`
get_component_docs(component: "Button", section: "props")
`Returns detailed documentation for the Button component, specifically its props.
$3
`
search_components(query: "input")
`Returns a list of all components matching the search query "input".
$3
`
generate_component(
name: "CustomButton",
mantineComponent: "Button",
props: {
size: "md",
variant: "filled"
},
styling: {
useModule: true
}
)
`Generates a new CustomButton component based on Mantine's Button.
$3
`
create_theme_config(
extension: "colors",
definitions: {
primary: ["#90CAF9", "#2196F3", "#1976D2"],
secondary: ["#CE93D8", "#9C27B0", "#7B1FA2"]
},
darkMode: true
)
`Creates a color palette theme configuration for light and dark modes.
Environment Variables
-
MANTINE_VERSION: Specify which version of Mantine to use for documentation (default: latest)
- CACHE_DOCS: Set to "false" to disable documentation caching
- CACHE_TTL: Documentation cache time-to-live in seconds
- CACHE_STORAGE: Storage method for cache ("memory" or "file")Development
`bash
Clone the repository
git clone https://github.com/hakxel/mantine-ui-server.git
cd mantine-ui-serverInstall dependencies
npm installBuild the server
npm run buildFor development with auto-rebuild
npm run watch
`$3
Since MCP servers communicate over stdio, you can use the MCP Inspector for debugging:
`bash
npm run inspector
``MIT