// may the 4th be with you⚔️
developer-toolsdesign

Heroicons

by seeyangzhi

Search and use Heroicons easily in your React JS applications. Get usage examples, list icons, and enhance your React ic

Exposes the Heroicons library for searching, listing, and generating usage examples of icons in React applications

github stars

0

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

Complete Heroicons library accessGenerates ready-to-use React code

best for

  • / React developers building UIs
  • / Designers prototyping interfaces
  • / Frontend teams standardizing on Heroicons

capabilities

  • / Search Heroicons by name or category
  • / Generate React code examples for any icon
  • / List all available icons with style filtering
  • / Browse icons by outline, solid, or mini styles

what it does

Provides access to the complete Heroicons library, letting you search for icons and generate React code examples. No need to browse the website or remember icon names.

about

Heroicons is a community-built MCP server published by seeyangzhi that provides AI assistants with tools and capabilities via the Model Context Protocol. Search and use Heroicons easily in your React JS applications. Get usage examples, list icons, and enhance your React ic It is categorized under developer tools, design. This server exposes 3 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install Heroicons in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport. This server supports remote connections over HTTP, so no local installation is required.

license

MIT

Heroicons is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

heroicons-mcp

Ask DeepWiki

<a href="https://glama.ai/mcp/servers/@SeeYangZhi/heroicons-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@SeeYangZhi/heroicons-mcp/badge" /> </a>

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

What is Heroicons?

Heroicons is a popular library of hand-crafted SVG icons, designed by the makers of Tailwind CSS. The icons are available in multiple styles (Outline, Solid) and are easy to integrate into web projects.

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 Heroicons, enabling better assistance and icon search capabilities.

Features

  • Exposes Heroicons as MCP resources (Outline and Solid styles)
  • Provides tools for searching icons by name or keywords
  • Allows listing all icons or icons within a specific style
  • Ready for integration with Claude Desktop and other MCP clients
  • Can be run as an HTTP server or a stdio-based MCP server

Prerequisites

Getting Started (Development)

1. Clone the repository

git clone https://github.com/SeeYangZhi/heroicons-mcp.git
cd heroicons-mcp

2. Install Bun (if you don't have it)

Refer to the official Bun installation guide.
After installation, restart your terminal and check:

bun --version

3. Install dependencies

bun install

4. Build the project

This compiles the TypeScript source to JavaScript in the build directory.

bun run build

Usage

HTTP Mode

You can run the HTTP server using npx:

npx heroicons-mcp

This starts the HTTP server (defaults to port 3000, as defined in src/http.ts).

Or install globally:

npm install -g heroicons-mcp

Then run:

heroicons-mcp

Stdio Mode

npx heroicons-mcp --stdio
# or if installed globally
heroicons-mcp --stdio

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

This runs the server defined in src/entry.ts, which defaults to HTTP mode.

2. Stdio Mode

Often used for direct integration with tools like Claude Desktop or the MCP Inspector, communicating over standard input/output.

For development (using Bun):

bun run src/entry.ts --stdio

Configuration with AI Tools

Example: Claude Desktop

To use this MCP server in Claude Desktop:

  1. Open your Claude Desktop configuration file:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json

(Or use your preferred editor) 2. Add the server to the mcpServers section.

Option A: via npx:

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

Option B: Pointing directly to the build output (ensure you have built the project using bun run build):

{
  "mcpServers": {
    "heroicons": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/heroicons-mcp/build/entry.js", "--stdio"]
    }
  }
}

Replace /ABSOLUTE/PATH/TO/heroicons-mcp/build/entry.js with the actual absolute path to your built entry.js file.

  1. Save the file and restart Claude Desktop.
  2. You should now see the "heroicons" server available in Claude's tools panel.

Note: The npx heroicons-mcp --stdio command is the recommended way for stdio mode.

Tools Available (MCP)

This MCP server exposes the following tools to AI coding assistants:

  1. list_all_icons
  • Description: Lists all available Heroicons, optionally filtered by style (outline, solid).
  • Parameters: style (optional: "outline" | "solid")
  1. search_icons
  • Description: Searches for Heroicons by name or keywords across all styles.
  • Parameters: query (string), style (optional: "outline" | "solid")
  1. get_icon_usage_examples
  • Description: Retrieves JSX example usage for a specific icon.
  • Parameters: name (string), style (string: "outline" | "solid")

Example Usage

Here's how an AI tool might use this MCP server:

  1. User asks AI tool: "Find me a 'user' icon from Heroicons, preferably the solid style."
  2. AI tool calls search_icons:
  • query: "user"
  • style: "solid"
  1. MCP server responds with a list of matching solid Heroicons (e.g., UserIcon, UserCircleIcon, UserPlusIcon).
  2. User asks tool: "Show usage example of UserIcon".
  3. AI tool calls get_icon_usage_examples:
  • name: "UserIcon"
  • style: "solid"
  1. MCP server responds with the JSX code example:
import { UserIcon } from "@heroicons/react/24/solid";

function Example() {
  return (
    <div>
      <UserIcon className="w-6 h-6 text-blue-500" />
    </div>
  );
}

Testing MCP Locally with Inspector

You can test the MCP server (stdio mode) locally using the MCP Inspector.

First, ensure the project is built:

bun run build

Then launch the Inspector and connect it to your server using the node ./build/entry.js command with the --stdio flag:

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

This will open the Inspector interface, allowing you to interactively test resources and tools exposed by your MCP server.

Development Scripts

  • bun run dev: Starts the server in HTTP mode for development (uses src/entry.ts).
  • bun run dev:stdio: Starts the stdio MCP server for development (uses src/entry.ts --stdio).
  • bun run build: Compiles TypeScript to JavaScript (output in build/).
  • bun run lint: Lints the codebase using ESLint.

Resources

License

MIT

FAQ

What is the Heroicons MCP server?
Heroicons is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Heroicons?
This profile displays 39 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.6 out of 5—verify behavior in your own environment before production use.

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
MCP server reviews

Ratings

4.639 reviews
  • Ren White· Dec 24, 2024

    We wired Heroicons into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Dhruvi Jain· Dec 16, 2024

    According to our notes, Heroicons benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Isabella Sethi· Dec 8, 2024

    Heroicons has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Kofi Mehta· Dec 4, 2024

    According to our notes, Heroicons benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Ren Singh· Nov 27, 2024

    Heroicons is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Neel Yang· Nov 23, 2024

    We wired Heroicons into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Omar Mensah· Nov 15, 2024

    According to our notes, Heroicons benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Oshnikdeep· Nov 7, 2024

    We wired Heroicons into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Ganesh Mohane· Oct 26, 2024

    Heroicons is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Ren Anderson· Oct 18, 2024

    We wired Heroicons into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

showing 1-10 of 39

1 / 4