MCP server

MCP SVG to Fonts: Generate Icon Fonts from a Folder of SVGs

Point an AI coding agent at a directory of SVG icons and this MCP server returns TTF, WOFF and WOFF2 fonts with matching CSS and TypeScript types.

Run
npx -y mcp-svg-to-fonts
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is MCP SVG to Fonts?

MCP SVG to Fonts is an MCP server that turns a directory of SVG icons into an icon font. It writes TTF, WOFF and WOFF2 files, a CSS file with icon classes and TypeScript types, and it can add icons to an existing font without changing old Unicode values.

It is a Model Context Protocol server for generating and managing icon fonts from SVG files. You hand an agent a folder of icons, and it produces a font family, a stylesheet and type definitions ready to drop into a front end.

The defaults are plain: a font named IconFont, output into a fonts folder, formats woff2, woff and ttf, and a CSS class prefix of icon. Each default can be overridden through tool parameters when a project needs different names.

What an agent can do with it

  • Scan a directory and list every SVG before generating, which catches missing files and bad names early.
  • Create a brand new font with CSS font-face rules and one class per icon.
  • Emit a types file so TypeScript code can reference icon names safely, including a helper that returns the class.
  • Extend a font later while keeping existing icons and their Unicode values, so shipped pages keep working.

Extending an existing font

Two tools add icons to a font. One needs the original SVG files. The advanced one extracts glyph shapes straight from the TTF with OpenType.js, so it also works on a third party font whose sources you do not have.

Who MCP SVG to Fonts is for

Best for

  • Front end teams that keep icons as SVGs and want one font file with typed names.
  • Design system owners who also manage tokens, see a design token skill, and want icons generated the same repeatable way.
  • Builders who source icons elsewhere, for example with an icon search server, and then need a font.

Not for

  • Projects that prefer inline SVG sprites. The output here is a font file with CSS classes, not inline SVG markup.
  • Extending a font without its CSS. The advanced tool needs the TTF and a CSS file with Unicode mappings.
  • Anyone expecting icon search. It reads folders you point it at and does not find icons for you.

Use it with UiChemy

This server makes the font file only. UiChemy converts Figma designs to WordPress through Figma to WordPress, and Composer edits the result in Elementor or Gutenberg. Wiring a custom icon font into a site is a separate step. Click Get Started on uichemy.com.