New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

mozaic-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mozaic-mcp-server

Self-contained Claude Code skills for Mozaic Design System by ADEO

latest
Source
npmnpm
Version
2.8.1
Version published
Weekly downloads
16
-63.64%
Maintainers
1
Weekly downloads
 
Created
Source

Mozaic MCP Server

npm version npm downloads License: MIT Documentation

Self-contained Claude Code skills and MCP server for the Mozaic Design System by ADEO.

📚 Documentation • 🎮 MCP Playground • 🌐 Website

Overview

This package provides two complementary tools for working with the Mozaic Design System in AI assistants:

  • 🤖 Claude Code Skills - 7 interactive skills for guided component building and design token usage
  • 🔌 MCP Server - Model Context Protocol server with 17 tools for programmatic access to Mozaic resources

HTTP API

Public MCP server available at https://mozaic-mcp.m14i.com

Endpoints:

  • GET /health - Health check
  • POST /mcp/list-tools - List available tools
  • POST /mcp/call-tool - Call a specific tool
  • GET /api - Swagger documentation

Authentication: Bearer token required. Contact me on Slack for access.

Example:

curl -X POST https://mozaic-mcp.m14i.com/mcp/list-tools \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"
Example Response (17 MCP Tools)
{
  "tools": [
    {
      "name": "get_design_tokens",
      "description": "Get Mozaic design tokens with CSS/SCSS variables. Categories: colors (brand, semantic, component), typography (font sizes, weights, line heights), spacing (magic unit scale), shadows, borders, screens (breakpoints), grid (gutters)."
    },
    {
      "name": "get_component_info",
      "description": "Get Vue/React component details: props (types, defaults, required), slots, events, and code examples."
    },
    {
      "name": "list_components",
      "description": "List Mozaic Vue/React components by category."
    },
    {
      "name": "generate_vue_component",
      "description": "Generate ready-to-use Vue 3 code with Mozaic components (@mozaic-ds/vue-3)."
    },
    {
      "name": "generate_react_component",
      "description": "Generate ready-to-use React/TSX code with Mozaic components (@mozaic-ds/react)."
    },
    {
      "name": "search_documentation",
      "description": "Search Mozaic Design System documentation for installation guides, component usage, configuration, styling, tokens, patterns, and best practices."
    },
    {
      "name": "get_css_utility",
      "description": "Get CSS utility classes and examples for Mozaic layout and spacing utilities."
    },
    {
      "name": "list_css_utilities",
      "description": "List Mozaic CSS-only utilities (no framework needed)."
    },
    {
      "name": "search_icons",
      "description": "Search Mozaic Design System icons by name or type."
    },
    {
      "name": "get_icon",
      "description": "Get a specific Mozaic icon by name with SVG markup and ready-to-use code for React/Vue."
    },
    {
      "name": "get_install_info",
      "description": "Get installation commands and import statements for a Mozaic component."
    },
    {
      "name": "generate_webcomponent",
      "description": "Generate ready-to-use Web Component code using Mozaic Design System (@adeo/mozaic-web-components)."
    },
    {
      "name": "get_webcomponent_info",
      "description": "Get detailed information about a Mozaic Web Component including attributes, slots, events, CSS custom properties, and usage examples."
    },
    {
      "name": "list_webcomponents",
      "description": "List available Mozaic Web Components by category."
    },
    {
      "name": "generate_freemarker",
      "description": "Generate ready-to-use Freemarker macro code with import statements and configuration examples for Mozaic components."
    },
    {
      "name": "get_freemarker_info",
      "description": "Get detailed information about a Freemarker component including configuration options, CSS classes, and usage examples."
    },
    {
      "name": "list_freemarker",
      "description": "List available Mozaic Freemarker macros by category."
    }
  ]
}

What's Included

Resource TypeCountDescription
Design Tokens586Colors, typography, spacing, shadows, borders, breakpoints
Components131+Vue 3, React, Web Components, and Freemarker macros with full documentation
Icons1,473SVG icons across 15 categories
CSS Utilities6Flexy grid, Container, Margin, Padding, Ratio, Scroll
Documentation281Searchable usage guides and best practices
MCP Tools17Programmatic access to all resources
Claude Skills7Interactive workflows for Vue, React, Web Components, Freemarker, and agnostic use

