Labsco
SeeYangZhi logo

Lucide Icons

โ˜… 37

from SeeYangZhi

Provides access to the Lucide icon library for use in LLM and agentic applications.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

lucide-icons-mcp

A Model Context Protocol (MCP) server exposing Lucide React icons as resources and tools for LLMs and agentic applications. Built with Bun and the MCP TypeScript SDK.

What is Lucide?

Lucide is a beautiful & consistent icon toolkit made by the community. It's an open-source icon library that provides over 1,500+ carefully crafted icons in a single, consistent style. Originally forked from Feather Icons, Lucide has grown into one of the most popular icon libraries for modern web development.

What is MCP?

The Model Context Protocol (MCP) is a standard for AI tools to request specific context from sources outside their main training data.

This MCP server allows AI coding assistants and other agentic applications to access information about Lucide React icons, enabling better assistance with icon search, discovery, and implementation.

Features

  • ๐Ÿ” Icon Search: Search through 1,500+ Lucide icons by name or category
  • ๐Ÿ“‚ Category Browsing: List icons by categories (Design, Communication, Media, etc.)
  • ๐Ÿ’ก Usage Examples: Get React/JSX code examples for any icon
  • ๐Ÿ”ง Icon Information: Detailed information about each icon
  • ๐Ÿš€ MCP Integration: Ready for Claude Desktop and other MCP clients
  • ๐ŸŒ Dual Mode: HTTP server or stdio-based MCP server
  • ๐Ÿ“Š Comprehensive Coverage: All Lucide icons with proper JSX usage

Local Development

There are two main ways to run the MCP server:

1. HTTP Mode

Suitable for clients that support communication over HTTP.

For development (using Bun):

bun run start
# or directly
bun run src/entry.ts

2. Stdio Mode

Often used for direct integration with tools like Claude Desktop or the MCP Inspector.

For development (using Bun):

bun run src/entry.ts --stdio

Tools Available (MCP)

This MCP server exposes the following tools to AI coding assistants. Each icon can belong to multiple categories, providing flexible search and discovery capabilities.

1. search_icons

  • Description: Search for Lucide icons by name or category. Returns icons with their complete category arrays.
  • Parameters:
    • query (string): Search term for icon name or category
    • category (optional string): Filter by specific category
    • limit (optional number): Maximum results to return
  • Returns: Array of icons with name and categories (string array)

2. search_categories

  • Description: Search for icon categories by category name using partial matching
  • Parameters:
    • query (string): Search term for category name
    • limit (optional number): Maximum results to return
  • Returns: Array of categories with name and iconCount

3. fuzzy_search_icons

  • Description: Fuzzy Search for icons from lucide by icon name
  • Parameters:
    • query (string): Search term for icon
    • limit (optional number): Maximum results to return
  • Returns: Array of icons with name and categories (string array)

4. fuzzy_search_categories

  • Description: Fuzzy Search for icon categories by category name
  • Parameters:
    • query (string): Search term for category name
    • limit (optional number): Maximum results to return
  • Returns: Array of categories with name and iconCount (string array)

5. get_icon_usage_examples

  • Description: Get usage examples for a Lucide React icon by the exact name
  • Parameters:
    • name (string): Search term for icon
  • Returns: React/JSX usage examples for a specific Lucide icon

6. list_all_icons_by_category

  • Description: List all icons in a specific category
  • Parameters:
    • category (string): Category name to list icons for
    • limit (optional number): Maximum results to return

7. list_all_categories

  • Description: List all available icon categories with their icon counts

Icon Categories

Lucide icons are organized into categories such as:

  • Accessibility
  • Accounts & access
  • Animals
  • Arrows
  • Brands
  • Buildings
  • Charts
  • Communication
  • Connectivity
  • Cursors
  • Design
  • Coding & development
  • Devices
  • Emoji
  • File icons
  • Finance
  • Food & beverage
  • Gaming
  • Home
  • Layout
  • Mail
  • Mathematics
  • Medical
  • Multimedia
  • Nature
  • Navigation
  • Notification
  • People
  • Photography
  • Science
  • Seasons
  • Security
  • Shapes
  • Shopping
  • Social
  • Sports
  • Sustainability
  • Text formatting
  • Time & calendar
  • Tools
  • Transportation
  • Travel
  • Weather

Testing MCP Locally with Inspector

You can test the MCP server locally using the MCP Inspector.

First, ensure the project is built:

bun run build

Then launch the Inspector:

npx @modelcontextprotocol/inspector node ./build/entry.js --stdio

This opens the Inspector interface for interactive testing of your MCP server.

Development Scripts

  • bun run dev: Starts the server in HTTP mode for development
  • bun run dev:stdio: Starts the stdio MCP server for development
  • bun run build: Compiles TypeScript to JavaScript (output in build/)
  • bun run lint: Lints the codebase using ESLint
  • bun run lint:fix: Automatically fixes linting issues
  • bun run crawl: Crawls Lucide website to update icon data
  • bun run pre-build: Crawls data, builds icon metadata, and fixes linting

Data Sources

This project includes a web crawler that automatically extracts icon information from the Lucide website, ensuring up-to-date icon data and categories.

Resources