MCP server
by seeyangzhi
Search and use Heroicons easily in your React JS applications. Get usage examples, list icons, and enhance your React ic
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.
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.
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.
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.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
We wired Heroicons into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
According to our notes, Heroicons benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
Heroicons has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
According to our notes, Heroicons benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
Heroicons is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
We wired Heroicons into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
According to our notes, Heroicons benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
We wired Heroicons into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Heroicons is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
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
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.
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.
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.
git clone https://github.com/SeeYangZhi/heroicons-mcp.git
cd heroicons-mcp
Refer to the official Bun installation guide.
After installation, restart your terminal and check:
bun --version
bun install
This compiles the TypeScript source to JavaScript in the build directory.
bun run build
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
npx heroicons-mcp --stdio
# or if installed globally
heroicons-mcp --stdio
There are two main ways to run the MCP server:
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.
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
To use this MCP server in Claude Desktop:
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.
Note: The npx heroicons-mcp --stdio command is the recommended way for stdio mode.
This MCP server exposes the following tools to AI coding assistants:
style (optional: "outline" | "solid")query (string), style (optional: "outline" | "solid")name (string), style (string: "outline" | "solid")Here's how an AI tool might use this MCP server:
search_icons:query: "user"style: "solid"UserIcon, UserCircleIcon, UserPlusIcon).get_icon_usage_examples:name: "UserIcon"style: "solid"import { UserIcon } from "@heroicons/react/24/solid";
function Example() {
return (
<div>
<UserIcon className="w-6 h-6 text-blue-500" />
</div>
);
}
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.
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.Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.