Docs menu — MCP Server / Overview Documentation

Getting Started

MCP Server

REST API

MCP Server Updated 2026-11-23

Overview

SVGForge MCP is a lightweight stdio bridge that lets AI coding agents search the Iconify catalog and fetch SVG or framework code without leaving the IDE.

Package: svgforge-mcp · Source: github.com/liqiang88/svgforge-mcp · Marketing page: /mcp

Architecture

Text
AI Client (Cursor / Claude / …)
        │ JSON-RPC 2.0 (stdio)
        ▼
svgforge-mcp (local Node bridge, npx)
        │ HTTPS + Authorization: Bearer sf_xxx
        ▼
svgforge-api  (/api/v1/icons/*  +  /api/v1/plugin/*)
        │
 Iconify JSON / Collections / custom_icons

The bridge does not ship a local icon database. It calls the SVGForge HTTPS API. It does not scan your disk or upload project files.

Environment variables

Variable Required Description
SVGForge_API_KEY For private resources API token from Dashboard → API tokens (sf_…)
SVGForge_API_BASE No API origin (default production: https://svgforge.dev)
SVGForge_MCP_ALLOW_WRITE No Set to 1 to enable write tools (off by default)

Public search / get icon can work without a key; Collections and custom icons require SVGForge_API_KEY.

Tools at a glance

Tool Purpose
search_icons Keyword search (q, optional prefix, limit)
get_icon Fetch SVG / React / Vue / Svelte / Data URI
list_icon_sets Browse packs
get_my_collections List your Collections (token)
get_custom_icons List Pro private icons (token)
sanitize_svg Strip scripts / dangerous payloads
svg_to_data_uri Encode SVG for CSS / img

Full parameter tables: Tools Reference.

Same token as plugins

One sf_… token works for MCP, VS Code, Chrome, and Figma. Create and revoke tokens in the Dashboard.

Next steps