npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@genwave/svgmaker-mcp

v0.4.0

Published

MCP server for generating, editing, and converting SVG images using SVGMaker API

Readme

SVGMaker MCP Server

A powerful MCP server for generating, editing, and converting SVG images using SVGMaker API.

Website npm version License Build Status npm downloads

🎨 MCP Server in Action

MCP Capabilities Demo

This very illustration came to life through our own SVGMaker MCP server—a living example of AI assistants and vector graphics working in perfect harmony via the Model Context Protocol.

🌟 Highlights

  • 🎨 AI-Powered SVG Generation: Create SVGs from text descriptions
  • ✏️ Smart SVG Editing: Edit existing SVGs with natural language
  • 🔄 Image-to-SVG Conversion: Convert any image to scalable SVG
  • 🔒 Secure File Operations: Built-in path validation and security
  • ⚡ Real-Time Progress: Live updates during operations
  • 📝 Type Safety: Full TypeScript support with type definitions

📋 Table of Contents

💻 Requirements

  • Node.js: Minimum version 18.0.0
    node --version  # Should be >= v18.0.0
  • npm: Minimum version 7.0.0
    npm --version   # Should be >= 7.0.0
  • Operating Systems:
    • Linux (Ubuntu 20.04+, CentOS 8+)
    • macOS (10.15+)
    • Windows (10+)
  • SVGMaker API key (Get one here)

📦 Package Structure

@genwave/svgmaker-mcp/
├── build/             # Compiled JavaScript files
├── docs/              # Documentation
│   └── api/           # API documentation
├── src/               # Source TypeScript files
│   ├── tools/         # MCP tool implementations
│   ├── services/      # API integration
│   └── utils/         # Utility functions
└── types/             # TypeScript declarations

🚀 Installation

# Using npm
npm install @genwave/svgmaker-mcp

# Using yarn
yarn add @genwave/svgmaker-mcp

Basic Setup

  1. Create .env file:
SVGMAKER_API_KEY="your_api_key_here"
  1. Start the server:
npx svgmaker-mcp

🔌 LLM Integrations

🔌 Claude Desktop

  1. Add to claude_desktop_config.json:
{
  "mcpServers": {
    "svgmaker": {
      "command": "npx",
      "args": ["@genwave/svgmaker-mcp"],
      "transport": "stdio",
      "env": {
        "SVGMAKER_API_KEY": "your_api_key_here"
      }
    }
  }
}
  1. Example Claude prompt:
Generate an SVG of a minimalist mountain landscape:
<mcp>
{
  "server": "svgmaker",
  "tool": "svgmaker_generate",
  "arguments": {
    "prompt": "Minimalist mountain landscape with sun",
    "output_path": "./landscape.svg",
    "quality": "high",
    "aspectRatio": "landscape"
  }
}
</mcp>

🔌 Cursor

Install MCP Server

Or configure manually:

  1. Configure in cursor settings:
{
  "mcpServers": {
    "svgmaker": {
      "type": "local",
      "command": "npx",
      "args": ["@genwave/svgmaker-mcp"],
      "transport": "stdio",
      "env": {
        "SVGMAKER_API_KEY": "your_api_key_here"
      }
    }
  }
}
  1. Example usage in Cursor:
Use svgmaker to edit the logo.svg file and make it more modern:
<mcp>
{
  "server": "svgmaker",
  "tool": "svgmaker_edit",
  "arguments": {
    "input_path": "./logo.svg",
    "prompt": "Make it more modern and minimalist",
    "output_path": "./modern_logo.svg",
    "quality": "high"
  }
}
</mcp>

🔌 Visual Studio Code

Or configure manually:

  1. Configure in settings.json:
{
  "servers": {
    "svgmaker": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@genwave/svgmaker-mcp"],
      "env": {
        "SVGMAKER_API_KEY": "<your_api_key>"
      }
    }
  }
}
  1. Example usage in VS Code:
Generate a new icon for my app:
<mcp>
{
  "server": "svgmaker",
  "tool": "svgmaker_generate",
  "arguments": {
    "prompt": "Modern app icon with abstract geometric shapes",
    "output_path": "./assets/icon.svg",
    "quality": "high",
    "aspectRatio": "square"
  }
}
</mcp>

🔌 WindSurf

  1. Configure in settings:
{
  "mcpServers": {
    "svgmaker": {
      "command": "npx",
      "args": ["-y", "@genwave/svgmaker-mcp"],
      "env": {
        "SVGMAKER_API_KEY": "<your_api_key>"
      }
    }
  }
}
  1. Example usage in WindSurf:
