Mantine UI MCP Server

Mantine UI MCP Server

用于处理 Mantine UI 组件的 MCP 服务器 - 提供文档、生成和主题实用程序

hakxel

开发者工具
访问服务器

README

Mantine UI MCP 服务器

一个模型上下文协议 (MCP) 服务器,提供用于处理 Mantine UI 组件的工具。

功能

文档工具

  • get_component_docs: 获取任何 Mantine 组件的详细文档
  • search_components: 通过关键字搜索 Mantine 组件
  • list_components: 列出所有可用的 Mantine 组件

组件生成

  • generate_component: 生成具有变体的自定义 Mantine 组件

主题实用工具

  • create_theme_config: 创建 Mantine 主题配置
  • create_component_theme: 创建组件特定的主题配置

安装

全局安装

# 全局安装
npm install -g @hakxel/mantine-ui-server

# 直接运行服务器
mantine-ui-server

使用 npx

npx @hakxel/mantine-ui-server

配置

对于 Claude Desktop

将服务器配置添加到您的 Claude Desktop 配置文件中:

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" // 可选:指定版本
      }
    }
  }
}

对于带有 Claude 扩展的 VS Code

添加到您的 VSCode 设置或 Cline 扩展设置:

{
  "mcpServers": {
    "mantine": {
      "command": "npx", 
      "args": ["@hakxel/mantine-ui-server"],
      "env": {
        "MANTINE_VERSION": "7.16.2" // 可选:指定版本
      }
    }
  }
}

使用示例

获取组件文档

get_component_docs(component: "Button", section: "props")

返回 Button 组件的详细文档,特别是其 props。

搜索组件

search_components(query: "input")

返回与搜索查询 "input" 匹配的所有组件的列表。

生成组件

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

基于 Mantine 的 Button 生成一个新的 CustomButton 组件。

创建主题配置

create_theme_config(
  extension: "colors",
  definitions: {
    primary: ["#90CAF9", "#2196F3", "#1976D2"],
    secondary: ["#CE93D8", "#9C27B0", "#7B1FA2"]
  },
  darkMode: true
)

为浅色和深色模式创建颜色调色板主题配置。

环境变量

  • MANTINE_VERSION: 指定用于文档的 Mantine 版本(默认:最新)
  • CACHE_DOCS: 设置为 "false" 以禁用文档缓存
  • CACHE_TTL: 文档缓存的生存时间(以秒为单位)
  • CACHE_STORAGE: 缓存的存储方法("memory" 或 "file")

开发

# 克隆存储库
git clone https://github.com/hakxel/mantine-ui-server.git
cd mantine-ui-server

# 安装依赖项
npm install

# 构建服务器
npm run build

# 用于自动重新构建的开发
npm run watch

调试

由于 MCP 服务器通过 stdio 进行通信,因此您可以使用 MCP Inspector 进行调试:

npm run inspector

许可证

MIT

推荐服务器

Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
MCP Package Docs Server

MCP Package Docs Server

促进大型语言模型高效访问和获取 Go、Python 和 NPM 包的结构化文档,通过多语言支持和性能优化来增强软件开发。

精选
本地
TypeScript
Claude Code MCP

Claude Code MCP

一个实现了 Claude Code 作为模型上下文协议(Model Context Protocol, MCP)服务器的方案,它可以通过标准化的 MCP 接口来使用 Claude 的软件工程能力(代码生成、编辑、审查和文件操作)。

精选
本地
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

用于任务管理的模型上下文协议服务器。它允许 Claude Desktop(或任何 MCP 客户端)在基于队列的系统中管理和执行任务。

精选
本地
JavaScript
mermaid-mcp-server

mermaid-mcp-server

一个模型上下文协议 (MCP) 服务器,用于将 Mermaid 图表转换为 PNG 图像。

精选
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP 服务器向 AI 编码助手(如 Cursor)提供 Jira 工单信息。

精选
TypeScript
Linear MCP Server

Linear MCP Server

一个模型上下文协议(Model Context Protocol)服务器,它与 Linear 的问题跟踪系统集成,允许大型语言模型(LLM)通过自然语言交互来创建、更新、搜索和评论 Linear 问题。

精选
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

这个服务器通过将复杂问题分解为顺序步骤来促进结构化的问题解决,支持修订,并通过完整的 MCP 集成来实现多条解决方案路径。

精选
Python
Curri MCP Server

Curri MCP Server

通过管理文本笔记、提供笔记创建工具以及使用结构化提示生成摘要,从而实现与 Curri API 的交互。

官方
本地
JavaScript