Better Icons

Developer tools

Skill and MCP server for searching and retrieving icons.

Your AI app calls the Better Icons MCP server, which does the work through tools like use_case and icons_file and sends the result back to the chat.

About Better Icons

Better Icons is a community MCP server from better-auth, filed in our directory under developer tools. Skill and MCP server for searching and retrieving icons.

The README for Better Icons lists tools such as query, limit, prefix and category, which your AI app can call once the server is connected.

At a glance

Publisher
better-auth (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
1,507

Tools Better Icons gives your AI app

  • query(required): Search query (e.g., 'arrow', 'home', 'user').
  • limit(optional): Maximum results (1-999, default: 32).
  • prefix(optional): Filter by collection (e.g., 'mdi', 'lucide').
  • category(optional): Filter by category.
  • icon_id(required): Icon ID in format 'prefix:name' (e.g., 'mdi:home').
  • color(optional): Icon color (e.g., '#ff0000', 'currentColor').
  • size(optional): Icon size in pixels.
  • format(optional): 'svg' (default) or 'url'.
  • search(optional): Search collections by name.
  • use_case(required): Describe what you need.
  • style(optional): 'solid', 'outline', or 'any'.
  • icon_ids(required): Array of icon IDs (max 20).
  • icons_file(required): Absolute path to the icons file.
  • framework(required): 'react', 'vue', 'svelte', 'solid', or 'svg'.
  • component_name(optional): Custom component name.

Tool names as the Better Icons README lists them. Your AI app shows the live list once Better Icons is connected.

How to set up Better Icons

  1. Follow the install steps in the Better Icons README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Better Icons README for keys or settings; the registry lists none that Better Icons requires.
  3. Add Better Icons to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Better Icons tools to confirm the connection.
  5. Run one read-only task with Better Icons first, such as a call to query, before you allow anything that writes or sends.

Better Icons compared with similar servers

  • obsei by obsei has fewer GitHub stars than Better Icons (1.5k against 1.5k); both are community servers, and both run locally.
  • Installer by anaisbetts has more GitHub stars than Better Icons (1.5k against 1.5k); both are community servers, and both run locally.
  • Xiaozhi Esp32 Server Java by joey-zhou has fewer GitHub stars than Better Icons (1.4k against 1.5k); both are community servers, and both run locally.

Before you connect Better Icons

  • Give Better Icons its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Better Icons tool call until you trust what it does with them.
  • Treat text that Better Icons fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Better Icons on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Better Icons

How marketing and sales teams put Better Icons to work, by company size. Pick the size closest to yours and start Better Icons on one use case.

Small business

  • A small business with a developer can use Better Icons to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Better Icons to explain and fix a marketing site issue without context switching between tools.
  • Better Icons runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Better Icons to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Better Icons to keep scripts and automations documented and versioned as they change.
  • Start with query and limit, the tools Better Icons lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise engineering teams can roll out Better Icons with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Better Icons so web and marketing engineering share one reviewed way of working with AI.
  • Better Icons is a community server, so have security review the code and pin a version before Better Icons touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Better Icons README

From better-auth/better-icons on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Better Icons

Search and retrieve 200,000+ icons from 150+ icon collections. Works as an MCP server for AI agents or CLI tool.

Quick Start

Add Skills

Enable the better-icons CLI features in your agent environment (matches all examples below):

npx skills add better-auth/better-icons
Direct CLI Installation

Alternatively, install the CLI globally for direct non-agent use:

# Using npm
npm install -g better-icons

# Using Bun (faster)
bun add -g better-icons
MCP Server (AI Agents)

Configure the MCP server to enable icon tools in your AI coding agents.

npx better-icons setup

This interactively configures the MCP server for:

  • Cursor
  • Claude Code
  • OpenCode
  • Windsurf
  • VS Code (Copilot)
  • Google Antigravity

Or configure manually.

CLI (Direct Usage)

Use the CLI to search and retrieve icons directly from your terminal.

# 1. Search for icons (finds icons across 150+ collections)
npx better-icons search arrow --limit 10
npx better-icons search home --prefix lucide

# 2. Get icon SVG (outputs raw code or saves to file)
npx better-icons get lucide:home > icon.svg
npx better-icons get mdi:account --color '#333' --size 24

# 3. JSON output for scripting
npx better-icons search settings --json | jq '.icons[:5]'
npx better-icons get heroicons:check --json

Why?

Icons are a common pain point in AI-assisted coding. Models often struggle to know which icons are available, generate correct SVG code, maintain consistent styles, and organize icons properly. Inline SVGs also consume unnecessary tokens.

Features

  • 200,000+ Icons - Search across 150+ icon collections (Lucide, Heroicons, Material Design, etc.)
  • Auto-Learning - Remembers which icon collections you use and prioritizes them in future searches
  • Project Sync - Icons are written directly to your icons file (.tsx, .ts, .js) instead of pasting SVG into chat (saves tokens!)
  • Batch Retrieval - Get multiple icons at once
  • Similar Icons - Find the same icon across different collections and styles
  • Recent Icons - Quick access to icons you've used before
  • Multi-Framework - React, Vue, Svelte, Solid, and raw SVG exports

Manual Installation

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "better-icons": {
      "command": "npx",
      "args": ["-y", "better-icons"]
    }
  }
}
Claude Code (CLI)

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "better-icons": {
      "command": "npx",
      "args": ["-y", "better-icons"]
    }
  }
}
Google Antigravity

Add to ~/.gemini/antigravity/mcp_config.json:

{
  "mcpServers": {
    "better-icons": {
      "command": "npx",
      "args": ["-y", "better-icons"]
    }
  }
}

