Dev.to AI πŸ€– Ai πŸ‘ 1 πŸ“– 2 min read

Getting real SVG icons from Claude, Cursor or VS Code with MCP

Ask a coding assistant for a landing page and it will write the layout in seconds. Ask it for the icons and you usually get hand-written <path> markup: a lopsided cloud, a coffee cup that looks like a bucket. The languag

Ask a coding assistant for a landing page and it will write the layout in seconds. Ask it for the icons and you usually get hand-written <path> markup: a lopsided cloud, a coffee cup that looks like a bucket. The language model is guessing coordinates.

A better split: let the assistant write the code, and let an image model draw the assets. MCP (Model Context Protocol) is how you connect the two. Our SVGMaker MCP server gives your assistant tools to generate, edit and convert SVGs.

How do you set it up?

There are two ways to connect.

Remote server (no API key). In Claude Code:

claude mcp add --transport http svgmaker https://mcp.svgmaker.io/mcp

Then run /mcp inside Claude Code and log in through the browser.

Local server (with an API key). Runs through npx and needs Node.js 18 or newer:

claude mcp add --transport stdio svgmaker --env SVGMAKER_API_KEY=<your_api_key> -- npx -y @genwave/svgmaker-mcp

The setup page has the config for Cursor, VS Code, Windsurf, Zed, Codex and Claude Desktop too.

How do you use it?

Add "use svgmaker" to your request:

Build a landing page for a coffee shop with a hero and three feature cards. use svgmaker for assets

The assistant works out where the page needs icons or illustrations, generates them, saves the files into your project and points the code at them.

You can also ask for one thing at a time:

  • Generate: "A minimal logo for a startup called Quantum, geometric shapes. use svgmaker"
  • Edit: "Change this SVG to blue and green and make the lines thicker. use svgmaker"
  • Convert: "Turn this PNG into an SVG with clean paths. use svgmaker"

What does it cost?

Calls use your SVGMaker credits, the same as the website. With the local API-key setup, free accounts get one generation, one edit and one conversion a day.

When is this worth it?

  • Prototypes. The page looks finished without placeholder boxes.
  • Icon sets. Ask for the whole set in one style instead of mixing libraries.
  • Logos you already have. Convert the PNG once and keep the SVG in the repo.

If you want to see what a language model does on its own first, we tested it in can Claude AI create SVG files?. The short version: fine for simple shapes, weak for anything detailed.

Let the assistant write the code. Let an image model draw the pictures.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.