GS

genwavellc/svgmaker-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

89 stars 10 forks 质量 89 趋势 20MIT

genwavellc/svgmaker-mcp 是从 https://github.com/genwavellc/svgmaker-mcp. 导入的 MCP 服务器候选服务器。

概览

genwavellc/svgmaker-mcp 是从 https://github.com/genwavellc/svgmaker-mcp. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

一个强大的MCP服务器,用于生成、编辑和转换SVG图像,使用SVGMaker API。

🎨 MCP服务器运行中

这幅插图正是通过我们自己的SVGMaker MCP服务器诞生的——这是AI助手与矢量图形通过模型上下文协议完美协同工作的活生生例子。

🌟 精彩片段

  • ** 🎨 AI 驱动的 SVG 生成**:从文本描述创建 SVG
  • ** ✏️ 智能SVG编辑**:用自然语言编辑现有SVG
  • ** 🖼️ 光栅模式**:跳过矢量化,快速获得PNG代替SVG
  • ** 🔄 图像转SVG转换**:将任意图像转换为可扩展的SVG
  • ** 🪄 背景去除**:隔离前景主体,获得干净且透明的SVG
  • ** 👁️ 内联图片预览**:直接在聊天中预览生成和画廊项目
  • ** 🔒 安全文件操作**:内置路径验证和安全
  • ** ⚡ 实时进展**:运营期间实时更新
  • ** 📝 类型安全**:完整支持 TypeScript 及类型定义

📋 目录

  • 要求
  • 安装
  • 快速入门
  • LLM 集成
  • 可用工具
  • 配置
  • 发展
  • 贡献

💻 要求

  • 节点。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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.

🌟 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
  • 🪄 Background Removal: Isolate the foreground subject and get a clean SVG with transparency
  • 👁️ 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 20.9.0
    node --version  # Should be >= v20.9.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:
在 GitHub 查看完整 README

安装

npx @genwave/svgmaker-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "svgmaker": { "command": "npx", "args": ["@genwave/svgmaker-mcp"], "transport": "stdio", "env": { "SVGMAKER_API_KEY": "your_api_key_here" } } } }