概要
What is Md2card Mcp Server?
Md2card Mcp Server is an MCP (Model Context Protocol) server that converts Markdown documents into beautifully styled knowledge cards. It integrates with the MD2Card service and is intended for users who want to transform Markdown content into visually formatted cards with multiple theme options.
How to use Md2card Mcp Server?
The server can be run via npx md2card-mcp-server or after global installation with npm install -g md2card-mcp-server. It requires the MD2CARD_API_KEY environment variable to be set. You can supply Markdown content directly, a file path, specify a card type/size, or use the wechat_scraper tool to fetch and convert WeChat articles.
Key features of Md2card Mcp Server
- 22 theme styles (e.g., Apple Notes, Cyberpunk)
- Smart size adaptation for different use cases
- Three content splitting modes (automatic by default)
- Direct Markdown file reading support
- Card type/size specification via
typeparameter - WeChat article scraping and Markdown conversion
- Auto-extracts title, author, description, and cover image
Use cases of Md2card Mcp Server
- Converting Markdown notes into shareable social media cards
- Generating standardized card formats for blog or documentation previews
- Scraping WeChat public account articles for further processing or archiving
- Creating A4‑sized printable cards from Markdown content
- Rapidly prototyping card layouts with different themes from a CLI
FAQ from Md2card Mcp Server
What is the MD2CARD_API_KEY used for?
The API key is required to authenticate requests to the MD2Card service when the server runs. It must be set as an environment variable before execution.
Do I need to install Node.js to use Md2card Mcp Server?
Yes, the server is distributed via npm and requires Node.js to run either via npx or a global install.
How can I specify a custom card size or type?
Use the type parameter (e.g., "小红书", "正方形", "手机海报", "A4纸打印") or supply width and height values in the request.
Can I convert a WeChat official account article?
Yes, use the wechat_scraper tool with the article’s URL. The server returns the full Markdown content including title, author, description, and cover image.
Are there any runtime dependencies beyond the API key?
No other external services or runtime dependencies are needed. The API key is only checked when the server actually processes a request, not during installation.