Skip to main content
Glama

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.

Related MCP server: Vizdown-MCP

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.

Available Tools

1 tool
markdown_to_svgC

mardown转换为svg图片

ParametersJSON Schema
NameRequiredDescriptionDefault
md_textYes
output_file_pathNooutput.svg
widthNo
paddingNo

TDQS

C2.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the conversion function without mentioning side effects (e.g., file creation, overwriting), error handling, performance, or output details. This is inadequate for a tool that likely writes files and processes input, leaving the agent with insufficient behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise with a single phrase, which is efficient and front-loaded. However, it includes a typo ('mardown'), slightly reducing clarity. Overall, it's appropriately sized for a simple tool but could benefit from minor correction.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 4 parameters with 0% schema coverage, no annotations, and no output schema, the description is incomplete. It only states the basic function without addressing parameter meanings, behavioral traits, or output format. For a conversion tool with file output, this leaves significant gaps in understanding how to use it effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate by explaining parameters, but it adds no parameter information beyond the tool's name. Parameters like 'md_text', 'output_file_path', 'width', and 'padding' are undocumented in both schema and description, leaving their purposes unclear. The description fails to provide any semantic context for the inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'mardown转换为svg图片' (markdown to SVG image) clearly states the tool's function as converting markdown to SVG, which is a specific verb+resource. However, it contains a typo ('mardown' instead of 'markdown'), and there are no sibling tools mentioned, so differentiation isn't applicable. The purpose is understandable but lacks precision due to the error.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or context. It simply states what the tool does without any usage instructions or exclusions. Since no sibling tools are listed, this isn't a major gap, but it still lacks basic operational context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

C2.8/5.0
Disambiguation5/5

With only one tool, there is no possibility of confusion or overlap between tools. The tool's purpose is clearly defined as converting markdown to SVG images, making it unambiguous in isolation.

Naming Consistency5/5

The single tool name 'markdown_to_svg' follows a clear verb_noun pattern (convert markdown to SVG). With only one tool, consistency is inherently perfect as there are no other names to compare against.

Tool Count2/5

A single tool is too few for most practical server purposes, as it limits functionality and flexibility. While it might suffice for a very narrow task like markdown-to-SVG conversion, it feels thin and under-scoped for typical MCP server use cases.

Completeness3/5

For the narrow domain of markdown-to-SVG conversion, the single tool covers the core function. However, there are obvious gaps such as configuration options (e.g., styling, sizing), error handling tools, or complementary operations like SVG validation or batch processing, making the surface notably incomplete for broader agent workflows.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yossi-lee/md2svg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server