Content
# MD2Card MCP Server
homepage: https://md2card.cn
MD2Card
Markdown to Knowledge Cards
Convert Markdown documents into beautiful knowledge cards, supporting multiple styles
## Installation and Usage
### Method 1: Using npx (Recommended)
Run directly using npx (need to set API key environment variable):
```bash
# Set API key and run
MD2CARD_API_KEY="Your API Key" npx md2card-mcp-server
```
### Method 2: Global Installation
```bash
# Install
npm install -g md2card-mcp-server
# Run (need to set API key environment variable)
MD2CARD_API_KEY="Your API Key" md2card-mcp-server
```
### Method 3: Local Configuration
Clone the project locally, find the index.js path and replace it with the client mcp configuration file
## Features
- Supports 22 theme styles: Apple Notes, Pop Art, Art Deco, Glassmorphism, Warm and Cozy, Minimalist Gray, Dreamy Gradient, Fresh and Natural, Purple Xiaohongshu, Notebook, Dark Tech, Retro Typewriter, Watercolor Art, Chinese Traditional, Children's Storybook, Business Brief, Japanese Magazine, Minimalist Black and White, Cyberpunk
- Intelligent size adaptation
- Three content splitting modes: default automatic splitting
- Provides standardized interface through MCP protocol
- **New Feature**: Supports direct reading of Markdown files
- **New Feature**: Supports specifying card type/size directly through type parameter
- **New Feature**: Supports crawling WeChat public account articles and converting them to Markdown format
- **New Feature**: Automatically extracts article title, author, description, and cover image
## Usage
### Method 1: Provide Markdown Content
```json
{
"markdown": "# Title\n\nContent"
}
```
### Method 2: Provide Markdown File Path
```json
{
"markdownFile": "/path/to/your/file.md"
}
```
### Method 3: Specify Card Type/Size
You can specify the card type directly through the `type` parameter, supporting the following types:
- Xiaohongshu: 440x586
- Square: 500x500
- Mobile Poster: 440x782
- A4 Paper Print: 595x842
```json
{
"markdown": "# Title\n\nContent",
"type": "Xiaohongshu"
}
```
You can also specify through width and height parameters:
```json
{
"markdown": "# Title\n\nContent",
"width": "Xiaohongshu",
"height": 586
}
```
### Method 4: Crawl WeChat Public Account Articles
Use the `wechat_scraper` tool to crawl WeChat public account articles:
```json
{
"url": "https://mp.weixin.qq.com/s/your-article-id"
}
```
The returned result contains the complete Markdown format article, including:
- Article title
- Author information
- Article description
- Cover image
- Main content
## Client Configuration
### General MCP Client Configuration
Add the following content to the MCP client configuration file:
```json
{
"md2card-server": {
"command": "npx",
"args": ["md2card-mcp-server@latest"],
"env": {
"MD2CARD_API_KEY": "Your API Key"
}
}
}
```
### Cursor Client Configuration
Add the following content to the Cursor MCP client configuration file:
```json
{
"md2card-server": {
"command": "npx",
"args": ["-y", "md2card-mcp-server@latest"],
"env": {
"MD2CARD_API_KEY": "Your API Key"
}
}
}
```
> Note: The MD2CARD_API_KEY environment variable is required and will only be checked during actual runtime. It is not needed during package installation.
Key application address: https://md2card.cn/zh?referralCode=github
Connection Info
You Might Also Like
OpenAI Whisper
OpenAI Whisper MCP Server - 基于本地 Whisper CLI 的离线语音识别与翻译,无需 API Key,支持...
markitdown
Python tool for converting files and office documents to Markdown.
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
chatbox
User-friendly Desktop Client App for AI Models/LLMs (GPT, Claude, Gemini, Ollama...)
continue
Continue is an open-source project for seamless server management.
claude-flow
Claude-Flow v2.7.0 is an enterprise AI orchestration platform.