MCP SVG Animator
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 AnimatorCreate an animated SVG of a red circle that pulses"
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 Animator
An MCP server for creating animated SVG diagrams. You can create a diagram from text input, photos of sketches and YAML specifications.
You don't normally need to use YAML; just tell Claude code what you want, upload photos of sketches, and then iterate until you've got what you want.
You can see some sample inputs and outputs on the Demo Page
File Output Configuration
By default, the MCP server does not allow writing files to your filesystem. To enable file output (SVG, PNG, or video), create a configuration file at ~/.config/mcp-svg-animator/config.yaml:
file_output:
allowed:
- path: "~/diagrams"
types: [svg, png, webm]
- path: "/tmp/svg-animator/**"
types: [svg, png]
- path: "~/projects/**/output"
types: [svg, png, webm]Configuration options:
path: Directory where files can be written. Supports~expansion and glob patterns (*for single level,**for recursive).types: List of allowed file types (svg,png,webm).
Files in subdirectories of allowed paths are also permitted.
Related MCP server: Vizdown-MCP
Features
Create and iterate on your requirements using natural language and/or rough diagrams
Multiple shape types - circle, rectangle, line, text, path, ellipse, group
Connection elements - Draw lines between element centers with automatic positioning
Text backgrounds - Auto-generate background panels behind text labels
Path segments - Build curves with move_to, line_to, cubic_bezier, quadratic_bezier, arc
SMIL animations - Animate attributes and transforms
Reusable definitions - Define once, use many times
Library imports - Share definitions across diagrams
Relative positioning - Reference other elements' positions
Direct file output - Write SVG directly to file, reducing token usage
PNG export - Generate PNG previews of static diagrams
Video export - Record animations to .webm video
Installation
pip install mcp-svg-animator
# Install Playwright browsers (for video generation)
playwright install chromiumUsage with Claude Code
Register the MCP server globally:
claude mcp add --scope user svg-animator -- python -m mcp_svg_animatorThen in any Claude Code session, ask Claude code to create animations:
"Create an animated SVG of a red circle that pulses"
See docs/usage.md for more details.
MCP Tools
You don't need to explicitly invoke these. Ask Claude Code to create the animation you describe, and it will invoke the relevant tools.
Tool | Description |
| Generate SVG from YAML specification. Optional |
| Record SVG animation to .webm video |
Development
# Clone the repository
git clone https://github.com/romilly/mcp-svg-animator.git
cd mcp-svg-animator
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
pip install -r requirements-test.txt
# Install Playwright browsers (for video generation)
playwright install chromium
# Run tests
pytest
# Type checking
pyright src/Examples
See the examples/ directory for sample YAML files and generated SVGs:
demo.yaml- Basic shapesstick_figure.yaml- Static stick figurestick_figure_waving.yaml- Animated wavingcurves.yaml- Bezier curves and arcsmeeting.yaml- Two figures, one walks to meet the otherconnection_demo.svg- Architecture diagram using connection elementsballoon_friends.svg- Animated stick figures with stretching line
Acknowledgments
This project uses the following open source packages:
MCP - Model Context Protocol SDK (MIT)
Pydantic - Data validation (MIT)
drawsvg - SVG generation (MIT)
PyYAML - YAML parsing (MIT)
Playwright - Video recording (Apache 2.0)
License
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.
Related MCP Servers
- Alicense-qualityBmaintenanceEnables AI assistants to create and animate graphics in PinePaper Studio using natural language, supporting text, shapes, behavior-driven animations, procedural backgrounds, and SVG export.Last updated5342MIT
- AlicenseAqualityDmaintenanceConverts Markdown files into professional diagrams such as flowcharts, mind maps, and architecture diagrams using Mermaid.js and custom SVG renderers. It enables users to list, render, and export visualizations in multiple formats including SVG, PNG, and PDF.Last updated3MIT
- Alicense-qualityCmaintenanceTurn Excalidraw diagrams into keyframe animations. AI-powered creation via MCP, E2E encrypted sharing, export to MP4/WebM/GIF/SVG.Last updated1546MIT
- Alicense-qualityDmaintenanceEnables creating, manipulating, and managing Mermaid diagrams with automatic saving and multi-format conversion from JSON, CSV, Python, Markdown, and plain text.Last updated7MIT
Related MCP Connectors
Generate cloud architecture diagrams, flowcharts, and sequence diagrams.
Create, validate, edit, export (markdown/svg/png/mermaid), and search JSON Canvas files.
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…
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/romilly/mcp-svg-animator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server