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

NameTypeRequiredDescription
prefixstringyesCollection prefix (e.g., “mdi”, “fa”, “heroicons”, “lucide”)
iconsstringyesComma-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

FieldTypeDescription
prefixstringCollection prefix (e.g., mdi, fa, heroicons)
iconsarrayArray 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.

Regenerated from source · build May 9, 2026