ismail-kattakath/svg-generator-mcp
If you are the rightful owner of svg-generator-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
SVG Generator MCP Server is an AI-powered server designed to generate high-quality SVG illustrations using FLUX/MFLUX with automatic dependency management.
SVG Generator MCP Server
AI-powered MCP server for generating high-quality SVG illustrations using FLUX/MFLUX with automatic dependency management.
Quick Start
🚀 One-Command Setup
Install and configure with uvx (recommended):
# Install using uvx (automatically handles all dependencies)
uvx svg-generator-mcp
Add to your MCP client configuration (example for Claude Desktop):
{
"mcpServers": {
"svg-generator": {
"command": "uvx",
"args": ["svg-generator-mcp"]
}
}
}
That's it! The server starts instantly with automatic dependency management.
🐍 Alternative: Direct Python Installation
# Install from PyPI
pip install svg-generator-mcp
# Run directly
svg-generator-mcp
Claude Desktop configuration for pip install:
{
"mcpServers": {
"svg-generator": {
"command": "svg-generator-mcp"
}
}
}
Prerequisites
- Python 3.8+ - Install Python
- Node.js 18+ - Install Node.js (for AI processing)
- MCP Client - Any Model Context Protocol compatible client
💡 uvx automatically manages dependencies - Node.js deps are installed on first run
Available Tools
Core Tools
generate_svg_illustration- Generate SVG illustrations from text promptsoptimize_svg- Optimize SVG files for smaller size and better performancelist_available_models- List AI models and their statusget_generation_history- Get recent generation history
Example Usage
Generate a vector illustration:
{
"prompt": "A minimalist mountain landscape with geometric trees",
"style": "vector",
"width": 1024,
"height": 512
}
Configuration Options
Parameters for generate_svg_illustration
prompt(required): Description of the desired illustrationstyle(optional): "vector", "laser", or "colorful" (default: "vector")width/height(optional): Size in pixels, 64-2048 (default: 512)steps(optional): Quality steps, 1-50 (default: 20)guidance_scale(optional): AI guidance, 1-20 (default: 7.5)seed(optional): Random seed for reproducible results
Development
Getting Started
For contributors who want to modify the server:
git clone https://github.com/aloshy-ai/svg-generator-mcp.git
cd svg-generator-mcp
npm install
npm test
npm run dev
🔄 CI/CD Pipeline
Automated GitHub Actions pipeline ensures code quality and seamless deployment:
- ✅ Automated Testing - Full test suite on every push and PR
- 🐍 PyPI Publishing - Python packages published to PyPI
- 🏗️ Cross-Platform Support - Works on macOS, Linux, and Windows
- 🔒 Security Scanning - Vulnerability scanning with npm audit
- 📦 Automated Releases - Tagged releases trigger production builds
Install the development version: pip install svg-generator-mcp
🧠 How It Works
- 🎨 Style Analysis - Prompt analyzed for desired visual style and composition
- ⚡ AI Generation - FLUX/MFLUX with optimized backends creates high-quality images
- 🔧 SVG Conversion - Images converted to optimized SVG format
- 📄 Delivery - Clean SVG delivered via MCP protocol to your client
🛠️ Tech Stack
- Backend: TypeScript with clean service layer architecture
- AI Models: FLUX/MFLUX with architecture-optimized backends (MFLUX for Apple Silicon, FLUX for Intel/AMD)
- Processing: Sharp for image optimization and SVG conversion
- Protocol: Model Context Protocol (MCP) with stdio transport
- Deployment: Python packaging with uvx for automatic dependency management
- CI/CD: GitHub Actions with PyPI publishing and automated testing
🔧 Troubleshooting
Common Issues
Installation Issues
- uvx not found: Install with
pip install pipx && pipx install uv - Python version: Requires Python 3.8+. Check with
python --version - Node.js missing: Install Node.js 18+ from nodejs.org
- Permission errors: Try
pip install --user svg-generator-mcpinstead
MCP Connection Issues
- Server not starting: Check that both Python and Node.js are in PATH
- Tool not appearing: Verify MCP client configuration syntax
- Generation failures: Server runs in demo mode without AI models - this is normal
- Slow first startup: Node.js dependencies install on first run (1-2 minutes)
AI Generation Issues
- Demo mode only: Install AI dependencies manually if needed:
- Apple Silicon:
pip install mflux - Other platforms:
pip install torch diffusers transformers
- Apple Silicon:
- Model download failures: AI features are optional - server works without them
Getting Help
- 📋 Check Issues for common problems
- 🐛 Report a bug if you find one
- 💡 Request a feature for enhancements
License
MIT
▄▀█ █░░ █▀█ █▀ █░█ █▄█ ░ ▄▀█ █
█▀█ █▄▄ █▄█ ▄█ █▀█ ░█░ ▄ █▀█ █