mcp-svg-marp
Converts SVG files to Marp presentations, with text extraction and PNG image embedding.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-svg-marpConvert this flowchart SVG to a Marp presentation"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP SVG-Marp Server
An MCP (Model Context Protocol) server that converts SVG files to Marp presentations.
Features
Convert SVG files to Marp markdown presentations
Extract text content from SVG files
Generate PNG images from SVG for embedding in presentations
Analyze SVG structure and suggest presentation layout
Support for different Marp themes (default, gaia, uncover)
Related MCP server: marp-agent-mcp
Prerequisites
Node.js 18+
One of the following for SVG to PNG conversion:
ImageMagick (
convertcommand)Inkscape
librsvg (
rsvg-convertcommand)
Installation
Using Nix (Recommended)
If you have Nix installed, you can use the provided flake:
# Enter development shell with all dependencies
nix develop
# Install Node.js dependencies
npm install
# Build the TypeScript project
npm run buildManual Installation
# Install system dependencies (Ubuntu/Debian)
sudo apt-get install imagemagick inkscape librsvg2-bin
# Install Node.js dependencies
npm install
# Build the project
npm run buildUsage
Starting the MCP Server
npm startThe server communicates via stdio and implements the MCP protocol.
Available MCP Tools
convert_svg_to_marp
Converts an SVG file to a Marp presentation.
Parameters:
svgPath(required): Path to the input SVG fileoutputPath(optional): Path for the output Marp markdown fileoptions(optional):theme: Marp theme to use ("default", "gaia", or "uncover")includeImage: Include the SVG as a PNG image (default: true)extractText: Extract text from SVG for content (default: true)
Example:
{
"tool": "convert_svg_to_marp",
"arguments": {
"svgPath": "/path/to/diagram.svg",
"outputPath": "/path/to/presentation.md",
"options": {
"theme": "gaia",
"includeImage": true,
"extractText": true
}
}
}analyze_svg
Analyzes an SVG file and suggests a Marp presentation structure.
Parameters:
svgPath(required): Path to the SVG file to analyze
Example:
{
"tool": "analyze_svg",
"arguments": {
"svgPath": "/path/to/diagram.svg"
}
}Output Format
The generated Marp markdown includes:
Front matter with Marp configuration
Title slide with SVG title or first text element
Image slide with the converted PNG (if enabled)
Content slide with extracted text as bullet points (if available)
Metadata slide with image dimensions and format information
Example Output
---
marp: true
theme: default
paginate: true
backgroundColor: #fff
backgroundImage: linear-gradient(to bottom right, #6366F1, #8B5CF6)
style: |
section {
font-family: 'Arial', sans-serif;
}
h1 {
color: #FFFFFF;
font-size: 56px;
}
---
# My SVG Diagram
Description of the diagram
---
<!-- _class: centered -->

---
## Content
- First text element
- Second text element
- Third text element
---
## Image Information
- **Dimensions**: 800 × 600 pixels
- **Format**: SVG (Scalable Vector Graphics)Using with Claude
This MCP server is designed to work seamlessly with Claude. When you ask Claude to create slides or presentations from SVGs, it will:
Automatically create professional SVG designs based on your content
Convert to Marp using the
convert_svg_to_marptoolProvide both files - the original SVG and the Marp markdown
Trigger Phrases
Claude will automatically use this tool when you say things like:
"Convert this SVG to a Marp presentation"
"Make a slide from this diagram"
"Create a Marp presentation about [topic]"
"このSVGをMarpプレゼンに変換して"
Development
# Run in development mode (with hot reload)
npm run dev
# Build the project
npm run build
# Start the built server
npm startIntegration with Claude Desktop
To use this MCP server with Claude Desktop, add it to your MCP servers configuration:
{
"mcpServers": {
"svg-marp": {
"command": "node",
"args": ["/path/to/mcp-svg-marp/dist/index.js"]
}
}
}Marp Output Capabilities
From the generated Marp markdown, you can create:
HTML presentations - Interactive slideshows for web browsers
PDF documents - For printing or sharing
PNG/JPEG images - Individual slide images
PowerPoint files - Using Marp CLI's PPTX export
Converting Marp to Other Formats
# Install Marp CLI globally
npm install -g @marp-team/marp-cli
# Convert to HTML
marp presentation.md -o presentation.html
# Convert to PDF
marp presentation.md -o presentation.pdf
# Convert to PPTX
marp presentation.md -o presentation.pptx
# Convert to PNG images
marp presentation.md -o slide.pngLicense
MIT
Available Tools
2 toolsanalyze_svgB
Analyze an SVG file and suggest Marp presentation structure
| Name | Required | Description | Default |
|---|---|---|---|
| svgPath | Yes | Path to the SVG file to analyze |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description must carry the full behavioral burden. It conveys a read-only intent via 'Analyze' but does not disclose what the output looks like, whether it modifies anything, or any limitations. The minimal wording fails to give the agent a clear picture of the tool's runtime behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence that avoids redundancy. It directly states the tool's purpose and output, with no wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is no output schema, so the description should at least hint at the returning structure or format, but it does not. Additionally, the sibling tool's existence suggests a workflow context that is unaddressed, leaving the description incomplete for practical use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% coverage; the only parameter, svgPath, is described as 'Path to the SVG file to analyze', which is sufficient. The description does not add additional parameter-level detail, but baseline 3 applies since the schema fully documents the parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific action ('Analyze an SVG file') and the intended output ('suggest Marp presentation structure'), making the tool's purpose immediately clear. It distinguishes itself from the sibling tool convert_svg_to_marp by emphasizing the suggestion/analysis aspect rather than direct conversion.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no explicit guidance on when to use this tool versus the sibling convert_svg_to_marp. It only states what it does, leaving the when-to-use decision entirely implicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
convert_svg_to_marpB
Convert an SVG file to a Marp presentation
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Conversion options | |
| svgPath | Yes | Path to the input SVG file | |
| outputPath | No | Path for the output Marp markdown file (optional, defaults to same directory as SVG) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, and the description does not disclose any side effects such as file creation, overwriting behavior, or required permissions. It also omits the default output path behavior, leaving the agent without crucial operational details.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence that immediately states the tool's purpose without any unnecessary words or repetition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description is minimal and fails to mention conversion options, the optional outputPath default, or how it relates to the sibling tool. While the schema provides parameter details, the description lacks operational context needed for an agent to fully understand the tool's behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all parameters. The description adds no additional parameter semantics, meeting the baseline expectation for coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool converts an SVG file to a Marp presentation, using a specific verb and resource. The verb 'convert' is distinct from the sibling tool 'analyze_svg', making the purpose unambiguous and well-differentiated.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool versus the sibling 'analyze_svg', nor any mention of prerequisites or conditions. The description only provides the basic action without usage context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
Each tool has a clearly distinct purpose: one analyzes an SVG to suggest a Marp structure, the other converts an SVG to a Marp presentation. There is no functional overlap or ambiguity.
Both tool names follow a consistent snake_case verb_noun pattern: convert_svg_to_marp and analyze_svg. The naming is predictable and clearly indicates the action and target.
With only 2 tools, the server feels slightly thin for a conversion-oriented domain. However, the tools are tightly focused and cover the primary workflow, making the count borderline but defensible.
The core workflow of analyzing an SVG for structure and then converting it to Marp is fully covered. Minor gaps exist, such as no tool for managing multiple conversions or editing Marp output, but these are not dead ends for the main purpose.
Maintenance
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
An MCP server that provides tools to discover and retrieve podcast episodes transcripts.
An MCP server that automatically collects feedback on your MCP server.
An MCP server that integrates with Discord to provide AI-powered features.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server for converting Markdown documents to PDF files.17637MIT
- FlicenseNot gradedqualityAmaintenanceMCP server for generating slides from natural language, with interactive preview and export to PDF, PPTX, and Markdown.19
- AlicenseAqualityAmaintenanceAn MCP server that converts raster images (PNG, JPG, WEBP) to scalable SVG vector graphics.15Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that generates diagrams from Mermaid code in multiple formats (PNG, PDF, SVG).21MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/koppe-pan/mcp-svg-marp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server