Sponsored by Deepsite.site

SVGMaker MCP Server

Created By
GenWave6 months ago
A powerful MCP server for generating, editing, and converting SVG images using AI, uses the best vector generation models
Content

SVGMaker MCP Server

A powerful MCP server for generating, editing, and converting SVG images using AI

npm version License Build Status npm downloads

🌟 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

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

Transform your ideas into stunning SVG artwork using AI-powered creativity.

How we created the header illustration:

{
  "prompt": "Modern tech illustration showing an MCP server connecting multiple AI assistants to SVG generation capabilities. Show interconnected nodes, data flow, and SVG icons. Use a clean, professional design with blue and purple gradients, geometric shapes, and modern typography elements.",
  "output_path": "./docs/mcp-capabilities-demo.svg",
  "quality": "medium",
  "aspectRatio": "landscape",
  "background": "transparent"
}

svgmaker_edit

Edit existing SVGs or images with natural language.

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

svgmaker_convert

Convert images to SVG format.

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

⚙️ Configuration

Environment Variables

VariableDescriptionRequiredDefault
SVGMAKER_API_KEYYour SVGMaker API key✅ Yes-
SVGMMAKER_RATE_LIMIT_RPMAPI rate limit (requests per minute)❌ No2
SVGMAKER_BASE_URLCustom SVGMaker API base URL❌ Nohttps://svgmaker.io/api
SVGMAKER_DEBUGEnable debug logging❌ Nofalse

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.

Server Config

{
  "mcpServers": {
    "svgmaker": {
      "command": "npx",
      "args": [
        "@genwave/svgmaker-mcp"
      ],
      "transport": "stdio",
      "env": {
        "SVGMAKER_API_KEY": "your_api_key_here"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
CursorThe AI Code Editor
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server
Tavily Mcp
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Playwright McpPlaywright MCP server
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs