MCP Server Usage Guide
MCP
Chat with LLMs to convert Markdown directly into Xiaohongshu knowledge cards

Configure the MCP Service
Request an API key at the md2card China site.
{
"md2card-server": {
"command": "npx",
"args": ["-y", "md2card-mcp-server@latest"],
"env": {
"MD2CARD_API_KEY": "your_api_key"
}
}
}
Make sure your npm registry is set to the npm mirror, otherwise installation may fail.
{
"npmRegistry": "https://registry.npmmirror.com"
}
You can use the MCP service in any MCP-supported tool such as Cursor, VS Code, Claude, Trae, etc.
Use the MCP Service

Describe your needs in natural language, for example:
Turn the above content into a Xiaohongshu knowledge card, use the Apple Notes style in dark mode, use md2card
You can also directly @ a filename, for example:
@example.md Turn into a Xiaohongshu knowledge card, Apple Notes style dark mode, use md2card
In Cursor, type use md2card to invoke the MCP service.
GitHub Source Code
https://github.com/maqi1520/md2card-mcp-server
If you have more sticker needs or ideas, add me on WeChat: maqi1520, and let’s chat!