mcpField
D
Dingtalk MCP

Dingtalk MCP

Local
github.com/open-dingtalkCommunication26Updated 69w ago

About Dingtalk MCP

DingTalk MCP Server is an MCP server built on the DingTalk OpenAPI, covering contacts, departments, calendar, tasks, check-in, work notices and project management. Enterprises can enable only the modules they need and configure them with their own application credentials.

Key features

  1. 01Contacts and department management
  2. 02Robot messaging and DING reminders
  3. 03Calendar, tasks and check-in
  4. 04Work notifications and app management
  5. 05Project management and report queries

Use cases

  1. 01Querying enterprise contacts and department members from an AI assistant
  2. 02Sending group messages or DING reminders through a robot
  3. 03Supporting daily office work with calendar and task data

MCP support

This project is an MCP server that exposes the DingTalk OpenAPI modules as MCP capabilities to clients. The ACTIVE_PROFILES environment variable selects which modules are enabled, and clients launch it with npx.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"dingtalk-mcp-open-dingtalk": {
"command": "npx",
"args": [
"-y",
"dingtalk-mcp"
],
"env": {
"DINGTALK_Client_ID": "<DINGTALK_Client_ID>",
"DINGTALK_Client_Secret": "<DINGTALK_Client_Secret>",
"ACTIVE_PROFILES": "<ACTIVE_PROFILES>"
}
}
}
}
Run commandnpx -y dingtalk-mcp
Environment variables to set
DINGTALK_Client_ID
DINGTALK_Client_SecretSecret
ACTIVE_PROFILES

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmdingtalk-mcp

Tools

98

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
opUnionIdstringYesThe operator's unionId. This user must be an administrator with application management permissions.
namestringYesApplication name. Length must be 2–20 characters.
descstringYesApplication description. Maximum length: 200 characters.
iconstringNoApplication icon media_id
homepageLinkstringNoApplication homepage URL. Required for H5 micro-apps.
pcHomepageLinkstringNoApplication URL for PC
ompLinkstringNoApplication management console URL
ipWhiteListarrayNoServer egress IP allowlist. Maximum of 50 entries.
scopeTypestringNoPermission type. Currently, only BASE is supported.
developTypenumberNoType of internal app to create: 0 for an H5 micro app, 1 for a mini program; defaults to 0

Details

From the project README

钉钉MCP Server

🚀 功能特性

  • 钉钉通讯录
  • 钉钉部门管理
  • 钉钉机器人发消息/DING
  • 钉钉企业文化荣誉
  • 钉钉待办
  • 钉钉日程
  • 钉钉签到
  • 钉钉工作通知
  • 钉钉应用管理
  • 钉钉服务窗
  • 钉钉项目管理
  • 钉钉日志

如何使用

{
   "mcpServers": {
      "dingtalk-mcp": {
         "command": "npx",
         "args": [
            "-y",
            "dingtalk-mcp@latest"
         ],
         "env": {
            "DINGTALK_Client_ID": "your dingtalk client id",
            "DINGTALK_Client_Secret": "your dingtalk client secret",
           "ACTIVE_PROFILES": "dingtalk-contacts,dingtalk-calendar"
         }
      }
   }
}
env环境变量说明
  1. DINGTALK_Client_ID
  2. DINGTALK_Client_Secret
  3. ACTIVE_PROFILES,激活哪些钉钉MCP服务,逗号风格,如果是ALL则激活全部。可选集合
ProfileIdDescriptionPermission
dingtalk-contacts钉钉通讯录,默认激活qyapi_addresslist_search qyapi_get_member
dingtalk-department钉钉部门管理qyapi_get_department_list qyapi_get_department_member
dingtalk-robot-send-message钉钉机器人发消息/DING,默认激活需要企业内机器人发送消息权限
Premium.Ding.Write
dingtalk-honor钉钉企业文化荣誉OrgCulture.Honor.Read OrgCulture.Honor.Read
dingtalk-tasks钉钉待办Todo.Todo.Write
Todo.Todo.Read
dingtalk-calendar钉钉日程Calendar.Event.Write Calendar.Event.Read Calendar.EventSchedule.Read
dingtalk-checkin钉钉签到qyapi_checkin_read
dingtalk-notice钉钉工作通知
dingtalk-app-manage钉钉应用管理qyapi_microapp_manage
qyapi_get_microapp_list
dingtalk-service-window钉钉服务窗OfficialAccount.Message.Send OfficialAccount.Contact.Read OfficialAccount.Account.Read
dingtalk-teambition钉钉项目管理Project.Project.Write.All Project.Project.Read.All Project.Task.Write.All Project.Task.Read.All
dingtalk-report钉钉日志qyapi_report_statistics qyapi_report_manage qyapi_report_query
  1. ROBOT_CODE,用于发消息/DING的机器人Code
  2. ROBOT_ACCESS_TOKEN,群自定义机器人ACCESS_TOKEN,用于自定义机器人发消息
  3. DINGTALK_AGENT_ID 用于发送工作通知
如何获取钉钉Client ID和Client Secret
  1. 成为钉钉开发者
  2. 创建应用
  3. 进入应用详情页-凭证与基础信息,获取Client ID和Client Secret
  4. 添加权限,根据启用的MCP服务添加相关权限点
如何获取ROBOT_CODE
  1. 参考如何创建机器人

📞 支持

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.