SVGMaker MCP Server
Supports configuration through environment variables stored in .env files for API keys, rate limits, and base URL settings
Used for package management and running server commands through npm scripts
Enables programmatic generation of SVG images from text prompts with customizable quality and aspect ratio, and saving them to the local filesystem
Provides full type safety with TypeScript support for the MCP server implementation
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SVGMaker MCP Servercreate a simple blue circle logo and save it as logo.svg"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SVGMaker MCP Server
A powerful MCP server for generating, editing, and converting SVG images using SVGMaker API.
π¨ MCP Server in Action
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.
Related MCP server: SVG to PNG MCP Server
π Highlights
π¨ AI-Powered SVG Generation: Create SVGs from text descriptions
βοΈ Smart SVG Editing: Edit existing SVGs with natural language
πΌοΈ Raster Mode: Skip vectorization and get a quick PNG instead of SVG
π Image-to-SVG Conversion: Convert any image to scalable SVG
ποΈ Inline Image Preview: Preview generations and gallery items directly in chat
π 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.0npm: Minimum version 7.0.0
npm --version # Should be >= 7.0.0Operating 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-mcpBasic Setup
Create .env file:
SVGMAKER_API_KEY="your_api_key_here"Start the server:
npx svgmaker-mcpπ LLM Integrations
π Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"svgmaker": {
"command": "npx",
"args": ["@genwave/svgmaker-mcp"],
"transport": "stdio",
"env": {
"SVGMAKER_API_KEY": "your_api_key_here"
}
}
}
}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:
Configure in cursor settings:
{
"mcpServers": {
"svgmaker": {
"type": "local",
"command": "npx",
"args": ["@genwave/svgmaker-mcp"],
"transport": "stdio",
"env": {
"SVGMAKER_API_KEY": "your_api_key_here"
}
}
}
}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:
Configure in settings.json:
{
"servers": {
"svgmaker": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@genwave/svgmaker-mcp"],
"env": {
"SVGMAKER_API_KEY": "<your_api_key>"
}
}
}
}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
Configure in settings:
{
"mcpServers": {
"svgmaker": {
"command": "npx",
"args": ["-y", "@genwave/svgmaker-mcp"],
"env": {
"SVGMAKER_API_KEY": "<your_api_key>"
}
}
}
}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
Configure in settings:
{
"context_servers": {
"svgmaker": {
"command": {
"path": "npx",
"args": ["-y", "@genwave/svgmaker-mcp"],
"env": {
"SVGMAKER_API_KEY": "<your_api_key>"
}
},
"settings": {}
}
}
}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"
}Raster mode β set raster: true to skip vectorization and get a PNG instead of an SVG. Use a .png extension for output_path. Cannot be combined with storage (raster results are temporary).
{
"prompt": "A minimalist mountain landscape with sun",
"output_path": "/path/to/landscape.png",
"quality": "medium",
"raster": true
}Parameter | Type | Description |
| boolean | When true, returns a raster PNG instead of SVG (skips vectorization). Use a |
| boolean | When true, stores the generated image permanently in cloud storage. Cannot be used with |
Style parameters (generate & edit)
All parameters below are optional and shared by svgmaker_generate and svgmaker_edit. Only specify the ones the user explicitly requests.
Parameter | Values | Default | Description |
|
|
| Detail level vs. speed. |
|
| auto (by quality) | Output shape. Ignored when |
|
|
| Background style. |
|
| β | Art style. |
|
|
| Color scheme. |
|
| β | Level of detail in the composition. |
|
| β | Layout arrangement. |
|
| β | How text is handled in the design. |
svgmaker_edit
Edit existing SVGs or images with natural language. Supports the same style parameters as generate. Accepts a local file path or generation ID (works for both your own generations and public gallery items).
{
"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"
}Or edit directly from a generation ID (works for both generations and gallery items):
{
"generation_id": "gen_abc123",
"prompt": "Make the background blue",
"output_path": "/path/to/edited.svg"
}Raster mode β like generate, set raster: true to get a PNG instead of an SVG. Use a .png extension for output_path. Cannot be combined with storage.
{
"input_path": "/path/to/input.svg",
"prompt": "Make it more vibrant",
"output_path": "/path/to/edited.png",
"raster": true
}Parameter | Type | Description |
| boolean | When true, returns a raster PNG instead of SVG (skips vectorization). Use a |
| boolean | When true, stores the edited image permanently in cloud storage. Cannot be used with |
svgmaker_convert
Convert raster images to SVG using AI-powered vectorization.
{
"input_path": "/path/to/image.png",
"output_path": "/path/to/vector.svg"
}svgmaker_account_info
Get account information including email, display name, account type, and available credits. No parameters required.
{}svgmaker_account_usage
Get API usage statistics with optional date filtering.
{
"days": 30
}Or use a date range:
{
"start": "2026-01-01",
"end": "2026-01-31"
}svgmaker_generations_list
List your SVG generations with optional filtering and pagination.
{
"page": 1,
"limit": 20,
"type": "generate",
"query": "mountain"
}svgmaker_generations_get
Get detailed information about a specific generation.
{
"generation_id": "gen_abc123"
}svgmaker_generations_delete
Delete a generation and its associated files. Requires a paid account.
{
"generation_id": "gen_abc123"
}svgmaker_generations_share
Share a generation by making it publicly accessible.
{
"generation_id": "gen_abc123"
}svgmaker_generations_download
Download a generation in various formats and save to a local file. Requires a paid account.
{
"generation_id": "gen_abc123",
"output_path": "/path/to/output.svg",
"format": "svg"
}svgmaker_generations_preview
Preview a generation by returning the image directly in the chat context as a PNG image. The LLM can see and describe the image, enabling follow-up edits.
{
"generation_id": "gen_abc123"
}svgmaker_gallery_list
Browse the public SVGMaker gallery with optional filtering and pagination.
{
"page": 1,
"limit": 20,
"type": "generate",
"query": "landscape",
"pro": "true"
}svgmaker_gallery_get
Get detailed information about a specific gallery item.
{
"generation_id": "gal_abc123"
}svgmaker_gallery_download
Download a gallery item in various formats and save to a local file. Costs 1 credit for SVG formats, 0 credits for WebP/PNG.
{
"generation_id": "gal_abc123",
"output_path": "/path/to/output.svg",
"format": "svg"
}svgmaker_gallery_preview
Preview a gallery item by returning the image directly in the chat context as a PNG image.
{
"generation_id": "gal_abc123"
}svgmaker_preview
Preview a local image file by returning it directly in the chat context. Supports PNG, SVG, WebP, and SVGZ formats.
{
"file_path": "/path/to/image.svg"
}βοΈ Configuration
Environment Variables
Variable | Description | Required | Default |
| Your SVGMaker API key | β Yes | - |
| API rate limit (requests per minute) | β No | 2 |
| Custom SVGMaker API base URL | β No |
|
| Enable debug logging | β No |
|
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-mcpLog 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
Clone and install dependencies:
npm installCreate .env file with your API key
SVGMAKER_API_KEY="your_api_key_here"Run in development mode:
npm run devTesting
Use the MCP Inspector for testing:
npx @modelcontextprotocol/inspector node build/index.jsCI/CD Workflow
This project uses GitHub Actions for continuous integration and deployment:
Continuous Integration
Runs on every push to main branch and pull requests
Performs linting, type checking, and building
Ensures code quality and consistency
Bumping the Version
For a patch version (bug fixes):
npm run version:patchFor a minor version (new features):
npm run version:minorFor a major version (breaking changes):
npm run version:major
Publishing
Automatically publishes to npm when the version bump is merged to
main
π 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Appeared in Searches
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/GenWaveLLC/svgmaker-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server