Skip to main content

A MCP server that converts Markdown text to SVG images.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

md2svg_mcp-0.1.8.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

md2svg_mcp-0.1.8-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file md2svg_mcp-0.1.8.tar.gz.

File metadata

  • Download URL: md2svg_mcp-0.1.8.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for md2svg_mcp-0.1.8.tar.gz
Algorithm Hash digest
SHA256 a6ed8caec09366e539bfc36a6134a2b37ec259ecf8a2f99f84306020f5150c4f
MD5 8d2f1da144282487295e3d751548a9ca
BLAKE2b-256 6272fea84aab57b6d2715f41b529d98e2e105d00f06e0e5294c950d3031dcd63

See more details on using hashes here.

File details

Details for the file md2svg_mcp-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: md2svg_mcp-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for md2svg_mcp-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a9720f3589b405df455afce0776ab9030a6c81f296d2068504b2fa4a3e59da
MD5 4a656871c882e909aabb32487a62a0ad
BLAKE2b-256 eae2604ac51dd9170bc1dd99ee3d5b6ae70d625375dfe9af88e976ddb96e99e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page