MCP.so
登录

Md2card MCP Server

@maqi1520

基本信息

分类

其他

传输方式

stdio

作者

maqi1520

提交者

关于 Md2card MCP Server

md2card-mcp-server

#markdown-image

Md2card MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "md2card": {
      "command": "npx",
      "args": [
        "-y",
        "md2card-mcp-server@latest"
      ],
      "env": {
        "MD2CARD_API_KEY": "your-key"
      }
    }
  }
}

Md2card MCP Server 工具

1

将 Markdown 文档转换为精美的知识卡片

概览

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 type parameter
  • 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

常见问题

1

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.

2

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.

3

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.

4

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.

5

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.

评论

其他 分类下的更多 MCP 服务器