get_icons
Pack: iconify · Endpoint: https://gateway.pipeworx.io/iconify/mcp
Get SVG code and dimensions for specific icons. Input icon names in prefix:name format (e.g., “mdi:home”, “fa:star”). Returns SVG markup, width, and height.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
prefix | string | yes | Collection prefix (e.g., “mdi”, “fa”, “heroicons”, “lucide”) |
icons | string | yes | Comma-separated icon names within the collection (e.g., “home,arrow-left,user”) |
Example call
Arguments
{
"prefix": "mdi",
"icons": "home,arrow-left,user"
}
curl
curl -X POST https://gateway.pipeworx.io/iconify/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_icons","arguments":{"prefix":"mdi","icons":"home,arrow-left,user"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_icons', {
"prefix": "mdi",
"icons": "home,arrow-left,user"
});
More examples
{
"prefix": "fa",
"icons": "star"
}
Response shape
Always returns: prefix, icons
| Field | Type | Description |
|---|---|---|
prefix | string | Collection prefix (e.g., mdi, fa, heroicons) |
icons | array | Array of icon objects with SVG data and dimensions |
Full JSON Schema
{
"type": "object",
"properties": {
"prefix": {
"type": "string",
"description": "Collection prefix (e.g., mdi, fa, heroicons)"
},
"icons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Icon name within the collection"
},
"full_name": {
"type": "string",
"description": "Full icon identifier in prefix:name format"
},
"svg_body": {
"type": "string",
"description": "SVG markup content (inner body)"
},
"width": {
"type": "number",
"description": "Icon width in pixels"
},
"height": {
"type": "number",
"description": "Icon height in pixels"
}
},
"required": [
"name",
"full_name",
"svg_body",
"width",
"height"
]
},
"description": "Array of icon objects with SVG data and dimensions"
}
},
"required": [
"prefix",
"icons"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"iconify": {
"url": "https://gateway.pipeworx.io/iconify/mcp"
}
}
}
See Getting Started for client-specific install steps.