dingtalk-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dingtalk-mcp 给钉钉群发一条消息:今天下午3点开会"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dingtalk-mcp
钉钉群机器人 MCP Server — 通过 Model Context Protocol 向钉钉群发送消息。
功能
工具名 | 功能 |
| 发送纯文本消息 |
| 发送 Markdown 格式消息 |
| 发送图片(通过 URL) |
| 发送图文消息(标题+描述+链接+图片) |
| 发送模板卡片消息 |
注意:钉钉自定义机器人(webhook)仅支持 text / link / markdown / actionCard / feedCard 五种消息类型,不支持文件上传。
Related MCP server: Google Chat MCP Server
环境变量
变量名 | 必填 | 说明 |
| 是 | 钉钉机器人的 access_token(Webhook URL 中 |
| 否 | 钉钉机器人加签密钥(安全设置 → 加签 → SEC 开头的字符串) |
快速开始
git clone https://github.com/leonleonlei/MCP-DTalk.git
cd MCP-DTalk
npm install
node server.jsMCP 客户端配置
{
"mcpServers": {
"dingtalk": {
"command": "node",
"args": ["/path/to/MCP-DTalk/server.js"],
"env": {
"DINGTALK_ACCESS_TOKEN": "your-access-token",
"DINGTALK_SECRET": "SECxxxxxxxx"
}
}
}
}使用示例
配置完成后,AI 助手可以直接调用工具:
"给钉钉群发一条消息:今天下午3点开会"
"把这份周报以 Markdown 格式发送到钉钉群"
"在钉钉群里发一个卡片通知,标题是'系统告警'"
获取钉钉机器人凭证
打开钉钉群 → 群设置 → 智能群助手 → 添加机器人 → 自定义
安全设置选择「加签」,记录 SEC 开头的密钥(即
DINGTALK_SECRET)记录 Webhook URL 中
access_token=后面的值(即DINGTALK_ACCESS_TOKEN)
技术细节
基于
@modelcontextprotocol/sdk构建使用 stdio 传输协议
Node.js >= 18
ESM 模块
License
MIT
Available Tools
5 toolssend_imageB
向钉钉群发送图片消息(通过图片 URL)
Inputs: imageUrl (required).
send_markdownB
向钉钉群发送 Markdown 格式消息,支持标题、列表、代码块等
Inputs: text (required), title (required).
send_newsB
向钉钉群发送图文消息,包含标题、描述、链接和图片
Inputs: url (required), title (required), description (required), picUrl.
send_template_cardB
向钉钉群发送模板卡片消息,支持丰富的卡片布局
Inputs: title (required), markdownContent (required), singleUrl, singleTitle.
send_textB
向钉钉群发送纯文本消息
Inputs: content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct DingTalk message type (image, text, markdown, news, template card), so the boundaries are clear once the desired format is known. The only mild ambiguity is choosing between markdown/news/template_card for rich content, since all can convey formatted text and links.
All five tools follow the exact same verb_noun convention with a shared `send_` prefix, differing only by message type suffix. This is a fully predictable, uniform pattern.
Five tools is a well-scoped set for a one-way DingTalk messaging integration, each covering one message format. Nothing appears redundant or missing at the count level.
The surface covers all major DingTalk message formats, which is the core of the domain. Minor gaps remain: no file/document sending, no @-mention or recipient targeting parameters, and no webhook/config management or message status/recall operations.
Maintenance
Related MCP Connectors
Control your Discord community: send/read messages, manage channels and forums, and handle webhook…
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Send WhatsApp messages and templates, manage chats, contacts, broadcasts and AI agents.
I send and manage WhatsApp Web messages through your linked session
Related MCP Servers
- AlicenseAqualityDmaintenanceIntegrates Claude Code with DingTalk (钉钉) robot notifications, allowing users to send task completion alerts and various message formats to DingTalk groups from Claude Code.540 npm9MIT
- AlicenseNot gradedqualityDmaintenanceEnables posting text messages to Google Chat spaces through webhook-based integration, providing simple and secure message delivery without OAuth setup requirements.MIT
- AlicenseNot gradedqualityDmaintenanceEnables posting text messages to Google Chat spaces using webhooks, providing simple integration without OAuth setup required.1MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to send DingTalk single and group chat messages via MCP protocol, supporting userId, name, or batch sending to up to 20 users.33MIT