npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lucide-svg-mcp

v1.0.0

Published

MCP server for listing, searching and retrieving Lucide icons as SVG

Downloads

30

Readme

lucide-svg-mcp

An MCP server that provides Lucide icons as SVG.

This server lets MCP clients (for example Claude, Cline, or Codex) easily:

  • list all icons,
  • search icons by name or keywords,
  • retrieve the full SVG source of a specific icon.

Features

  • Uses icons from the lucide-static npm package.
  • Tools:
    • list_icons
    • search_icons
    • retrieve_icon
  • Built-in caching for faster performance:
    • icon name cache,
    • icon file path cache,
    • SVG content cache.
  • Verbose error messages when input is invalid or an icon cannot be resolved.
  • Covered by tests (vitest).

Requirements

  • Node.js 18+
  • npm

Running

The server uses stdio MCP transport, so your MCP client should launch it with:

npx -y lucide-svg-mcp@latest

Claude Code example

{
  "mcpServers": {
    "lucide-svg": {
      "command": "npx",
      "args": ["-y", "lucide-svg-mcp@latest"]
    }
  }
}

Cursor example

{
  "mcpServers": {
    "lucide-svg": {
      "command": "npx",
      "args": ["-y", "lucide-svg-mcp@latest"]
    }
  }
}

Codex-style TOML example:

[mcp_servers.lucide-svg]
command = "npx"
args = ["-y", "lucide-svg-mcp@latest"]

Available Tools

list_icons

Description: lists available Lucide icons with pagination.

Input:

  • limit (optional): max icons per page, default 100, max 1000
  • offset (optional): zero-based start index, default 0

Response includes pagination metadata:

  • total: total number of icons
  • count: icon count in this page
  • limit
  • offset
  • hasMore
  • nextOffset

search_icons

Description: searches Lucide icons by name or keywords.

Input:

  • query (required): search text

retrieve_icon

Description: retrieves the full SVG source for an icon.

Input:

  • name (required): icon name (for example alarm-clock)

Development

Run tests:

npm test

Run tests with coverage:

npm run test:coverage

Watch mode:

npm run test:watch

Project Structure

  • index.js: CLI bootstrap entrypoint.
  • src/server.js: MCP server creation and tool registration.
  • src/icons.js: icon logic, search, retrieve, caching.
  • tests/icons.unit.test.mjs: unit tests.
  • tests/server.integration.test.mjs: MCP server integration tests.
  • tests/index.bootstrap.test.mjs: CLI/bootstrap behavior tests.

License

  • Project: MIT
  • Lucide: ISC