mcpField
M
Md2svg Mcp

Md2svg Mcp

Local
github.com/yossi-leeMedia & Design0Updated 72w ago

About Md2svg Mcp

Md2svg Mcp is an MCP server for turning Markdown into SVG images. It suits MCP clients that need to render formatted text, with options for dimensions, padding, and colors.

Key features

  1. 01Markdown-to-SVG conversion
  2. 02Rendering headings, lists, code, and tables
  3. 03Customizable dimensions, padding, and colors

Use cases

  1. 01Creating an SVG from Markdown content
  2. 02Adjusting SVG layout and appearance

MCP support

It exposes a `markdown_to_svg` tool to MCP clients for converting Markdown text into SVG files.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"md2svg": {
"command": "uvx",
"args": [
"md2svg-mcp"
]
}
}
}
Run commanduvx md2svg-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypimd2svg-mcp

Tools

1

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
widthintegerNoSVG image width
md_textstringYesMarkdown text content
paddingintegerNoSVG image padding
output_file_pathstringNoOutput SVG file path

Details

From the project README

Md2svg-mcp

A Model Context Protocol (MCP) server that converts Markdown text to SVG images.

Overview

This MCP server provides a tool to transform Markdown content into SVG format. It supports various Markdown elements, including headings, lists, code blocks, and tables. The server can be easily integrated into any MCP client, allowing users to visualize Markdown content in a scalable vector graphic format.

Features

  • Markdown Parsing: Converts Markdown text to structured blocks.
  • SVG Generation: Renders Markdown elements as SVG elements.
  • Customization: Supports customizable output dimensions, padding, and colors.
  • MCP Integration: Compatible with any MCP client.

Installation

{
  "mcpServers": {
    "md2svg-mcp": {
      "command": "uvx",
      "args": [
        "md2svg-mcp"
      ]
    }
  }
}

Configuration

The markdown_to_svg tool supports the following parameters:

  • md_text: The Markdown text to be converted.
  • output_file: The output SVG file name (default: output.svg).
  • width: The width of the SVG image (default: 720).
  • padding: The padding around the SVG content (default: 50).

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.