
Better Icons
Search 200+ Iconify libraries and fetch SVG icons via CLI or MCP instead of hand-picking assets or guessing icon IDs.
Overview
Better-icons is an agent skill for the Build phase that searches 200+ Iconify libraries and retrieves icon SVGs through CLI commands or an MCP server.
Install
npx skills add https://github.com/better-auth/better-icons --skill better-iconsWhat is this skill?
- CLI search across 200+ icon libraries via Iconify (`better-icons search`, `better-icons get`)
- Batch download search results as SVG with optional color and size flags
- Documented global install (npm/bun) or npx/bunx for agent-friendly PATH usage
- Also ships as an MCP server for agent-driven icon lookup
Adoption & trust: 3.1k installs on skills.sh; 1.1k GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You need the right icon fast but waste time browsing sites or hard-coding unknown Iconify IDs into your UI.
Who is it for?
Frontend passes on SaaS dashboards, marketing sites, or apps where Iconify-style IDs and quick SVG export beat manual asset hunting.
Skip if: Projects that ban external icon CDNs or require a single proprietary icon font with no CLI in the environment.
When should I use this skill?
When working with icons in any project—search Iconify catalogs and retrieve SVGs via CLI or MCP.
What do I get? / Deliverables
Named icon SVGs are searched, retrieved, and saved into your project with repeatable CLI or MCP commands.
- Icon SVG files or stdout SVG snippets
- Resolved Iconify icon IDs for use in components
Recommended Skills
Journey fit
How it compares
CLI/MCP icon retrieval from Iconify—not a Figma plugin or a full component design system.
Common Questions / FAQ
Who is better-icons for?
Solo developers and agent users wiring UIs in any stack who want searchable Iconify icons from the terminal or MCP.
When should I use better-icons?
During Build frontend when adding icons to components, docs, or apps; when an agent needs to resolve icon IDs before editing JSX or Vue templates.
Is better-icons safe to install?
It runs a third-party CLI that may use the network to reach Iconify; review the Security Audits panel on this Prism page and prefer pinned npm versions in CI.
SKILL.md
READMESKILL.md - Better Icons
# Better Icons Search and retrieve icons from 200+ libraries via Iconify. ## Installation Before using any `better-icons` commands, ensure the tool is available in the environment. **Option 1 — Install globally (recommended, matches all examples below):** ```bash # Using npm npm install -g better-icons # Using Bun (faster) bun add -g better-icons ``` **Option 2 — Run without installing (prefix every command with `npx` or `bunx`):** ```bash # Using npx (npm) npx better-icons search arrow --limit 10 npx better-icons get lucide:home > icon.svg # Using bunx (Bun — faster) bunx better-icons search arrow --limit 10 bunx better-icons get lucide:home > icon.svg ``` > **For AI agents:** Prefer the global install so that `better-icons` is on `$PATH` and the commands below work as-is. Run the install step once during environment setup, then use the commands without `npx`/`bunx`. ## CLI ```bash # Search icons better-icons search <query> [--prefix <prefix>] [--limit <n>] [--json] # Search and download all found icons as SVG files better-icons search <query> -d [dir] [--color <color>] [--size <px>] # Get icon SVG (outputs to stdout) better-icons get <icon-id> [--color <color>] [--size <px>] [--json] # Setup MCP server for AI agents better-icons setup [-a cursor,claude-code] [-s global|project] ``` ## Examples ```bash better-icons search arrow --limit 10 better-icons search home --json | jq '.icons[0]' better-icons get lucide:home > icon.svg better-icons get mdi:home --color '#333' --json # Batch download all search results better-icons search arrow -d # saves to ./icons/ better-icons search check -d ./my-icons # saves to ./my-icons/ better-icons search star -d -c '#000' -s 24 --limit 64 ``` ## Icon ID Format `prefix:name` - e.g., `lucide:home`, `mdi:arrow-right`, `heroicons:check` ## Popular Collections `lucide`, `mdi`, `heroicons`, `tabler`, `ph`, `ri`, `solar`, `iconamoon` --- ## MCP Tools (for AI agents) | Tool | Description | |------|-------------| | `search_icons` | Search across all libraries | | `get_icon` | Get single icon SVG | | `get_icons` | Batch retrieve multiple icons | | `list_collections` | Browse available icon sets | | `recommend_icons` | Smart recommendations for use cases | | `find_similar_icons` | Find variations across collections | | `sync_icon` | Add icon to project file | | `scan_project_icons` | List icons in project | ## TypeScript Interfaces ```typescript interface SearchIcons { query: string limit?: number // 1-999, default 32 prefix?: string // e.g., 'mdi', 'lucide' category?: string // e.g., 'General', 'Emoji' } interface GetIcon { icon_id: string // 'prefix:name' format color?: string // e.g., '#ff0000', 'currentColor' size?: number // pixels } interface GetIcons { icon_ids: string[] // max 20 color?: string size?: number } interface RecommendIcons { use_case: string // e.g., 'navigation menu' style?: 'solid' | 'outline' | 'any' limit?: number // default 10 } interface SyncIcon { icons_file: string // absolute path framework: 'react' | 'vue' | 'svelte' | 'solid' | 'svg' icon_id: string component_name?: string } ``` ## API All icons from `https://api.iconify.design`