Convert the company logo to SVG:
<mcp>
{
  "server": "svgmaker",
  "tool": "svgmaker_convert",
  "arguments": {
    "input_path": "./branding/logo.png",
    "output_path": "./branding/vector_logo.svg"
  }
}
</mcp>

🔌 Zed

  1. Configure in settings:
{
  "context_servers": {
    "svgmaker": {
      "command": {
        "path": "npx",
        "args": ["-y", "@genwave/svgmaker-mcp"],
        "env": {
          "SVGMAKER_API_KEY": "<your_api_key>"
        }
      },
      "settings": {}
    }
  }
}
  1. Example usage in Zed:
Edit an existing SVG file:
<mcp>
{
  "server": "svgmaker",
  "tool": "svgmaker_edit",
  "arguments": {
    "input_path": "./diagrams/flowchart.svg",
    "prompt": "Add rounded corners and smooth gradients",
    "output_path": "./diagrams/enhanced_flowchart.svg",
    "quality": "high"
  }
}
</mcp>

🛠️ Available Tools

svgmaker_generate

Generate SVG images from text prompts. Supports style parameters for fine-grained control over the output.

{
  "prompt": "A minimalist mountain landscape with sun",
  "output_path": "/path/to/landscape.svg",
  "quality": "medium",
  "style": "flat",
  "color_mode": "few_colors",
  "composition": "full_scene",
  "background": "transparent"
}

svgmaker_edit

Edit existing SVGs or images with natural language. Supports the same style parameters as generate.

{
  "input_path": "/path/to/input.svg",
  "prompt": "Add a gradient background and make it more vibrant",
  "output_path": "/path/to/enhanced.svg",
  "quality": "high",
  "style": "cartoon",
  "background": "opaque"
}

svgmaker_convert

Convert raster images to SVG using AI-powered vectorization.

{
  "input_path": "/path/to/image.png",
  "output_path": "/path/to/vector.svg"
}

⚙️ Configuration

Environment Variables

| Variable | Description | Required | Default | |----------|-------------|----------|---------| | SVGMAKER_API_KEY | Your SVGMaker API key | ✅ Yes | - | | SVGMMAKER_RATE_LIMIT_RPM | API rate limit (requests per minute) | ❌ No | 2 | | SVGMAKER_BASE_URL | Custom SVGMaker API base URL | ❌ No | https://api.svgmaker.io | | SVGMAKER_DEBUG | Enable debug logging | ❌ No | false |

Debug Logging

The server includes comprehensive logging for debugging and monitoring:

Enable Logging:

# Enable debug logging
SVGMAKER_DEBUG=true npx @genwave/svgmaker-mcp

# Or set NODE_ENV to development
NODE_ENV=development npx @genwave/svgmaker-mcp

Log Files Location:

  • macOS/Linux: ~/.cache/svgmaker-mcp/logs/
  • Windows: %LOCALAPPDATA%/svgmaker-mcp/logs/
  • Fallback: ./logs/ (in project directory)

Log File Format:

mcp-debug-2025-06-04T10-30-45-123Z.log

🔍 Development

Local Setup

  1. Clone and install dependencies:
npm install
  1. Create .env file with your API key
SVGMAKER_API_KEY="your_api_key_here"
  1. Run in development mode:
npm run dev

Testing

Use the MCP Inspector for testing:

npx @modelcontextprotocol/inspector node build/index.js

CI/CD Workflow

This project uses GitHub Actions for continuous integration and deployment:

  1. Continuous Integration

    • Runs on every push to main branch and pull requests
    • Performs linting, type checking, and building
    • Ensures code quality and consistency
  2. Releasing a New Version

    • To release a patch version (bug fixes):
      npm run release:patch
    • To release a minor version (new features):
      npm run release:minor
    • To release a major version (breaking changes):
      npm run release:major
  3. Publishing

    • Automatically publishes to npm when a new version tag is pushed

🔐 Security

  • ✅ Path validation prevents directory traversal
  • ✅ Input sanitization for all parameters
  • ✅ Secure file operation handling
  • ✅ Environment variable protection
  • ✅ Rate limiting support

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

⭐ Features

Input Format Support

  • SVG files (.svg)
  • PNG images (.png)
  • JPEG images (.jpg, .jpeg)
  • Other common image formats

Output Capabilities

  • Clean, optimized SVG output
  • Multiple aspect ratio options
  • Background control (transparent/opaque)
  • High-quality vectorization

📝 License

MIT © Genwave AI - see the LICENSE file for details.