heroicons-mcp
ヒロイコンズ-MCP
Heroicons をLLM およびエージェントアプリケーションのリソースおよびツールとして公開するModel Context Protocol (MCP)サーバー。Bun と MCP TypeScript SDK を使用して構築されています。
Heroicons とは何ですか?
Heroiconsは、Tailwind CSSの開発者によってデザインされた、手作りのSVGアイコンの人気ライブラリです。アイコンは複数のスタイル(アウトライン、ソリッド)で提供されており、Webプロジェクトに簡単に統合できます。
Related MCP server: SupaUI MCP Server
MCPとは何ですか?
モデル コンテキスト プロトコル (MCP)は、AI ツールがメインのトレーニング データ以外のソースから特定のコンテキストを要求するための標準です。
この MCP サーバーにより、AI コーディング アシスタントやその他のエージェント アプリケーションが Heroicons に関する情報にアクセスできるようになり、より優れた支援機能とアイコン検索機能が実現します。
特徴
Heroicons を MCP リソースとして公開します (アウトラインとソリッド スタイル)
名前やキーワードでアイコンを検索するためのツールを提供します
すべてのアイコンまたは特定のスタイル内のアイコンを一覧表示できます
Claude Desktop およびその他の MCP クライアントとの統合が可能
HTTPサーバーまたはstdioベースのMCPサーバーとして実行できます
前提条件
はじめに(開発)
1. リポジトリをクローンする
git clone https://github.com/SeeYangZhi/heroicons-mcp.git
cd heroicons-mcp2. Bunをインストールする(インストールされていない場合)
公式のBun インストール ガイドを参照してください。
インストール後、ターミナルを再起動して以下を確認します。
bun --version3. 依存関係をインストールする
bun install4. プロジェクトをビルドする
これにより、TypeScript ソースがbuildディレクトリ内の JavaScript にコンパイルされます。
bun run build使用法
HTTPモード
npxを使用して HTTP サーバーを実行できます。
npx heroicons-mcpこれにより、HTTP サーバーが起動します (デフォルトでは、 src/http.tsで定義されているポート 3000 になります)。
またはグローバルにインストールします:
npm install -g heroicons-mcp次に以下を実行します:
heroicons-mcp標準モード
npx heroicons-mcp --stdio
# or if installed globally
heroicons-mcp --stdio地域開発
MCP サーバーを実行するには、主に 2 つの方法があります。
1. HTTPモード
HTTP 経由の通信をサポートするクライアントに適しています。
開発の場合(Bunを使用):
bun run start
# or directly
bun run src/entry.tsこれは、 src/entry.tsで定義されたサーバーを実行します。デフォルトでは HTTP モードになります。
2. 標準モード
多くの場合、標準入出力を介して通信し、Claude Desktop や MCP Inspector などのツールと直接統合するために使用されます。
開発の場合(Bunを使用):
bun run src/entry.ts --stdioAIツールによる構成
例: クロードデスクトップ
Claude Desktopでこの MCP サーバーを使用するには:
Claude Desktop 構成ファイルを開きます。
code ~/Library/Application\ Support/Claude/claude_desktop_config.json(または、お好みのエディターを使用します) 2. サーバーをmcpServersセクションに追加します。
オプションA: npx経由:
{
"mcpServers": {
"heroicons": {
"command": "npx",
"args": ["heroicons-mcp", "--stdio"]
}
}
}オプション B: ビルド出力を直接ポイントする ( bun run buildを使用してプロジェクトをビルドしたことを確認してください):
{
"mcpServers": {
"heroicons": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/heroicons-mcp/build/entry.js", "--stdio"]
}
}
}/ABSOLUTE/PATH/TO/heroicons-mcp/build/entry.jsを、ビルドしたentry.jsファイルへの実際の絶対パスに置き換えます。
ファイルを保存し、Claude Desktop を再起動します。
これで、Claude のツール パネルに「heroicons」サーバーが表示されるはずです。
注: stdio モードでnpx heroicons-mcp --stdioコマンドの使用が推奨されます。
利用可能なツール(MCP)
この MCP サーバーは、AI コーディング アシスタントに次のツールを公開します。
すべてのアイコンをリストする
説明: 使用可能なすべての Heroicons を一覧表示します。オプションでスタイル (アウトライン、ソリッド) 別にフィルター処理されます。
パラメータ:
style(オプション: "outline" | "solid")
検索アイコン
説明: すべてのスタイルで、名前またはキーワードで Heroicons を検索します。
パラメータ:
query(文字列)、style(オプション: "outline" | "solid")
アイコンの使用例を取得する
説明: 特定のアイコンの JSX 使用例を取得します。
パラメータ:
name(文字列)、style(文字列: "outline" | "solid")
使用例
AI ツールがこの MCP サーバーをどのように使用するかを以下に示します。
ユーザーが AI ツールに質問します:「Heroicons から「ユーザー」アイコンを見つけてください。できればソリッド スタイルが望ましいです。」
AIツールは
search_iconsを呼び出します:
query:「ユーザー」style:「ソリッド」
**MCP サーバーは、**一致するソリッド Heroicons (例:
UserIcon、UserCircleIcon、UserPlusIcon) のリストで応答します。ユーザーがツールに「UserIcon の使用例を表示してください」と要求します。
AIツールは
get_icon_usage_examplesを呼び出します:
name: "UserIcon"style:「ソリッド」
MCP サーバーは次の JSX コード例で応答します。
import { UserIcon } from "@heroicons/react/24/solid";
function Example() {
return (
<div>
<UserIcon className="w-6 h-6 text-blue-500" />
</div>
);
}Inspector を使用したローカルでの MCP のテスト
MCP Inspectorを使用して、MCP サーバー (stdio モード) をローカルでテストできます。
まず、プロジェクトがビルドされていることを確認します。
bun run build次に、Inspector を起動し、 --stdioフラグを指定したnode ./build/entry.jsコマンドを使用してサーバーに接続します。
npx @modelcontextprotocol/inspector node ./build/entry.js --stdioこれにより、Inspector インターフェイスが開き、MCP サーバーによって公開されるリソースとツールを対話的にテストできるようになります。
開発スクリプト
bun run dev: 開発用に HTTP モードでサーバーを起動します (src/entry.tsを使用)。bun run dev:stdio: 開発用に stdio MCP サーバーを起動します (src/entry.ts --stdioを使用)。bun run build: TypeScript を JavaScript にコンパイルします (build/に出力されます)。bun run lint: ESLint を使用してコードベースをリントします。
リソース
ライセンス
Available Tools
3 toolsget_icon_usage_examplesB
Get usage examples for an icon
Inputs: name (required), style (required).
list_all_iconsB
List all icons from the heroicons library, optionally filtered by style
Inputs: style.
search_iconsB
Search for icons from heroicons by name or category
Inputs: query (required), category, limit, style.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: listing all icons, searching icons by criteria, and getting usage examples for a specific icon. There is no overlap in functionality, making it easy for an agent to select the right tool without confusion.
All tool names follow a consistent verb_noun pattern (get_icon_usage_examples, list_all_icons, search_icons) with clear, descriptive verbs. The naming is uniform and predictable across the set.
With 3 tools, this server is well-scoped for its purpose of accessing a heroicons library. Each tool serves a distinct and essential function, making the count appropriate without being too thin or heavy.
The tool set provides complete coverage for the domain: listing icons, searching icons, and getting usage examples. This covers the core workflows for accessing and utilizing an icon library, with no obvious gaps or dead ends.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
A Model Context Protocol server for Wix AI tools
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup22142,842 PyPI1,004MIT
- AlicenseCqualityCmaintenanceA Model Context Protocol server that enables AI agents to generate, fetch, and manage UI components through natural language interactions.37ISC
- FlicenseAqualityFmaintenanceMCP server for Hugeicons integration and documentation This is a TypeScript-based MCP server that provides tools and resources for integrating Hugeicons into various platforms. It implements a Model Context Protocol (MCP) server that helps AI assistants provide accurate guidance for using Hugeicons526-
- AlicenseBqualityDmaintenanceMCP server that allows FE/UI/Designers to retrieve SVG icons via the Iconify API by simply asking LLMs rather than manually searching websites.324 npm4MIT