Quick Start

npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools

Use arrow keys and space to select components, then press Enter to install.

One-Command Installation

# Install everything (skills + MCP server)
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools all

# Install only skills (for Claude Code)
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools skills

# Install only MCP server (for Claude Desktop)
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools mcp

Check Installation Status

npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools list

Try Before Installing

Test the MCP tools directly in your browser without installation:

🎮 Open MCP Playground

The playground lets you:

  • Test all 11 MCP tools interactively
  • Browse components, tokens, and icons
  • Generate code snippets
  • Search documentation

Claude Code Skills

6 self-contained skills that provide interactive workflows for building with Mozaic.

Available Skills

SkillDescriptionUse Case
mozaic-vue-builderInteractive Vue 3 component generatorBuilding Vue apps with Mozaic
mozaic-react-builderInteractive React/TSX component generatorBuilding React apps with Mozaic
mozaic-webcomponents-builderInteractive Web Components generatorBuilding framework-agnostic apps with native web components
mozaic-freemarker-builderInteractive Freemarker macro generatorBuilding server-side templates with Freemarker
mozaic-design-tokensDesign tokens and styling expertAccessing colors, typography, spacing
mozaic-css-utilitiesCSS utility classes and layoutsBuilding responsive layouts
mozaic-iconsIcon search and integrationFinding and using Mozaic icons

How Skills Work

Skills are activated automatically in Claude Code based on context, or you can invoke them manually:

User: "I need a login form with Mozaic"

Claude Code will automatically activate the appropriate skill (Vue or React builder) and guide you through:

  • Component selection
  • Props configuration
  • Code generation
  • Installation instructions

See SKILLS.md for detailed documentation.

MCP Server Tools

17 programmatic tools for accessing Mozaic resources via the Model Context Protocol.

Available Tools

ToolCategoryDescription
get_design_tokensTokensQuery tokens by category (colors, typography, spacing, etc.)
get_component_infoComponentsGet component props, slots, events, and documentation
list_componentsComponentsList components by category or framework
generate_vue_componentCode GenGenerate Vue 3 SFC code with props
generate_react_componentCode GenGenerate React/TSX code with TypeScript
generate_webcomponentCode GenGenerate native Web Component HTML with imports
get_webcomponent_infoWeb ComponentsGet attributes, slots, events, CSS properties
list_webcomponentsWeb ComponentsList web components by category
generate_freemarkerCode GenGenerate Freemarker macro code with configuration
get_freemarker_infoFreemarkerGet macro configuration options and usage
list_freemarkerFreemarkerList Freemarker macros by category
search_documentationDocsFull-text search across 281 documentation pages
get_css_utilityCSSGet CSS utility classes and examples
list_css_utilitiesCSSList available CSS utilities
search_iconsIconsSearch 1,473 icons by name, type, or category
get_iconIconsGet icon SVG and framework code
get_install_infoInstallGet npm/yarn/pnpm installation commands

Configuration

Add to your Claude Code or Claude Desktop settings:

For Claude Code (in .claude/settings.json):

{
  "mcpServers": {
    "mozaic": {
      "command": "npx",
      "args": ["-y", "mozaic-mcp-server"]
    }
  }
}

For Claude Desktop (in ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "mozaic": {
      "command": "npx",
      "args": ["-y", "mozaic-mcp-server"]
    }
  }
}

Usage Examples

Using Skills in Claude Code

Skills activate automatically based on your request:

You: "I need a responsive grid with 3 columns"
Claude: [activates mozaic-css-utilities skill]
        Here's the Flexy grid solution...
You: "Add a shopping cart icon"
Claude: [activates mozaic-icons skill]
        I found these cart icons...

Using MCP Tools Programmatically

When configured, Claude can use MCP tools directly:

You: "What design tokens are available?"
Claude: [calls get_design_tokens tool]
        Found 586 tokens across 7 categories...
You: "Generate a React button component"
Claude: [calls get_component_info, then generate_react_component]
        Here's your Button component with TypeScript...

