Iconify SVG MCP server

Provides a bridge to the Iconify API for searching and retrieving SVG icons from various collections, enabling quick integration of icons into projects.
Back to servers
Provider
Leee62
Release date
Apr 20, 2025
Language
TypeScript
Package
Stats
189 downloads
1 star

Pickapicon-MCP is a service that simplifies the process of obtaining SVG icons through the Iconify API, designed for frontend developers, UI designers, and other professionals. Instead of manually searching and copying icons from websites, you can use this MCP (Model Context Protocol) server to request icons directly through Large Language Models (LLMs).

Features

  • Retrieve SVG icons via natural language requests
  • Access the entire Iconify icon collection
  • Simplify your workflow when working with icons
  • Integrate seamlessly with LLMs

Installation

To use pickapicon-mcp, you need to configure it as an MCP server. Add the following configuration to your MCP server settings:

"mcpServers": {
  "pickapicon-mcp": {
    "type": "stdio",
    "command": "npx",
    "args": [
      "-y",
      "pickapicon-mcp@latest"
    ],
    "env": {
      "PREFIX": "<LIKE ant-design>"
    }
  }
}

You can optionally set a default icon prefix in the environment variables, such as "ant-design" or any other icon collection available in Iconify.

Usage

Available Tools

Pickapicon-MCP provides three main tools:

1. Get Icon Repositories

This tool retrieves all available icon repository names:

get_icon_repos

Use this to discover what icon collections are available. The results can be used as prefixes for the other tools.

2. Find Icons by Description

To find icons based on a description:

get_icons_by_desc_and_prefix

Parameters:

  • desc: Description of the icon you want (required)
  • prefix: Icon collection to search within (optional)

3. Get Icon SVG Code

To retrieve the SVG code for a specific icon:

get_icon_detail_by_prefix_and_name

Parameters:

  • svg_name: The name of the SVG icon (required)
  • prefix: Icon collection the icon belongs to (optional)

Usage Examples

Retrieving Icons for a Component

You can ask the LLM to retrieve icons related to a specific component or concept:

For example, request: "Find me icons related to user profiles for my dashboard"

The LLM can use the MCP to search for relevant icons and return the SVG code.

Getting Icons with Specific Styling

You can also specify styling preferences when requesting icons:

For example: "I need a modern, colorful shopping cart icon for an e-commerce site"

The LLM will search for appropriate icons matching your description and return the SVG code that you can directly use in your projects.

For all icon options and collections, you can visit the Iconify website.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later