unicon-mcp
Skill18 starsChanged 16 days agoMITView on GitHub
Sets up and uses the Unicon MCP server, which gives AI assistants icon search and code generation for 19,000+ icons (Lucide, Phosphor, Hugeicons, Heroicons, Tabler, Feather, Remix, Iconoir, Simple Icons) through the tools search_icons, get_icon, get_multiple_icons, get_starter_pack, and saved-bundle tools. Use this skill whenever the user wants to connect, verify, or debug Unicon in Claude Code, Claude Desktop, Cursor, or another MCP client; mentions @webrenew/unicon-mcp-server, https://unicon.sh/api/mcp, or `unicon://` resources; or asks for icons while Unicon MCP tools are available. For the unicon CLI or the REST API without MCP, use the unicon skill.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
Add --scope project to save the server in .mcp.json for the whole team.
- Very specific: line 67
Add the server to .cursor/mcp.json in the project, or to ~/.cursor/mcp.json for every project:
- Distinctive: line 100
Search first, then use the IDs from the results.
- Very specific: line 108
Exact icons: Use get_icon for one known ID, or get_multiple_icons for up to 50 in one call.
- Very specific: line 110
Common sets: Use get_starter_pack. Read unicon://starter_packs for the pack IDs.
- Very specific: line 113
Write the returned code into the project's icon folder, and match the format to the framework (react, vue, svelte, svg, or json).
- Very specific: line 146
Local server: run npx @webrenew/unicon login once.
- Very specific: line 149
Remote server: create a token at https://unicon.sh/settings and send it as a header, for example claude mcp add --transport http unicon …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unicon MCP
The Unicon MCP server lets an assistant search icons and return ready-to-use React, Vue, Svelte, SVG, or JSON code as tool calls, with no CLI involved.
There are two ways to connect:
- Remote:
https://unicon.sh/api/mcp. Nothing to install. It uses Streamable HTTP, stateless; it has no SSE stream. - Local:
npx -y @webrenew/unicon-mcp-server. A stdio server that forwards requests to the remote endpoint. Use it for clients that support only stdio servers.
Set up
Claude Code
claude mcp add --transport http unicon https://unicon.sh/api/mcp
# or the local server:
claude mcp add unicon -- npx -y @webrenew/unicon-mcp-serverAdd --scope project to save the server in .mcp.json for the whole team.
Claude Desktop
Edit claude_desktop_config.json. On macOS it is in
~/Library/Application Support/Claude/, on Windows in %APPDATA%\Claude\.
{
"mcpServers": {
"unicon": {
"command": "npx",
"args": ["-y", "@webrenew/unicon-mcp-server"]
}
}
}Quit Claude Desktop completely (Cmd+Q on macOS) and start it again. Closing the window does not reload the config.
Cursor
Add the server to .cursor/mcp.json in the project, or to
~/.cursor/mcp.json for every project:
{
"mcpServers": {
"unicon": {
"url": "https://unicon.sh/api/mcp"
}
}
}The command/args form from Claude Desktop also works.
Other clients
Give the client the URL https://unicon.sh/api/mcp if it supports remote
(Streamable HTTP) servers. Otherwise give it the command
npx -y @webrenew/unicon-mcp-server.
Verify
- Claude Code:
claude mcp listshowsuniconas connected. In a session,/mcpshows its tools. - Claude Desktop and Cursor: the MCP or tools settings list
uniconwith its tools. - In any client, a test request: "Search Unicon for a settings icon from Lucide."
Use the tools
Icon IDs have the form source:name, for example lucide:arrow-right.
Search first, then use the IDs from the results; guessed IDs often do not
exist.
Work in this order, because it needs the fewest calls:
- Search with code.
search_iconswithincludeCode: truereturns the code with the results, so one call is often enough. Setsourceto the library the project already uses, so the new icons match the existing ones. - Exact icons. Use
get_iconfor one known ID, orget_multiple_iconsfor up to 50 in one call. - Common sets. Use
get_starter_pack. Readunicon://starter_packsfor the pack IDs.
Write the returned code into the project's icon folder, and match the
format to the framework (react, vue, svelte, svg, or json).
Tools
| Tool | Required | Optional (default) |
search_icons | query (1–200 chars) | source, category, limit (20, max 100), offset (0), includeCode (false), format (react), strokeWidth (2), normalizeStrokes (false) |
get_icon | iconId | format (react), size (24, 8–512), strokeWidth (2, 0.5–4), normalizeStrokes (false) |
get_multiple_icons | iconIds (up to 50) | format, size, strokeWidth, normalizeStrokes |
get_starter_pack | packId | output (bundle for one file, or individual), format, size, strokeWidth, normalizeStrokes |
list_my_bundles | Requires a token | |
get_my_bundle | bundleId (UUID) | format (react; svg or json), includeCode (true). Requires a token |
create_my_bundle | name, iconIds | description, strokePreset (thin, regular, bold), normalizeStrokes, targetStrokeWidth, normalizeViewbox, targetViewbox. Requires a token |
normalizeStrokes sets one stroke width on stroke icons from different
libraries and leaves fill icons unchanged. Use it when a set mixes libraries.
Resources
| URI | Contents |
unicon://instructions | The server's usage guide |
unicon://sources | Libraries and icon counts |
unicon://categories | Categories |
unicon://stats | Totals per library |
unicon://starter_packs | Starter pack IDs and descriptions |
Saved bundles
The *_my_bundle tools read and write the user's saved bundles on unicon.sh.
They need an API token, which starts with uni_:
- Local server: run
npx @webrenew/unicon loginonce. The server reads~/.unicon/auth.json. You can setUNICON_API_TOKENin the server'senvinstead. - Remote server: create a token at https://unicon.sh/settings and send it
as a header, for example
claude mcp add --transport http unicon https://unicon.sh/api/mcp --header "Authorization: Bearer uni_...".
Without a token, the search and icon tools still work. Only the bundle tools return an authentication error.
Troubleshooting
| Symptom | Check |
unicon is missing from the client | The config JSON is valid. The client was fully restarted. For the local server, npx -y @webrenew/unicon-mcp-server starts without errors in a terminal |
| The first start is slow | The first npx run downloads the package. Later runs use the npm cache |
command not found: npx | Install Node.js 18+, then restart the client so it sees the new PATH |
| An icon is not found | Search for it and copy the source:name ID from the results |
| A bundle tool returns an authentication error | Set a token as shown in Saved bundles |
| A client asks for an SSE endpoint | Use the local server. The remote endpoint supports only Streamable HTTP |
Requests fail with 429 | The public limit is 60 requests per minute per IP. Wait, then use fewer, larger calls, such as includeCode or get_multiple_icons |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

