home / skills / webrenew / unicon / unicon-mcp

unicon-mcp skill

/skills/unicon-mcp

This skill helps you configure and troubleshoot Unicon MCP server connections for Claude Desktop, Cursor, and other clients.

npx playbooks add skill webrenew/unicon --skill unicon-mcp

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
3.8 KB
---
name: unicon-mcp
description: Help users connect the Unicon MCP server to Claude Desktop, Cursor, and other MCP clients. Use when setting up MCP config, verifying installs, debugging MCP connection issues, or using Unicon tools for icon search and generation through AI assistants.
license: MIT
compatibility: Requires MCP-compatible client (Claude Desktop, Cursor, or similar)
metadata:
  author: webrenew
  version: "1.0.0"
  website: https://unicon.sh
  repository: https://github.com/WebRenew/unicon
---

# Unicon MCP

Use the Unicon MCP server to search and generate icon components through AI assistants like Claude Desktop and Cursor.

## Quick Start

### Claude Desktop

1. Open `~/Library/Application Support/Claude/claude_desktop_config.json`
2. Add:

```json
{
  "mcpServers": {
    "unicon": {
      "command": "npx",
      "args": ["-y", "@webrenew/unicon-mcp-server"]
    }
  }
}
```

3. Fully quit and restart Claude Desktop.

### Cursor

1. Open **Settings > MCP Servers**
2. Add the same JSON config shown above
3. Restart Cursor

## Verify Installation

- Claude Desktop: look for the plug icon, ensure `unicon` appears
- Cursor: run `claude mcp list` if using Claude Code

## Common Prompts

- "Search for dashboard icons in Lucide"
- "Get React component for lucide:arrow-right"
- "Generate Vue components for social media icons"
- "List available icon libraries"

## Available Tools

### search_icons

Search through 19,000+ icons with optional filters.

**Parameters**
| Parameter | Required | Description |
|-----------|----------|-------------|
| `query` | Yes | Search term |
| `source` | No | Filter by library |
| `category` | No | Filter by category |
| `limit` | No | Max results (default: 20) |
| `includeCode` | No | Return code with results |
| `strokeWidth` | No | Stroke width when includeCode=true |
| `normalizeStrokes` | No | Normalize stroke widths, skipping fill icons |

### get_icon

Return code for a single icon in a requested format.

**Parameters**
| Parameter | Required | Description |
|-----------|----------|-------------|
| `iconId` | Yes | Icon ID (e.g., "lucide:home") |
| `format` | No | svg, react, vue, svelte, json |
| `size` | No | Icon size in pixels |
| `strokeWidth` | No | Stroke width |
| `normalizeStrokes` | No | Normalize stroke widths, skipping fill icons |

### get_multiple_icons

Fetch up to 50 icons at once in a shared format.

**Parameters**
| Parameter | Required | Description |
|-----------|----------|-------------|
| `iconIds` | Yes | Array of icon IDs |
| `format` | No | Output format |
| `size` | No | Icon size in pixels |
| `strokeWidth` | No | Stroke width |
| `normalizeStrokes` | No | Normalize stroke widths, skipping fill icons |

### get_starter_pack

Get curated icon packs for common use cases.

**Parameters**
| Parameter | Required | Description |
|-----------|----------|-------------|
| `packId` | Yes | Pack identifier |
| `format` | No | Output format |
| `size` | No | Icon size in pixels |
| `strokeWidth` | No | Stroke width |
| `normalizeStrokes` | No | Normalize stroke widths, skipping fill icons |

## Resources

The MCP server exposes these resources:

| URI | Description |
|-----|-------------|
| `unicon://sources` | Library metadata (names, icon counts) |
| `unicon://categories` | Available category list |
| `unicon://stats` | Overall icon statistics |

## Troubleshooting

### Server not appearing

1. Fully quit the app (Cmd+Q on macOS)
2. Verify config JSON syntax is valid
3. Restart the application
4. Check for error logs

### Slow first start

The first `npx` run downloads the package. Subsequent runs use cache.

### Icons not found

Run `search_icons` with your query to verify the icon ID exists. Format is `source:name` (e.g., `lucide:home`).

### Connection errors

1. Ensure you have Node.js 18+ installed
2. Check internet connectivity
3. Try running manually: `npx @webrenew/unicon-mcp-server`

Overview

This skill helps you connect the Unicon MCP server to AI-assisted MCP clients like Claude Desktop and Cursor, enabling icon search and generation workflows. It walks through configuration, verification, and troubleshooting so assistants can fetch and return icon code (SVG, React, Vue, etc.). Use it to integrate the Unicon icon catalog into your assistant-driven UI tooling.

How this skill works

The skill explains how to add an MCP server entry that launches the Unicon MCP server via npx and how to restart the client so it discovers the service. It exposes actions to search across 19,000+ icons, request single or multiple icon components in various formats, and retrieve curated starter packs and metadata resources. It also includes verification steps and common troubleshooting tips for connection, installation, and missing-icon issues.

When to use it

  • Setting up MCP config in Claude Desktop, Cursor, or other MCP-capable clients
  • Verifying the Unicon MCP server appears and responds to queries
  • Debugging MCP connection errors or slow initial starts
  • Requesting icon code (SVG, React, Vue, Svelte) through an AI assistant
  • Batch-fetching multiple icons or a starter icon pack for a project

Best practices

  • Add the mcpServers entry exactly as shown and fully quit the client before restarting to ensure discovery
  • Confirm Node.js 18+ is installed locally when clients launch the MCP server via npx
  • Use search_icons to validate icon IDs (format: source:name) before requesting code
  • Set includeCode and format when you need ready-to-use components to avoid extra conversion steps
  • Cache common icon packs locally in your project to avoid repeated first-run downloads

Example use cases

  • Ask Claude to "Search for dashboard icons in Lucide" and get a result list with code snippets
  • Request a React component: get_icon with iconId lucide:arrow-right and format=react
  • Fetch a set of social icons: get_multiple_icons for an array of icon IDs and format=vue
  • Retrieve a starter pack for common UI patterns using get_starter_pack to bootstrap a design system
  • List available libraries and counts by requesting unicon://sources through the MCP client

FAQ

How do I confirm the MCP server is installed and visible?

Look for the plug icon in Claude Desktop or run claude mcp list in Cursor; ensure the unicon entry appears.

Why is the server slow the first time?

The first npx run downloads the package; subsequent runs are faster because the package is cached.

What if an icon cannot be found?

Run search_icons with your query to verify the icon ID and use the format source:name (e.g., lucide:home).

How do I debug connection errors?

Ensure Node.js 18+ is installed, verify internet access, check the client config JSON for syntax errors, and try running npx @webrenew/unicon-mcp-server manually to view logs.