SVG Converter is an MCP server that converts scalable vector graphics into raster image formats like PNG, ICO, and JPG directly through MCP-compatible AI clients. Built on the FastMCP framework, it connects AI assistants such as Claude Desktop or custom agents to local rendering engines including CairoSVG, SVGLib with ReportLab, and Pillow. Graphic designers, software developers, and content creators use this server to automate asset generation, inspect vector markup, and produce application icons without running external graphical editors. The server provides dedicated tools for transforming raw SVG strings or saved files, running batch conversions across directories, and inspecting graphic metadata such as dimensions and complexity. It features a hybrid rendering pipeline that specifically optimizes Chinese character rendering by combining vector rendering with font rasterization fallbacks. By exposing engine status and conversion parameters such as scaling, resolution, background transparency, and compression quality, the tool enables language models to accurately process vector imagery and export production-ready graphics across standard transport layers.
Category: Design, Media & Creative
Tags: cairo, graphics, image-conversion, svg
bash pip install "git+https://github.com/RusianHu/svg-converter-tools-mcp.git[full]" 2. For optimal rendering quality, ensure system Cairo libraries are installed on your OS (such as cairo on macOS via Homebrew or libcairo2-dev on Debian/Ubuntu). 3. Open your MCP client configuration file (for example, claude_desktop_config.json or mcp_settings.json). 4. Add the server entry under the mcpServers object: json { "mcpServers": { "svg-converter-mcp": { "command": "python", "args": ["-m", "svg_converter_mcp"], "disabled": false } } } 5. Restart your MCP client to access the conversion tools.Part of MCP Servers
SVG Converter converts vector graphics into raster image formats such as PNG, ICO, and JPG. It can process standalone SVG files or raw SVG markup strings directly from memory. The server also provides tools to inspect SVG file dimensions, evaluate document complexity, check available rendering engines, and execute batch conversions across multiple image files with custom scaling and quality parameters.
The server supports three rendering engines arranged hierarchically. It prefers CairoSVG for high fidelity and full specification compliance, falls back to SVGLib with ReportLab for pure Python environments, and uses Pillow for basic operations. It also includes a hybrid rendering mode combining vector engines with Pillow to ensure Chinese typography displays without formatting or font glyph issues.
SVG Converter works with any Model Context Protocol client that supports local command execution or standard transports. This includes Claude Desktop, Cursor, and custom FastMCP client implementations. The underlying server supports standard input/output (STDIO), Server-Sent Events (SSE), and HTTP transport protocols.
Yes, SVG Converter is open-source software distributed under the MIT license. You can review the complete source code, report issues, or contribute updates on its GitHub repository at https://github.com/RusianHu/svg-converter-tools-mcp.