MCPInstall
DingCard logo

DingCard

by lottshin 16 stars lottshin/dingcard

Make posters, social cards and slide decks from templates, check the layout, render PNG, JPG or PDF

READMEHEAD

dingcard-mcp

叮卡(DingCard)的 MCP 服务器:让 AI 客户端直接生成、检查、修改和导出叮卡的自由画布卡片,再一步交给编辑器让人接着改。

  • 生成:create_document_from_template、create_document_from_content、create_document_from_outline
  • 查看与修改:inspect_document、apply_actions(与编辑器同一个归约器)、list_assets(图标、装饰、配色字体、花字、拼图、滤镜)
  • 写法:get_guide(按主题读文档、动作、内容和导出的完整写法)
  • 检查:check_document(按导出的样子排版后列出看得见的问题)
  • 导出:render_document(逐页 PNG / JPG、一个 PDF 或一张长图)、render_markdown
  • 交给人:open_in_editor(在浏览器里的叮卡编辑器打开)、get_document

服务端保存它创建和修改的文档,工具之间传 documentId 即可,不必来回传整份 JSON;图片可以直接写本机文件路径,会自动嵌入。

接入

{
  "mcpServers": {
    "dingcard": { "command": "npx", "args": ["-y", "dingcard-mcp"] }
  }
}

需要 Node.js 22 以上和本机安装的 Chrome(渲染、检查用)。渲染用到的网页字体从 Google Fonts 下载,下载过的存在本机;连不上时设 DINGCARD_FONTS_URL(例如 https://fonts.googleapis.cn)换一个字体源。要 share_document 把作品变成分享链接,再设 DINGCARD_SERVER_URL(部署的叮卡地址)和 DINGCARD_SERVER_TOKEN(一个 API 令牌,需要 images、shares 权限),或 DINGCARD_SERVER_USERNAME / DINGCARD_SERVER_PASSWORD(一个叮卡账号)。完整说明见 docs/mcp.md。

English

The MCP server of DingCard, an open-source editor for social cards, posters and slide decks. AI clients fill templates or turn their own HTML into editable pages, check the result the way it will be exported (clipped or overlapping text, low contrast, leftover sample copy, large empty bands), render PNG, JPG, a PDF, a long image or a 3×3 grid, and hand the design to the browser editor for a person to finish. It needs Node.js 22+ and Google Chrome; add the configuration above to your MCP client. Tool descriptions are written in Chinese.

More Design Tool MCP servers

Similar servers from the same category.

🤖 A Model Context Protocol server for generating charts using @antvis.

TextModel+1
SlideSpeak logo

SlideSpeak

slidespeak

Generate presentations using the SlideSpeak API.

APIPresentation+2

Generate images using Amazon Nova Canvas.

text

Bridges to 21st.dev's Magic API for generating UI components from descriptions, fetching existing components for inspiration, and searching for company logos in various formats.

search