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).
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.
Pickapicon-MCP provides three main tools:
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.
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)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)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.
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.
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.
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"
]
}
}
}
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.
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.