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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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