CLI Commands

The adeo-mozaic-install-tools CLI provides several commands:

# Interactive mode (default)
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools

# Install all components
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools all

# Install skills only
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools skills

# Install MCP server only
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools mcp

# Check status
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools list

# Remove components
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools remove skills
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools remove mcp
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools remove all

# Show help
npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools --help

Architecture

┌─────────────────────────────────────┐
│   Claude Code / Claude Desktop      │
│                                     │
│   ┌─────────────┐  ┌─────────────┐ │
│   │   Skills    │  │ MCP Server  │ │
│   │  (5 total)  │  │ (11 tools)  │ │
│   └─────────────┘  └─────────────┘ │
│          │                │         │
└──────────┼────────────────┼─────────┘
           │                │
           ▼                ▼
    ┌──────────────────────────┐
    │  Shell Scripts (14)      │
    │  ↓ sqlite3 queries       │
    └──────────────────────────┘
               ▼
    ┌──────────────────────────┐
    │  SQLite Database         │
    │  ~/.claude/mozaic.db     │
    │                          │
    │  • 586 tokens            │
    │  • 91 components         │
    │  • 1,473 icons           │
    │  • 281 docs              │
    └──────────────────────────┘

File Locations

After installation:

~/.claude/
├── mozaic.db                      # SQLite database (all Mozaic data)
├── skills/                        # Claude Code skills
│   ├── mozaic-vue-builder/
│   ├── mozaic-react-builder/
│   ├── mozaic-design-tokens/
│   ├── mozaic-css-utilities/
│   └── mozaic-icons/
└── (Claude Code settings.json)    # MCP server config

~/Library/Application Support/Claude/
└── claude_desktop_config.json     # Claude Desktop MCP config

Development

Prerequisites

  • Node.js ≥25.2.0
  • pnpm (recommended)

Setup

# Clone the repository
git clone https://github.com/MerzoukeMansouri/adeo-mozaic-mcp.git
cd mozaic-mcp-server

# Install dependencies
pnpm install

# Build the project (compiles TypeScript + builds database)
pnpm build

# Run tests
pnpm test

# Start MCP server in debug mode
pnpm start:debug

Project Structure

mozaic-mcp-server/
├── src/                    # TypeScript source code
│   ├── index.ts           # MCP server entry point
│   ├── tools/             # MCP tool implementations
│   └── database/          # Database utilities
├── skills/                # Claude Code skills
│   ├── mozaic-vue-builder/
│   │   ├── skill.md       # Skill instructions
│   │   └── scripts/       # Shell scripts (4)
│   └── ...                # Other skills
├── scripts/               # Build and utility scripts
│   ├── build-index.ts     # Database builder
│   └── generate-docs.ts   # Documentation generator
├── data/                  # Generated database
│   └── mozaic.db
├── repos/                 # Mozaic Design System repositories (git submodules)
│   ├── mozaic-design-system/
│   ├── mozaic-vue/
│   └── mozaic-react/
├── bin/                   # CLI entry points
│   └── install.js         # Installation CLI
└── website/               # Documentation website

Building the Database

The SQLite database is built from the Mozaic Design System repositories:

# Update submodules
git submodule update --init --recursive

# Build database
pnpm build

This indexes:

  • Design tokens from mozaic-design-system/packages/tokens
  • Components from mozaic-vue and mozaic-react
  • Icons from mozaic-design-system/packages/icons
  • Documentation from all repositories

Contributing

Contributions are welcome! Please follow these guidelines:

  • Fork the repository
  • Create a feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes using Conventional Commits
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

Commit Convention

We use semantic versioning with conventional commits:

  • feat: - New feature (minor version bump)
  • fix: - Bug fix (patch version bump)
  • feat!: or BREAKING CHANGE: - Breaking change (major version bump)
  • chore:, docs:, style:, refactor:, test: - No version bump

Resources

Documentation & Tools

License

MIT License - see LICENSE file for details.

Support

For issues or questions:

Built with ❤️ for the ADEO community

Mozaic Design System is maintained by ADEO

Keywords

mcp

FAQs

Package last updated on 02 Jul 2026

Related posts