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
This server cannot be deployed
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.
Anonymous webhook capture, inspection, waiting, and response configuration for AI agents.
Fire-and-forget webhooks for agents with guaranteed, retried delivery and status polling. x402
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.512 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.316 npm2MIT