mcpField
M
Mantine UI MCP Server

Mantine UI MCP Server

Local
github.com/hakxelDeveloper Tools17Updated 82w ago

About Mantine UI MCP Server

Mantine UI MCP Server gives Mantine UI developers tools for component documentation, generation, and theme configuration. It supports keyword-based component search and custom component generation.

Key features

  1. 01Retrieve component documentation
  2. 02Search components by keyword
  3. 03List available components
  4. 04Generate custom components
  5. 05Create theme configurations

Use cases

  1. 01Check props documentation for Button
  2. 02Find Mantine components by need
  3. 03Generate a component based on an existing one
  4. 04Configure color and component themes

MCP support

This MCP server exposes Mantine component documentation, search, generation, and theme configuration tools to MCP clients. The README describes setup with clients including Claude Desktop and VS Code.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"mantine-ui-server": {
"command": "npx",
"args": [
"-y",
"@hakxel/mantine-ui-server"
]
}
}
}
Run commandnpx -y @hakxel/mantine-ui-server

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@hakxel/mantine-ui-server

Tools

6

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
componentstringYesName of the Mantine component
sectionenumNoSection of documentation to retrieveprops | examples | api | all
forceRefreshbooleanNoForce refresh of documentation from source
formatenumNoFormat of returned documentationmarkdown | json

Details

From the project README

Mantine UI MCP Server

A Model Context Protocol (MCP) server that provides tools for working with Mantine UI components.

Features

Documentation Tools
  • get_component_docs: Get detailed documentation for any Mantine component
  • search_components: Search for Mantine components by keyword
  • list_components: List all available Mantine components
Component Generation
  • generate_component: Generate custom Mantine-based components with variants
Theme Utilities
  • create_theme_config: Create Mantine theme configurations
  • create_component_theme: Create component-specific theme configurations

Installation

Global Installation
# Install globally
npm install -g @hakxel/mantine-ui-server

# Run the server directly
mantine-ui-server
Using with npx
npx @hakxel/mantine-ui-server

Configuration

For Claude Desktop

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

{
  "mcpServers": {
    "mantine": {
      "command": "npx",
      "args": ["@hakxel/mantine-ui-server"],
      "env": {
        "MANTINE_VERSION": "7.16.2" // Optional: specify version
      }
    }
  }
}
For VS Code with Claude Extension

Add to your VSCode settings or Cline extension settings:

{
  "mcpServers": {
    "mantine": {
      "command": "npx", 
      "args": ["@hakxel/mantine-ui-server"],
      "env": {
        "MANTINE_VERSION": "7.16.2" // Optional: specify version
      }
    }
  }
}

Usage Examples

Get Component Documentation
get_component_docs(component: "Button", section: "props")

Returns detailed documentation for the Button component, specifically its props.

Search Components
search_components(query: "input")

Returns a list of all components matching the search query "input".

Generate a Component
generate_component(
  name: "CustomButton", 
  mantineComponent: "Button",
  props: {
    size: "md",
    variant: "filled"
  },
  styling: {
    useModule: true
  }
)

Generates a new CustomButton component based on Mantine's Button.

Create a Theme Configuration
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

# Clone the repository
git clone https://github.com/hakxel/mantine-ui-server.git
cd mantine-ui-server

# Install dependencies
npm install

# Build the server
npm run build

# For development with auto-rebuild
npm run watch
Debugging

Since MCP servers communicate over stdio, you can use the MCP Inspector for debugging:

npm run inspector

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.