Skip to main content
Glama
lucide-mcp

lucide-mcp

by joris-gallot

lucide-mcp

npm version CI license

MCP server for searching, retrieving, and adding Lucide SVG icons from AI coding agents.

Resources

  • lucide://icons/{name}.svg - read raw SVG markup for an icon, for example lucide://icons/panel-left.svg

Related MCP server: Svg/icons MCP

Tools

  • search_icons - search icons by exact, partial, and fuzzy name matching

  • get_icon_metadata - return tags, aliases, SVG path, and suggestions for an icon

  • get_icon_svg - return raw SVG markup for an icon

  • add_icon_to_project - write an SVG file into the current project

  • list_icons - list available Lucide icon names

Usage

{
  "mcpServers": {
    "lucide": {
      "command": "npx",
      "args": ["lucide-mcp"]
    }
  }
}

With a local checkout:

{
  "mcpServers": {
    "lucide": {
      "command": "node",
      "args": ["/path/to/lucide-mcp/dist/index.mjs"]
    }
  }
}

Examples

Search for sidebar icons:

search_icons({ "query": "sidebar", "limit": 5 })

Get icon metadata:

get_icon_metadata({ "name": "panel-left" })

Read SVG as a resource:

lucide://icons/panel-left.svg

Get raw SVG with a tool:

get_icon_svg({ "name": "panel-left" })

Get cleaned SVG markup:

get_icon_svg({
  "name": "panel-left",
  "stripLicense": true,
  "stripClass": true,
  "strokeWidth": 1.5
})

Add an icon to a project:

add_icon_to_project({
  "name": "panel-left",
  "outputDir": "assets/icons",
  "overwrite": false,
  "stripLicense": true,
  "stripClass": true
})

The default output directory is assets/icons. Existing files are not overwritten unless overwrite is set to true. Use stripLicense, stripClass, and strokeWidth to customize the generated SVG markup.

Agent behavior

Agents can use this server when they need an icon for a UI feature and the project does not already contain a suitable SVG. A good workflow is:

  1. Inspect existing project icons first.

  2. Search Lucide with a semantic query.

  3. Pick the best named icon.

  4. Add it to the project's icon directory.

  5. Use the SVG according to the project's conventions.

Development

pnpm install
pnpm test
pnpm build
pnpm typecheck

Run locally:

pnpm dev

License

MIT. Lucide icons are distributed by the Lucide project under the ISC license.

Available Tools

5 tools
add_icon_to_projectB

Add a Lucide SVG icon file to the current project.

Inputs: name (required), filename, outputDir, overwrite, +3 more.

get_icon_metadataA

Get Lucide icon metadata such as tags, aliases, local SVG path, and suggestions for unknown icons.

Inputs: name (required).

get_icon_svgA

Get the raw SVG markup for a Lucide icon by name.

Inputs: name (required), stripClass, strokeWidth, stripLicense.

list_iconsB

List all available Lucide icon names.

Inputs: limit, offset.

search_iconsA

Search Lucide icons by name using exact, partial, and fuzzy matching.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clear, distinct purpose: listing all icons, searching by name, retrieving metadata, retrieving SVG markup, and adding to a project. There is minimal overlap, and even list_icons vs search_icons are differentiated by exhaustive vs filtered retrieval.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (list, search, get, get, add). The naming is predictable and intuitive, making it easy for an agent to infer function from the name.

    Tool Count5/5

    With exactly 5 tools, the set is well-scoped for managing Lucide icons. Each tool covers a necessary operation without unnecessary bloat or duplication.

    Completeness5/5

    The tool surface covers the complete lifecycle for working with icons: discovery (list/search), inspection (metadata/svg), and integration (add to project). No obvious gaps exist for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Visual icon search, retrieval, and comparison for AI agents. Search 200k+ icons semantically, render side-by-side comparison grids, and retrieve raw SVG markup — all tools return images so vision-capable LLMs can see the icons.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI coding tools to search, inspect, recommend, and export SVG icons from svgicons.com for use in design systems, frontend projects, and AI-assisted workflows.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to search, retrieve, and save Nucleo icons from the user's local library directly into projects.
      13 npm
      9
      MIT