DingCard
io.github.lottshin/dingcard · 16 stars · TypeScript · MIT
MCP server Make posters, social cards and slide decks from templates, check the layout, render PNG, JPG or PDF
Install
The repo has no one-line install. Follow its README.
Published as
- npm
dingcard-mcpstdio
From the server's entry in the official MCP Registry.
Configuration
| Name | Set as | What it is |
|---|---|---|
DINGCARD_FONTS_URLOptional | Env var | Where to download web fonts instead of https://fonts.googleapis.com, e.g. https://fonts.googleapis.cn |
DINGCARD_CHROME_PATHOptional | Env var | Path to Chrome when it is not installed in the usual place (used for checks and renders) |
DINGCARD_SERVER_URLOptional | Env var | A deployed DingCard server, for share links and saved projects |
DINGCARD_SERVER_TOKENOptional · Secret | Env var | API token for DINGCARD_SERVER_URL (scopes: images and shares; drafts for projects) |
Files
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.
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 16
- License
- MIT
- Language
- TypeScript
- Last push
- 2026-10-31
- Forks
- 3
- MCP Registry
- io.github.lottshin/dingcard
- Homepage
- dingcard.vercel.app
- Topics
- canvas, design-tool, docker, markdown, react, typescript, xiaohongshu
Next on this shelf
- 5146Iran Gold Pricesio.github.sepehr071/iran-gold-mcpRead-only live 18k gold prices on Iranian sites: Milli.gold, Wallgold, Melligold, Daric, Taline.16
- 5147Table, Broio.github.table-bro/table-broPixel-perfect Material (M3) data tables for your app in one prompt: Claude Code, Cursor, Codex.16
- 5148Telegram Archiveio.github.GeiserX/telegram-archive-mcpSearch and read your archived Telegram chats and messages16
- 5149MeltFlex AIio.github.MeltFlexDevs/meltflexAI interior design — restyle rooms, place furniture, and virtually stage spaces from a photo.16
- 5150Recallio.github.Polign/recallAgent memory that keeps every correction, with history and as-of reads. Runs on your database.16
- 5151VLR.gg Dev API MCP Serverio.github.Vanshbordia/vlrdevapiMCP server providing tools to fetch Valorant esports data, matches, events, and rankings from vlr.gg16