MCP Tools

The following tools are available when using the MCP server with AI agents.

search_icons

Search for icons across 150+ icon collections.

Search for "arrow" icons
Search for "home" icons in the lucide collection

Parameters:

  • query (required): Search query (e.g., 'arrow', 'home', 'user')
  • limit (optional): Maximum results (1-999, default: 32)
  • prefix (optional): Filter by collection (e.g., 'mdi', 'lucide')
  • category (optional): Filter by category
get_icon

Get the SVG code for a specific icon with multiple usage formats.

Get the SVG for mdi:home
Get a URL for mdi:home
Get lucide:arrow-right with size 24

Parameters:

  • icon_id (required): Icon ID in format 'prefix:name' (e.g., 'mdi:home')
  • color (optional): Icon color (e.g., '#ff0000', 'currentColor')
  • size (optional): Icon size in pixels
  • format (optional): 'svg' (default) or 'url'

Returns:

  • Raw SVG code
  • React/JSX component code
  • Iconify component usage
  • Direct SVG URL (when format: "url")
list_collections

List available icon collections/libraries.

List all icon collections
Search for "material" collections

Parameters:

  • category (optional): Filter by category
  • search (optional): Search collections by name
recommend_icons

Get icon recommendations for a specific use case.

What icon should I use for a settings button?
Recommend icons for user authentication

Parameters:

  • use_case (required): Describe what you need
  • style (optional): 'solid', 'outline', or 'any'
  • limit (optional): Number of recommendations (1-20)
get_icon_preferences

View your learned icon collection preferences with usage statistics.

Show my icon preferences
What icon collections do I use most?
clear_icon_preferences

Reset all learned icon preferences to start fresh.

Clear my icon preferences
Reset icon preferences
find_similar_icons

Find similar icons or variations of a given icon across different collections and styles.

Find icons similar to lucide:home
What other arrow icons are there like mdi:arrow-right?

Parameters:

  • icon_id (required): Icon ID to find variations of
  • limit (optional): Maximum number of similar icons (1-50, default: 10)
get_icons

Get multiple icons at once (batch retrieval). More efficient than multiple get_icon calls.

Get these icons: lucide:home, lucide:settings, lucide:user

Parameters:

  • icon_ids (required): Array of icon IDs (max 20)
  • color (optional): Color for all icons
  • size (optional): Size in pixels for all icons
get_recent_icons

View your recently used icons for quick reuse.

Show my recent icons
What icons have I used recently?

Parameters:

  • limit (optional): Number of recent icons to show (1-50, default: 20)
sync_icon

Get an icon AND automatically add it to your project's icons file. The recommended way to add icons.

Sync the lucide:home icon to my project
Add a settings icon to my icons file

Parameters:

  • icons_file (required): Absolute path to the icons file
  • framework (required): 'react', 'vue', 'svelte', 'solid', or 'svg'
  • icon_id (required): Icon ID in format 'prefix:name'
  • component_name (optional): Custom component name
  • color (optional): Icon color
  • size (optional): Icon size in pixels

Returns:

  • Confirmation that icon was added (or already exists)
  • Import statement to use
  • Usage example
scan_project_icons

Scan an icons file to see what icons are already available.

What icons are already in my project?
Scan my icons file

Parameters:

  • icons_file (required): Absolute path to the icons file

Popular Icon Collections

Prefix Name Style Icons
mdi Material Design Icons Solid 7,000+
lucide Lucide Icons Outline 1,500+
heroicons Heroicons Both 300+
tabler Tabler Icons Outline 5,000+
ph Phosphor Icons Multiple 9,000+
ri Remix Icons Both 2,800+
fa6-solid Font Awesome 6 Solid 2,000+
simple-icons Simple Icons Logos 3,000+

CLI Reference

Search Icons

Search across 150+ icon collections.

better-icons search <query> [options]
Option Description
-p, --prefix <prefix> Filter by collection (e.g., lucide, mdi)
-l, --limit <number> Maximum results (default: 32)
--json Output as JSON for scripting
Get Icon

Retrieve a single icon's SVG code.

better-icons get <icon-id> [options]
Option Description
-c, --color <color> Icon color (e.g., #ff0000, currentColor)
-s, --size <pixels> Icon size in pixels
--json Output as JSON with metadata

The icon ID format is prefix:name (e.g., lucide:home, mdi:arrow-right).

Setup Commands
better-icons setup              # Interactive setup wizard
better-icons setup -y           # Auto-confirm (global scope)
better-icons setup -s project   # Setup for current project only
better-icons config             # Show manual config instructions
Option Description
-y, --yes Skip confirmation prompts
-a, --agent <agents...> Specify agents (cursor, claude-code, opencode, windsurf, vscode, antigravity)
-s, --scope <scope> Config scope: global (default) or project

Development

# Install dependencies
bun install

# Run locally
bun run dev

# Build
bun run build

License

MIT

Questions about Better Icons

What is the Better Icons MCP server?

Skill and MCP server for searching and retrieving icons. Better Icons is maintained by better-auth on GitHub at better-auth/better-icons, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Better Icons MCP server?

Better Icons doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (better-auth/better-icons). Like most servers, Better Icons ends with a command or URL you paste into your AI app's MCP config.

Does Better Icons need an API key?

The registry lists no required keys for Better Icons. Check the Better Icons README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Better Icons an official MCP server?

No. Better Icons is a community server maintained by better-auth. Community servers can be excellent; read the code and the open issues before you give Better Icons access to company data.

What license is Better Icons under?

Better Icons is released under the MIT license, according to its GitHub repository. The license covers the code of Better Icons; the service it connects to has its own terms.