@maz-ui/mcp
v4.3.2
Published
Maz-UI ModelContextProtocol Client
Maintainers
Readme
Maz-UI MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to the Maz-UI component library documentation. This server enables AI agents to help developers with Vue.js/Nuxt.js component implementation, usage examples, and best practices.
Features
- 50+ Vue Components - Complete documentation for all Maz-UI components
- 11 Comprehensive Guides - Installation, theming, dark mode, and framework-specific guides
- 14 Vue Composables - Reusable composition functions with usage examples
- 5 Vue Directives - Custom directives for enhanced functionality
- 4 Vue Plugins - Toast, dialog, AOS animations, and wait overlay plugins
- 20+ Utility Helpers - Date formatting, currency handling, string manipulation, and more
- Real-time Search - Smart search across all documentation types
- TypeScript Support - Full type safety and IntelliSense integration
AI Assistant Configuration
Claude Code
Run the following command:
claude mcp add maz-ui npx @maz-ui/mcp --scope (project | local | user)Will add the following to your
~/.mcp.json(for project scope):{ "mcpServers": { "maz-ui": { "type": "stdio", "command": "npx", "args": ["@maz-ui/mcp"] } } }Restart Claude code to apply the new configuration.
Claude Desktop
Open Claude desktop and navigate to Settings.
Under the Developer tab, tap Edit Config to open the configuration file.
Add the following configuration:
{ "mcpServers": { "maz-ui": { "type": "stdio", "command": "npx", "args": ["@maz-ui/mcp"] } } }Save the configuration file and restart Claude desktop.
From the new chat screen, you should see a hammer (MCP) icon appear with the new MCP server available.
Cursor IDE
Open Cursor and create a .cursor directory in your project root if it doesn't exist.
Create a .cursor/mcp.json file if it doesn't exist and open it.
Add the following configuration:
{ "mcpServers": { "maz-ui": { "command": "npx", "args": ["@maz-ui/mcp"] } } }Save the configuration file.
Open Cursor and navigate to Settings/MCP. You should see a green active status after the server is successfully connected.
Windsurf
Open Windsurf and navigate to the Cascade assistant.
Tap on the hammer (MCP) icon, then Configure to open the configuration file.
Add the following configuration:
{ "mcpServers": { "maz-ui": { "command": "npx", "args": ["@maz-ui/mcp"] } } }Save the configuration file and reload by tapping Refresh in the Cascade assistant.
You should see a green active status after the server is successfully connected.
Visual Studio Code (Copilot)
Open VS Code and create a .vscode directory in your project root if it doesn't exist.
Create a .vscode/mcp.json file if it doesn't exist and open it.
Add the following configuration:
{ "servers": { "maz-ui": { "command": "npx", "args": ["@maz-ui/mcp"] } } }Save the configuration file.
Open Copilot chat and switch to "Agent" mode. You should see a tool icon that you can tap to confirm the MCP tools are available. Once you begin using the server, you will be prompted to enter your personal access token. Enter the token that you created earlier.
Cline
Open the Cline extension in VS Code and tap the MCP Servers icon.
Tap Configure MCP Servers to open the configuration file.
Add the following configuration:
{ "mcpServers": { "maz-ui": { "command": "npx", "args": ["@maz-ui/mcp"] } } }Save the configuration file. Cline should automatically reload the configuration.
You should see a green active status after the server is successfully connected.
Available Tools
The MCP server provides the following tools that AI assistants can use:
get_getting_started- Get the getting started guidelist_all_components- Get a complete list of available componentslist_guides- List all installation and usage guideslist_composables- List all Vue composableslist_directives- List all Vue directiveslist_plugins- List all Vue pluginslist_helpers- List all utility helpers
Available Resources
The server exposes documentation through MCP resources with the following URI patterns:
Core Resources
maz-ui://overview- Complete library overview and introductionmaz-ui://component/{ComponentName}- Individual component documentation- Examples:
maz-ui://component/MazBtn,maz-ui://component/MazInput
- Examples:
maz-ui://guide/{guideName}- Setup and usage guides- Examples:
maz-ui://guide/getting-started,maz-ui://guide/vue,maz-ui://guide/nuxt
- Examples:
maz-ui://composable/{composableName}- Vue composable documentation- Examples:
maz-ui://composable/use-toast,maz-ui://composable/use-dialog
- Examples:
maz-ui://directive/{directiveName}- Vue directive documentation- Examples:
maz-ui://directive/tooltip,maz-ui://directive/click-outside
- Examples:
maz-ui://plugin/{pluginName}- Vue plugin documentation- Examples:
maz-ui://plugin/toast,maz-ui://plugin/dialog
- Examples:
maz-ui://helper/{helperName}- Utility helper documentation- Examples:
maz-ui://helper/currency,maz-ui://helper/date
- Examples:
Development
Server Architecture
The MCP server is built with:
- TypeScript - Full type safety
- STDIO Transport - MCP 2025 specification compliance
- Custom DocumentationService - Combines manual and generated docs
Running Tests
pnpm test:unitType Checking
pnpm typecheckDebugging with MCP Inspector
Install the MCP Inspector:
npm install -g @modelcontextprotocol/inspectorStart the server:
pnpm devRun the inspector:
pnpm dev:inspectorConfigure
- Transport Type:
STDIO - Command:
tsx - Args:
src/mcp.ts
- Transport Type:
License
This project is licensed under the MIT License - see the main Maz-UI repository for details.
Support
- Documentation: https://maz-ui.com
- Issues: GitHub Issues
