A Model Context Protocol (MCP) server for DingTalk integration.
- 🤖 DingTalk bot message sending capabilities
- 📦 Multiple message types support (text, link, markdown, actionCard, feedCard)
- 🔐 Secure webhook signing with HMAC-SHA256
- 🎯 TypeScript support with strict type checking
- Node.js 18+
{
"mcp-server-dingtalk": {
"transport": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-server-dingtalk"
],
"env": {
"DINGTALK_BOT_CONFIGS": "[{\"name\": \"your-bot-name\", \"accessToken\": \"your-access-token\", \"signSecret\": \"your-sign-secret\"}]"
}
}
}| Variable | Description | Required | Default |
|---|---|---|---|
DINGTALK_BASE_URL |
DingTalk API base URL | No | https://oapi.dingtalk.com/robot/send |
DINGTALK_BOT_CONFIGS |
JSON array of bot configurations | Yes | [] |
The server provides the following MCP tool:
Send messages to DingTalk chat groups via configured bots.
Parameters:
name(string): Bot name for sending messagesmessage(object): Message content with type-specific fieldsnotify(object): Notification settings for @ mentions
Supported Message Types:
-
Text Message
{ "type": "text", "content": "Hello, World!" } -
Link Message
{ "type": "link", "text": "Link description", "title": "Link Title", "messageUrl": "https://example.com" } -
Markdown Message
{ "type": "markdown", "title": "Markdown Title", "text": "## Markdown Content\n- Item 1\n- Item 2" } -
Action Card Message
{ "type": "actionCard", "title": "Action Card Title", "text": "Action card content", "singleTitle": "Read More", "singleURL": "https://example.com" } -
Feed Card Message
{ "type": "feedCard", "links": [ { "title": "Feed Item", "messageURL": "https://example.com", "picURL": "https://example.com/image.png" } ] }
MIT