reicon-mcp

v1.2.0
reicon-mcp Checked 4 hours ago Published 7 days ago

MCP server and CLI for browsing and applying Reicon icons.

MCP server and CLI for searching, previewing, and applying 2,700+ Reicon icons. Equipped with built-in offline semantic vector search (~0.9 ms) to understand conceptual descriptions, synonyms, and misspellings without external API calls. Add to your MCP client configuration (Cursor, Claude Desktop, Windsurf, or Antigravity): Add this concise prompt to your project instructions (.cursorrules, Claude Project instructions, or agent system prompt) to ensure agents use Reicon cleanly:

Summary extracted from the README.

Official Reicon MCP server & CLI – open-source icon library for designers & developers

npm Docs License

MCP server and CLI for searching, previewing, and applying 2,700+ Reicon icons. Equipped with built-in offline semantic vector search (~0.9 ms) to understand conceptual descriptions, synonyms, and misspellings without external API calls.

Installation & Setup

Add to your MCP client configuration (Cursor, Claude Desktop, Windsurf, or Antigravity):

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

Or run directly from a local build:

{
  "mcpServers": {
    "reicon": {
      "command": "node",
      "args": ["/path/to/reicon/packages/reicon-mcp/bin/run.cjs"]
    }
  }
}

Add this concise prompt to your project instructions (.cursorrules, Claude Project instructions, or agent system prompt) to ensure agents use Reicon cleanly:

Always use the `reicon` MCP tools to find and place icons:
1. Search first: Call `search_icons({ query: "<concept>" })` (e.g. "padlock", "cinema", "trash", "calendar"). Semantic matching and typos are handled automatically. Never guess icon names.
2. Apply directly: Call `apply_icon({ name: "<name>", framework: "<react|vue|svelte|html|svg>", weight: "Outline" })` and insert the returned `importStatement` and `docsSnippet`.
3. Rules: Use Outline by default (Filled only for selected/active states). Use `currentColor` for color. Never draw custom SVG paths when Reicon has the concept.

MCP Tools

Tool Description
search_icons Semantic search across 2,700+ icons by keyword, concept, or description.
view_icon Return raw optimized SVG markup and metadata.
apply_icon Generate ready-to-paste framework imports and component snippets.
list_categories List all available icon categories.

CLI

You can also use reicon-mcp directly from the command line:

# Semantic search by concept or keyword
npx reicon-mcp search "padlock"
npx reicon-mcp search "cinema"

# Preview icon metadata and SVG
npx reicon-mcp view heart --weight Filled

# Generate framework code
npx reicon-mcp apply heart --framework react --size 24 --color "currentColor"

# List categories
npx reicon-mcp categories

File Write Mode

For automated scripts and CI, replace a marker string in a target file:

npx reicon-mcp apply heart --framework react --file src/App.tsx --marker "{/* ICON */}"

The marker must exist exactly once in the file.

License

Free for commercial and personal use under the MIT License.

Credits

Thank you to all the people who contributed and supported Reicon!