SVG to PNG MCP Server

SVG to PNG MCP Server is an MCP server that converts raw SVG code into PNG raster images using the CairoSVG library. Built with the FastMCP framework and Pillow, it provides a dedicated svg_to_png tool interface that connects directly to local Model Context Protocol clients. Software developers, designers, and AI agent operators use this server to automate graphic conversions without having to manually run external image editing programs. The server accepts SVG input, processes it locally using the cairosvg conversion engine, and writes the resulting PNG files to a designated working directory. It supports asynchronous calls and complete error handling, enabling LLM assistants to generate vector graphics and immediately render them into shareable bitmap formats. Although configured by default to use the fast, lightweight CairoSVG library, the underlying architecture also outlines support for an Inkscape-based fallback when handling complex fonts or advanced vector specifications.

Category: Design, Media & Creative

Tags: cairosvg, graphics, image-conversion, png, svg

Visit SVG to PNG MCP Server

How to install and configure SVG to PNG MCP Server

  1. Install via Smithery for Claude Desktop automatically by running: bash npx -y @smithery/cli install @longbowzz/svg2png_mcp --client claude 2. Alternatively, clone the repository, set up a Python virtual environment, and install dependencies: bash python -m venv venv source venv/bin/activate pip install -r requirements.txt 3. Copy the configuration template: bash cp servers_config.example.json servers_config.json 4. Add the server entry into your MCP client configuration using absolute paths for both the Python executable and the server script: json { "mcpServers": { "svg2png": { "command": "/absolute/path/to/venv/bin/python", "args": ["/absolute/path/to/svg2png_mcp/src/server.py"] } } } 5. Restart your MCP client such as Claude Desktop or Cursor.

What you can do with SVG to PNG MCP Server

  • Rendering AI-generated SVG illustrations and icons into raster PNG files directly within your client. * Generating preview images in a specified output folder during automated UI design and coding workflows. * Testing local vector graphics code via the built-in test client before sharing with other applications. * Producing standardized raster assets from raw SVG markup during multi-step automated development tasks.

Key facts

  • https://github.com/longbowzz/svg2png_mcp
  • Design, Media & Creative, Files, Documents & PDFs
  • cairosvg, graphics, image-conversion, png, svg

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server — MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON — MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP MD2PDF Server — MCP MD2PDF Server is an MCP server that enables automated conversion of Markdown documents into formatted PDF files with full…
  • MCP Media Processing Server — MCP Media Processing Server is an MCP server that connects AI assistants like Claude Desktop to local media manipulation utilities,…
  • MCP Knowledge Base — MCP Knowledge Base is an MCP server that processes local documents and answers queries based on their contents through similarity…
  • MCP Music Analysis — MCP Music Analysis is an MCP server that enables AI clients like Claude to inspect and process sound recordings using…

What can SVG to PNG MCP Server do?

SVG to PNG MCP Server allows compatible MCP clients to convert SVG code into standard PNG image files. It exposes an svg_to_png tool powered by the CairoSVG engine, handles execution asynchronously, and outputs the resulting PNG files into designated local directories.

How do I install SVG to PNG MCP Server?

You can install it automatically for Claude Desktop using Smithery by running npx -y @smithery/cli install @longbowzz/svg2png_mcp --client claude. Alternatively, create a Python virtual environment, install requirements from the repository, and register the absolute paths in your client config.

Which MCP clients work with SVG to PNG MCP Server?

The server works with any standard Model Context Protocol client that supports local stdio server connections. This includes Cursor, Claude Desktop, and custom MCP clients utilizing the official SDK.

Why does the configuration require absolute paths?

Absolute paths are required for the Python interpreter binary and the server.py file so external MCP clients can reliably launch the process regardless of their current working directory or environment settings.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories