SVG skill for Claude Code

Give Claude Code the SVG.new skill and it can turn PNG, JPG and WebP images into clean SVG vectors, recolor and simplify SVGs, remove backgrounds and batch convert folders, all from a plain-English prompt.

Free account includes 3 vectorizations a day.

Install the SVG skill in Claude Code

Three steps, about a minute.

1

Install the plugin

Run these two commands inside Claude Code:

/plugin marketplace add svgnew/plugin
/plugin install svg-vectorizer@svg-new-tools

The plugin adds five skills (vectorize, recolor, simplify, remove-background and batch) and the SVG.new MCP server, svg-new. Source is on github.com/svgnew/plugin. It is also listed in the Claude directory.

2

Sign in with your SVG.new account

Open /plugin or /mcp, pick the plugin's svg-new server and choose Authenticate, then sign in with your SVG.new account. The plugin and its MCP server need no API key.

/mcp

An API key is only needed for the single skill file, or if the plugin's skills fall back to the REST API because no MCP tools are available. In that case, create a key at svg.new/account and export it as SVG_NEW_API_KEY.

3

Ask Claude to vectorize something

Vectorize ./logo.png

Claude reads the image, sends it to SVG.new, writes logo.svg next to it and tells you how many credits are left.

Other ways to add it

Same API and same credits; pick the setup you prefer.

Single skill file

Adds one skill, /svg, with no plugin or marketplace. It covers vectorize, recolor, simplify, background removal and batch through the REST API, using an API key from svg.new/account exported as SVG_NEW_API_KEY.

mkdir -p ~/.claude/skills/svg-new && \
  curl -s https://svg.new/skill.md \
  -o ~/.claude/skills/svg-new/SKILL.md
Read skill.md

MCP server

Registers the hosted SVG.new MCP server with Claude Code, which gives Claude eleven tools instead of skills. Then run /mcp, pick svgnew and choose Authenticate to sign in; no API key needed. The same tools work in Claude, Cursor and Windsurf; for OpenAI Codex, see the SVG skill for Codex.

claude mcp add --transport http --scope user \
  svgnew https://svg.new/api/mcp
MCP server guide

What the skill does

Call a skill directly, or just describe what you want and Claude picks the right one.

Vectorize

1 credit

Converts a PNG, JPG or WebP image to SVG and saves it next to the original.

/svg-vectorizer:vectorize logo.png

Recolor

Free

Swaps colors in an SVG using an old-to-new hex map.

/svg-vectorizer:recolor icon.svg

Simplify

Free

Merges similar colors down to a target palette size (1 to 256).

/svg-vectorizer:simplify icon.svg

Remove background

1 credit

Removes the background from an SVG, using the original image as reference.

/svg-vectorizer:remove-background art.svg

Batch

1 credit per image

Sends a folder of images to the batch API (up to 10 per batch) and collects the results.

/svg-vectorizer:batch ./images/

Example prompts

Things to ask Claude Code once the skill is installed.

  • “Vectorize logo.png and save it as logo.svg”
  • “Convert every PNG in ./assets/icons to SVG”
  • “In icon.svg, change #ff0000 to #2E95FF”
  • “Reduce badge.svg to 4 colors for screen printing”
  • “Vectorize product.jpg, then remove the background”

Common questions

What is the SVG skill for Claude Code?

It is a Claude Code skill from SVG.new that converts raster images to SVG. Claude loads it when you ask to vectorize, trace or convert an image to SVG, sends the image to SVG.new through your SVG.new account, and writes the .svg file into your project.

How do I install the Claude SVG skill?

Inside Claude Code, run /plugin marketplace add svgnew/plugin and then /plugin install svg-vectorizer@svg-new-tools. Then open /plugin or /mcp, pick the plugin’s svg-new server and choose Authenticate to sign in with your SVG.new account; the plugin and its MCP server need no API key. For a single lightweight skill, save https://svg.new/skill.md as ~/.claude/skills/svg-new/SKILL.md instead. That skill calls the REST API and reads an API key from the SVG_NEW_API_KEY environment variable.

Can Claude create SVGs?

Yes. Claude can write SVG markup by hand, which works for simple icons and shapes. To turn a PNG, JPG or WebP image such as a photo or logo into an SVG, install the SVG.new skill: Claude sends the image to SVG.new and saves the SVG it gets back.

Can Claude Code vectorize an image?

Yes, with the SVG skill for Claude Code installed. Ask Claude Code to vectorize an image and it sends the PNG, JPG or WebP file to SVG.new and saves the SVG it gets back. Without a skill or MCP server, Claude can only write SVG markup by hand, which is impractical for photos or detailed logos.

Should I use the plugin, the skill file or the MCP server?

Use the plugin for all five skills (vectorize, recolor, simplify, remove background, batch) plus the SVG.new MCP server, with updates through the marketplace. Use the single skill file for one /svg command with nothing else installed; it needs an API key. Use the MCP server on its own if you want the tools without the skills, or the same tools in Claude, Cursor, Codex or Windsurf.

What does the SVG skill for Claude Code cost?

The plugin itself is free. Conversions use SVG.new credits: a free account includes 3 vectorizations a day, and Pro is $9.99 a month for 1,000. Vectorize and background removal cost 1 credit each; recolor and simplify are free.

Which images work, and how large can they be?

PNG, JPG and WebP. Images up to 20 MB go by reference: a public HTTPS link (image_url) that svg.new fetches itself, or, through the hosted MCP server, a local file sent with create_upload (upload_id). Inline base64 is for small images of about 100 KB. Large results come back as one-hour download links. The vectorize endpoint allows 10 requests a minute, and a batch holds up to 10 images.

We put SVGs written by hand by four models, Claude included, next to traced ones in the pelican riding a bicycle test.

Vectorize from Claude Code

Create a free account, install the plugin, sign in and ask Claude to convert your first image.