Md2card MCP Server logo

Md2card MCP Server

Community
maqi1520

md2card-mcp-server

Publishermaqi1520
Repositorymd2card-mcp-server
LanguageTypeScript
Forks
14
Stars
80
Available tools
0
Transport typestdio
Links
  • Connect tools to AI workflows

    Md2card MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    80 stars and 14 forks from the linked repository.

MD2Card MCP 服务器

homepage: https://md2card.cn

MD2Card Markdown 转知识卡片 将 Markdown 文档转换为精美的知识卡片,支持多种风格

安装与使用

方法一:使用 npx(推荐)

直接使用 npx 运行(需要设置 API 密钥环境变量):

bash
# 设置API密钥并运行
MD2CARD_API_KEY="您的API密钥" npx md2card-mcp-server

方法二:全局安装

bash
# 安装
npm install -g md2card-mcp-server

# 运行(需要设置API密钥环境变量)
MD2CARD_API_KEY="您的API密钥" md2card-mcp-server

方法三:本地配置

clone 项目到本地,找到 index.js 路径替换到客户端 mcp 配置文件中

功能特性

  • 支持 22 种主题样式:苹果备忘录 波普艺术 艺术装饰 玻璃拟态 温暖柔和 简约高级灰 梦幻渐变 清新自然 紫色小红书 笔记本 暗黑科技 复古打字机 水彩艺术 中国传统 儿童童话 商务简报 日本杂志 极简黑白 赛博朋克
  • 智能尺寸适配
  • 三种内容拆分模式:默认自动拆分
  • 通过 MCP 协议提供标准化接口
  • 新功能:支持直接读取 Markdown 文件
  • 新功能:支持通过 type 参数直接指定卡片类型/尺寸
  • 新功能:支持抓取微信公众号文章并转换为 Markdown 格式
  • 新功能:自动提取文章标题、作者、描述和封面图片

使用方法

方法一:提供 Markdown 内容

json
{
  "markdown": "# 标题\n\n内容"
}

方法二:提供 Markdown 文件路径

json
{
  "markdownFile": "/path/to/your/file.md"
}

方法三:指定卡片类型/尺寸

可以通过type参数直接指定卡片类型,支持以下类型:

  • 小红书:440x586
  • 正方形:500x500
  • 手机海报:440x782
  • A4 纸打印:595x842
json
{
  "markdown": "# 标题\n\n内容",
  "type": "小红书"
}

也可以通过 width 和 height 参数指定:

json
{
  "markdown": "# 标题\n\n内容",
  "width": "小红书",
  "height": 586
}

方法四:抓取微信公众号文章

使用 wechat_scraper 工具抓取微信公众号文章:

json
{
  "url": "https://mp.weixin.qq.com/s/your-article-id"
}

返回结果包含完整的 Markdown 格式文章,包括:

  • 文章标题
  • 作者信息
  • 文章描述
  • 封面图片
  • 正文内容

客户端配置

通用 MCP 客户端配置

在 MCP 客户端配置文件中添加以下内容:

json
{
  "md2card-server": {
    "command": "npx",
    "args": ["md2card-mcp-server@latest"],
    "env": {
      "MD2CARD_API_KEY": "您的API密钥"
    }
  }
}

Cursor 客户端配置

在 Cursor 的 MCP 客户端配置文件中添加以下内容:

json
{
  "md2card-server": {
    "command": "npx",
    "args": ["-y", "md2card-mcp-server@latest"],
    "env": {
      "MD2CARD_API_KEY": "您的API密钥"
    }
  }
}

注意:MD2CARD_API_KEY 环境变量是必需的,只有在实际运行时才会检查此环境变量。安装包时不需要此环境变量。

密钥申请地址:https://md2card.cn/zh?referralCode=github

Use Md2card MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Md2card MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Md2card MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Md2card MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "md2card-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Md2card MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Md2card MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Md2card MCP Server to help me with this task?
Md2card MCP Server
Sure. I read it.
Here is what I found using Md2card MCP Server.

Frequently asked questions

What is the Md2card MCP Server MCP server used for?

Md2card MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Md2card MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Md2card MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Md2card MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Md2card MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Md2card MCP Server MCP to TypingMind?

Md2card MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Md2card MCP Server MCP provide in TypingMind?

Md2card MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Md2card MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Md2card MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