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.7.tar.gz (24.3 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.7-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for md2svg_mcp-0.1.7.tar.gz
Algorithm Hash digest
SHA256 4812c0459a06aa1648a0507857ca2a4291ba0b716d0a1d71a34e6f2edc2d1679
MD5 3f010aca8cecfc4fc02edbcc2eb91b09
BLAKE2b-256 e63ddeada1d2cf6785f7896208359dbce58d2436eaf6c52602f8504b460a50a2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for md2svg_mcp-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bc37eb29028a5866d50589f18d375e51a23ad13e013c1c4845a0b4d785b85904
MD5 b51bbf9a2ce97a14e0c7a87095c98c4a
BLAKE2b-256 b9be938abd4a70accad404a2ee95cd2f01a98de18042b33324ebe7034cd3a5ca

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