npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@fe-fast/varlet-mcp

v1.0.1

Published

A Model Context Protocol (MCP) server for Varlet UI, providing AI assistants with comprehensive access to Varlet UI documentation, component APIs, and development resources.

Readme

Varlet MCP Server

npm version License: MIT TypeScript

📖 Guides

🌟 Features

  • 🔍 Component API Access: Get detailed information about Varlet UI components, props, events, and slots.
  • 📚 Documentation Tools: Access installation guides, feature documentation, and best practices.
  • 🎯 Smart Prompts: Pre-built prompts for component usage, layout design, and troubleshooting.
  • 🚀 Performance Optimized: Built-in caching and efficient data retrieval.
  • 🌐 Multi-language Support: Support for internationalization.
  • 🔄 Version Management: Support for multiple Varlet UI versions.
  • 📱 Mobile First: Optimized for mobile development workflows.
  • 🛠️ Developer Experience: Rich tools and debugging features.

📦 Installation

Prerequisites

  • Node.js 18+
  • npm or pnpm
  • Claude Desktop or other MCP-compatible client

Install from npm (Recommended)

npm install -g @varlet/mcp

Install from Source

git clone https://github.com/varletjs/varlet-mcp.git
cd varlet-mcp
pnpm install
pnpm run build
npm link

Verify Installation

varlet-mcp-server --version

🚀 Usage

Integration with Claude Desktop

Add to your Claude Desktop configuration 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": {
    "varlet-ui": {
      "command": "varlet-mcp-server",
      "args": [],
      "env": {
        "VARLET_VERSION": "latest",
        "CACHE_TTL": "3600000"
      }
    }
  }
}

Integration with Other MCP Clients

Start the server directly:

varlet-mcp-server

Or use npx:

npx @varlet/mcp

Usage Examples in Claude

Once configured, you can ask Claude questions like:

  • "How do I use the Varlet Button component?"
  • "Show me the installation guide for Vite"
  • "What are the props for var-input?"
  • "Generate a mobile layout using Varlet components"
  • "Help me migrate from Element Plus to Varlet"

🛠️ Available Tools

API Tools

| Tool | Description | Parameters | |------|-------------|------------| | get_varlet_api_by_version | Downloads and caches Varlet API types | version (string) | | get_component_api_by_version | Gets detailed component API information | componentName, version | | get_directive_api_by_version | Gets directive API information | directiveName, version | | get_varlet_components_list | Gets a list of all available components | version |

Documentation Tools

| Tool | Description | Parameters | |------|-------------|------------| | get_installation_guide | Gets installation instructions | platform, ssr, fresh | | get_feature_guides | Gets a list of available features | - | | get_feature_guide | Gets a detailed feature guide | feature | | get_varlet_exports | Gets a list of package exports | - | | get_frequently_asked_questions | Gets the content of frequently asked questions | - | | get_release_notes_by_version | Gets release notes for a version | version | | get_varlet_playground_examples | Gets playground examples | component |

Smart Prompts

| Prompt | Description | Use Case | |--------|-------------|----------| | varlet_component_usage | Generates component usage examples | Learning component APIs | | varlet_layout_design | Generates layout design suggestions | Building application layouts | | varlet_migration_guide | Generates migration guides | Switching from other UI libraries | | varlet_troubleshooting | Generates troubleshooting guides | Debugging issues | | varlet_performance_optimization | Generates optimization guides | Improving application performance |

📚 Resources

The server provides several structured resources:

| Resource URI | Content Type | Description | |--------------|--------------|-------------| | varlet://api/components | application/json | A complete list of Varlet components, categorized | | varlet://api/directives | application/json | Available directives with usage examples | | varlet://api/utilities | application/json | Utility functions, services, and helpers | | varlet://examples/quick-start | text/markdown | A quick start guide with code examples |

Resource Example

// Access the component list
const components = await mcp.readResource('varlet://api/components')

// Get the quick start guide
const guide = await mcp.readResource('varlet://examples/quick-start')

🔧 Development

Setup

git clone https://github.com/varletjs/varlet-mcp.git
cd varlet-mcp
pnpm install

Development Mode

pnpm run dev

Build

pnpm run build

Testing

pnpm test

Linting

pnpm run lint
pnpm run lint:fix