Converts Markdown files and raw content into professionally styled PDF documents with support for headers, tables, and syntax highlighting.
Supports the automatic rendering of Mermaid diagrams, including flowcharts and sequence diagrams, directly within generated PDFs.
Allows the use of YAML front matter to define and apply document metadata and properties during the conversion process.
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., "@md-mermaid-to-pdf-mcpConvert my README.md file to an A4 PDF named documentation.pdf"
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.
md-mermaid-to-pdf-mcp
A powerful Model Context Protocol (MCP) server that converts Markdown files and content to beautifully styled PDFs with Mermaid diagram support.
✨ Features
🔄 Two conversion modes: File-to-PDF and content-to-PDF
📊 Mermaid diagrams: Automatic rendering of flowcharts, sequence diagrams, and more
🎨 Modern styling: Professional typography with Inter font and syntax highlighting
📄 Multiple formats: A4, A3, A5, Letter, Legal, Tabloid
⚙️ Configurable margins: Custom spacing in inches, mm, cm
📝 Front matter support: YAML metadata for document properties
🎯 Accessibility: Tagged PDFs with proper outline structure
🚀 Quick Start
Option 1: Use with npx (Recommended)
Option 2: Global Installation
🔧 Claude Desktop Integration
Add to your Claude Desktop configuration:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Restart Claude Desktop after configuration.
📖 Usage Examples
Convert Markdown File to PDF
Convert Markdown Content to PDF
Custom Formatting
Mermaid Diagrams
Front Matter Support
🤝 Contributing
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🐛 Issues & Support
Found a bug or need help? Please open an issue on GitHub.
🌟 Show Your Support
Give a ⭐️ if this project helped you!