MCP server
by surferdot
Convert SVG to PNG or JPG with customizable quality, scale, and background. Fast image processing using TypeScript and S
Converts SVG code to PNG or JPG images with customizable scaling, quality, and background color options. Uses the Sharp library for high-quality image processing.
SVG Converter is a community-built MCP server published by surferdot that provides AI assistants with tools and capabilities via the Model Context Protocol. Convert SVG to PNG or JPG with customizable quality, scale, and background. Fast image processing using TypeScript and S It is categorized under file systems.
You can install SVG Converter in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
SVG Converter is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Read, analyze, and understand files in your project
Example
Summarize README, analyze code structure, find TODO comments across codebase
Navigate large codebases 5x faster, understand projects quickly
Create, move, rename, and organize files based on natural language instructions
Example
Organize downloads by file type, rename files following convention, batch process images
Save hours on manual file organization
Search files for patterns, extract data, find information across directories
Example
Find all config files with API keys, extract emails from documents, search logs for errors
Find information instantly instead of manual grep/find
Share your MCP server with the developer community
I recommend SVG Converter for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
SVG Converter is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
SVG Converter reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
I recommend SVG Converter for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Useful MCP listing: SVG Converter is the kind of server we cite when onboarding engineers to host + tool permissions.
SVG Converter has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
We evaluated SVG Converter against two servers with overlapping tools; this profile had the clearer scope statement.
According to our notes, SVG Converter benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
SVG Converter is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Strong directory entry: SVG Converter surfaces stars and publisher context so we could sanity-check maintenance before adopting.
showing 1-10 of 75
<a name="english"></a>
A Model Context Protocol (MCP) server that provides tools for converting SVG code to high-quality PNG and JPG images with detailed customization options.
npx mcp-svg-converter /path/to/allowed/directory
npm install -g mcp-svg-converter
mcp-svg-converter /path/to/allowed/directory
Clone this repository
git clone https://github.com/surferdot/mcp-svg-converter.git
cd mcp-svg-converter
Install dependencies
npm install
Build the project
npm run build
Run the server by specifying one or more allowed directories where the converted images can be saved:
node build/index.js /path/to/allowed/directory1 /path/to/allowed/directory2
Download and install Claude Desktop
Create or confirm you have access to an output directory:
# macOS/Linux
mkdir -p ~/Desktop/svg-output
# Windows
mkdir "%USERPROFILE%\Desktop\svg-output"
Configure Claude Desktop by editing the configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonOpen the Claude app, click on the Claude menu in your system menu bar and select "Settings..."
Click on "Developer" in the left sidebar
Click "Edit Config" to open the configuration file
Add this server configuration:
{
"mcpServers": {
"svg-converter": {
"command": "npx",
"args": [
"mcp-svg-converter",
"/absolute/path/to/output/directory"
]
}
}
}
If you've installed the package globally:
{
"mcpServers": {
"svg-converter": {
"command": "mcp-svg-converter",
"args": [
"/absolute/path/to/output/directory"
]
}
}
}
If you've built from source:
{
"mcpServers": {
"svg-converter": {
"command": "node",
"args": [
"/absolute/path/to/mcp-svg-converter/build/index.js",
"/absolute/path/to/output/directory"
]
}
}
}
When Claude Desktop restarts, if configured correctly:
svg-to-png and svg-to-jpg tools.In Claude Desktop, send a message like:
Please convert this SVG to PNG and save it to my output directory:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" width="200" height="100">
<rect x="10" y="10" width="80" height="80" fill="#4285f4" />
<circle cx="140" cy="50" r="40" fill="#ea4335" />
<path d="M10 50 L90 50 L50 90 Z" fill="#fbbc05" />
<text x="100" y="20" font-family="Arial" font-size="12" text-anchor="middle" fill="#34a853">SVG Example</text>
</svg>
Please convert this SVG to a JPG with 95% quality and 2x scaling:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
<rect width="200" height="200" fill="#f0f0f0" />
<circle cx="100" cy="100" r="80" fill="#ff6b6b" />
<path d="M100 50 L130 150 L70 150 Z" fill="white" />
</svg>
Converts SVG code to a high-quality PNG image with transparency support.
Parameters:
svgCode (string, required): The SVG code to convertoutputPath (string, required): Path where the PNG file should be savedbackgroundColor (string, optional): Background color (default: transparent)scale (number, optional): Scale factor for higher resolution (default: 1)Converts SVG code to a high-quality JPG image.
Parameters:
svgCode (string, required): The SVG code to convertoutputPath (string, required): Path where the JPG file should be savedbackgroundColor (string, optional): Background color (default: white)quality (number, optional): JPEG quality from 1-100 (default: 90)scale (number, optional): Scale factor for higher resolution (default: 1)You can specify multiple allowed output directories for more flexible file saving:
{
"mcpServers": {
"svg-converter": {
"command": "npx",
"args": [
"mcp-svg-converter",
"/Users/yourusername/Desktop/svg-output",
"/Users/yourusername/Documents/svg-images",
"/Users/yourusername/Downloads"
]
}
}
}
Specify detailed file paths in your request:
Please convert this SVG to PNG, and save it as "colorful_shapes.png" in my output directory.
<svg>...</svg>
If you request saving to a non-allowed directory, the converter automatically redirects to an allowed directory and informs you of the actual save location.
~/Library/Logs/Claude/mcp*.log%APPDATA%\Claude\logs\mcp*.logmcp-svg-converter is correctly installedmcp-svg-converter is globally installed or correctly reference npxYou can use the MCP Inspector to debug and test the server directly:
npx @modelcontextprotocol/inspector npx mcp-svg-converter /path/to/allowed/directory
This opens an interactive interface where you can test all available tools without going through Claude Desktop.
MIT
<a name="中文"></a>
MCP SVG 转换器是一个基于模型上下文协议 (MCP) 的服务器,提供将 SVG 代码转换为高质量 PNG 和 JPG 图像的工具,支持详细的自定义选项。
npx mcp-svg-converter /path/to/allowed/directory
npm install -g mcp-svg-converter
mcp-svg-converter /path/to/allowed/directory
克隆此仓库
git clone https://github.com/surferdot/mcp-svg-converter.git
cd mcp-svg-converter
安装依赖
npm install
构建项目
npm run build
通过指定一个或多个允许存储转换后图像的目录来运行服务器:
node build/index.js /path/to/allowed/directory1 /path/to/allowed/directory2
下载并安装 Claude Desktop
创建或确认你有权限访问的输出目录:
# macOS/Linux
mkdir -p ~/Desktop/svg-output
# Windows
mkdir "%USERPROFILE%\Desktop\svg-output"
配置 Claude Desktop:
编辑配置文件:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json添加服务器配置:
{
"mcpServers": {
"svg-converter": {
"command": "npx",
"args": [
"mcp-svg-converter",
"/absolute/path/to/output/directory"
]
}
}
}
如果你已全局安装了此包:
{
"mcpServers": {
"svg-converter": {
"command": "mcp-svg-converter",
"args": [
"/absolute/path/to/output/directory"
]
}
}
}
如果你从源代码构建:
{
"mcpServers": {
"svg-converter": {
"command": "node",
"args": [
"/absolute/path/to/mcp-svg-converter/build/index.js",
"/absolute/path/to/output/directory"
]
}
}
}
当 Claude Desktop 重启后,如果配置正确:
Generate boilerplate files, apply templates, create project structures
Example
Create React component with tests and styles, generate OpenAPI spec, scaffold new project
Eliminate repetitive file creation work
Prerequisites
Time Estimate
10-20 minutes including configuration
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
MCP server provides file I/O operations (read, write, search, metadata) as tools Claude can invoke with natural language instructions.
Protocols
Compatibility
✓ Use when
Use for code analysis, file organization, content search, template generation, and automating repetitive file operations. Best for local development workflows.
✗ Avoid when
Avoid for system-critical files, sensitive credentials, production environments, or when file integrity is paramount. Don't use on files you can't afford to lose.