Md2svg is an MCP server that converts Markdown text into scalable vector graphics (SVG) images directly through Model Context Protocol clients. It connects LLM-based assistants such as Claude Desktop to a local rendering engine that parses Markdown syntax and outputs styled vector files. Software developers, technical writers, and content creators use Md2svg to generate clean visual assets from plain text without relying on external graphic design software or browser-based screenshot tools. The server handles common formatting elements including headings, lists, tables, and code blocks, translating them into crisp vector structures. Users can customize rendering details such as image width, canvas padding, and colors to match presentation slides, documentation themes, or web assets. By integrating this server, AI workflows can programmatically generate diagrammatic text cards, shareable snippets, and structured vector summaries as part of everyday text processing pipelines.
Category: Design, Media & Creative
Tags: conversion, graphics, markdown, svg
To install and configure Md2svg with an MCP client such as Claude Desktop, follow these steps: 1. Ensure you have uv installed on your machine to execute packages via uvx. 2. Open your client's configuration file (for example, claude_desktop_config.json). 3. Add md2svg-mcp to your mcpServers object: json { "mcpServers": { "md2svg-mcp": { "command": "uvx", "args": [ "md2svg-mcp" ] } } } 4. Save the file and restart your MCP client to access the markdown_to_svg tool.
Part of MCP Servers
Md2svg is a Model Context Protocol server that accepts raw Markdown content and transforms it into standalone SVG images. It allows AI clients to render structured text like headings, lists, tables, and code into scalable vector visual outputs.
You can configure Md2svg in your MCP client configuration by adding md2svg-mcp under mcpServers. It runs using the uvx command with md2svg-mcp as an argument, requiring no manual git cloning or complex environment setup.
Md2svg parses standard structured Markdown components. It supports headings, bulleted and numbered lists, code blocks, and formatted tables, converting each element into equivalent styled SVG paths and vector elements.
Yes, the markdown_to_svg tool allows you to specify parameters including the output file name, overall SVG canvas width (defaulting to 720), and padding around the content (defaulting to 50), along with custom color styles.
Md2svg works with any client that implements the standard Model Context Protocol, including Claude Desktop and compatible agent environments capable of executing local command-line tools.