Tools Reference
The SVGForge MCP server exposes tools designed for LLM function calling. Names and parameters match the live svgforge-mcp package.
1. search_icons
Search Iconify packs by keyword.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
q |
string |
Yes | — | Keyword (e.g. home, arrow, user) |
prefix |
string |
No | — | Pack filter (lucide, tabler, mdi, …) |
limit |
number |
No | 20 |
Max results (1–50) |
Example
JSON
{
"name": "search_icons",
"arguments": {
"q": "shopping cart",
"prefix": "lucide",
"limit": 5
}
}
Prefer a prefix for faster, tighter results.
2. get_icon
Fetch one icon as SVG or generated framework code.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name |
string |
Yes | — | Icon key prefix:icon (e.g. lucide:home) |
format |
string |
No | svg |
svg | react | vue | svelte | data-uri |
Example
JSON
{
"name": "get_icon",
"arguments": {
"name": "lucide:shopping-cart",
"format": "react"
}
}
3. list_icon_sets
List available packs (Lucide, Tabler, …).
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
q |
string |
No | — | Filter by prefix or name |
limit |
number |
No | 50 |
Max sets (1–200) |
4. get_my_collections
List Collections for the authenticated user.
- Requires
SVGForge_API_KEY - No parameters
5. get_custom_icons
List private custom icons.
- Requires
SVGForge_API_KEYand Pro - No parameters
6. sanitize_svg
Strip scripts, event handlers, and dangerous URL / entity payloads from untrusted SVG.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
svg |
string |
Yes | Raw SVG markup |
7. svg_to_data_uri
Encode SVG for CSS background-image or <img src>.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
svg |
string |
Yes | — | Raw SVG markup |
encoding |
string |
No | uri |
uri (percent-encoded) or base64 |
Write tools
Collection write tools stay disabled unless you set SVGForge_MCP_ALLOW_WRITE=1. Prefer the web Dashboard when editing Collections by hand.
Related REST endpoints
MCP maps onto the public and Plugin HTTP APIs: