Converts Markdown documents into beautifully styled knowledge cards with support for headers, text styles, lists, code blocks, quotes, tables, and other Markdown elements
Uses npm for dependency management and running the server in different modes
Provides TypeScript interfaces for configuring card styles and integrating with the MCP server's tools
Markdown to Card - MCP Tool
A powerful MCP tool for converting Markdown documents into beautiful knowledge card images, supporting multiple card styles, perfect for blogs and social media sharing.
Features
🎨 Multiple Card Styles
Support for 20+ beautiful card styles:
- Warm Soft - Perfect for life sharing
- Elegant Gray - Professional business style
- Dreamy Gradient - Creative design style
- Fresh Natural - Green eco-friendly theme
- Tech Blue - Dedicated for technical content
- Elegant Purple - Premium elegant style
- Vibrant Orange - Energetic design
- More styles...
📝 Complete Markdown Support
- ✅ Headers (H1-H6)
- ✅ Paragraphs and text styles
- ✅ Ordered and unordered lists
- ✅ Code blocks (with syntax highlighting)
- ✅ Quote blocks
- ✅ Tables
- ✅ Horizontal rules
- ✅ Math formulas (planned)
- ✅ Flowcharts and sequence diagrams (planned)
🚀 Multiple Usage Methods
- MCP Server - Integrate with Claude, Cursor, and other AI tools
- API Service - HTTP interface for integration with any application
- Command Line Tool - Direct terminal usage
Quick Start
1. Install Dependencies
2. Build Project
3. Run Service
Run as MCP Server
Run as API Server
Usage
MCP Server Mode
The MCP server provides the following tools:
1. List All Available Styles
2. Get Specific Style Details
3. Preview Card
4. Generate and Save Card
5. List Generated Images
6. Delete Image
API Server Mode
The API server provides REST interfaces:
Get All Styles
Get Specific Style
Preview Card
Generate Card
Get Generated Image
List All Images
Delete Image
Style Configuration
Each style contains the following configuration:
Integration with MCP Clients
Configuration in Claude Desktop
Add the following to Claude Desktop's configuration file:
Usage in Cursor
- Install MCP extension
- Configure server address
- Start using card generation features
Development
Project Structure
Adding New Styles
- Add new style in
src/styles/cardStyles.ts
- Ensure style ID is unique
- Test style effects
- Submit changes
Extending Features
- Add new Markdown syntax support
- Implement more image format outputs
- Add animation effects
- Support custom fonts
FAQ
Q: How to customize styles?
A: Modify the src/styles/cardStyles.ts
file to add new style configurations.
Q: Which image formats are supported?
A: Currently supports PNG format, with plans to add JPEG, WebP, and other formats.
Q: How to handle Chinese fonts?
A: Specify Chinese fonts in style configuration, such as "PingFang SC, Microsoft YaHei".
Q: What if image generation is slow?
A: You can reduce image size or use simpler styles to improve generation speed.
License
Apache License 2.0
Contributing
Welcome to submit Issues and Pull Requests to improve this tool!
Changelog
v1.0.0
- Initial version release
- Support for 20+ card styles
- Complete Markdown syntax support
- Dual MCP and API mode support
- Real-time preview and image generation features
This server cannot be installed
A powerful MCP tool that converts Markdown documents into beautiful knowledge card images with 20+ card styles, suitable for sharing on blogs and social media.
Related MCP Servers
- AsecurityAlicenseAqualityMCP server for seamless document format conversion using Pandoc, supporting Markdown, HTML, PDF, DOCX (.docx), csv and more.Last updated -1330PythonMIT License
- AsecurityFlicenseAqualityAn MCP server for converting Markdown documents to PDF files.Last updated -1689JavaScript
- -securityAlicense-qualityA tool for Model Context Protocol (MCP) that allows you to analyze web content and add it to your knowledge base, storing content as Markdown files for easy viewing with tools like Obsidian.Last updated -9PythonMIT License
- -securityAlicense-qualityAn MCP server that provides multiple file conversion tools for AI agents, supporting various document and image format conversions including DOCX to PDF, PDF to DOCX, image conversions, Excel to CSV, HTML to PDF, and Markdown to PDF.Last updated -15PythonMIT License