lucide-mcp

lucide-mcp

Enables AI coding agents to search, retrieve, and add Lucide SVG icons to projects.

Category
Visit Server

README

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

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured