dingtalk_get_user_info
Get detailed information about a specific DingTalk user
Send a private DingTalk message to a colleague you can only name, by resolving the name to a user ID first and checking the profile behind it.
LABSCO SUMMARY
The order is fixed by what each call accepts: dingtalk_search_users takes a keyword and hands back user IDs, dingtalk_get_user_info takes one of those IDs, and dingtalk_send_message needs the user before it can deliver content. dingtalk_search_users returns a paged result with hasMore and totalCount rather than a single answer, so an ambiguous name still has to be narrowed before anything is sent. The surface stops at private messages to one user — there is no group or channel call here.
A small DingTalk messaging server, 3 tools covering user lookup and direct messages for one registered DingTalk app.
A DingTalk app registered on the account whose directory you are searching, with DINGTALK_APP_KEY and DINGTALK_APP_SECRET in the environment.
One command plus credentials — npx -y @darrenyao/server-dingtalk, then supply credentials
USE CASES
Resolve the name to user IDs, confirm you have the right person from their profile, and send the message to that user directly.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
dingtalk_get_user_infoGet detailed information about a specific DingTalk user
dingtalk_search_usersSearches DingTalk users and returns the matching user IDs, with a total count and a flag for whether more results remain.
dingtalk_send_messageSend a private message to a specific DingTalk user
BEFORE YOU INSTALL
3 tools when we connected.
CONTEXT COST
Rated by the size of the 3 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y @darrenyao/server-dingtalk{
"mcpServers": {
"dingtalk": {
"command": "npx",
"args": [
"-y",
"@darrenyao/server-dingtalk"
],
"env": {
"DINGTALK_APP_KEY": "<YOUR_DINGTALK_APP_KEY>",
"DINGTALK_APP_SECRET": "<YOUR_DINGTALK_APP_SECRET>"
}
}
}
}git clone https://github.com/darrenyao/dingtalk-mcp-server.git
cd dingtalk-mcp-server
docker build -t mcp/dingtalk -f Dockerfile .{
"mcpServers": {
"dingtalk": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DINGTALK_APP_KEY",
"-e",
"DINGTALK_APP_SECRET",
"mcp/dingtalk"
],
"env": {
"DINGTALK_APP_KEY": "<YOUR_DINGTALK_APP_KEY>",
"DINGTALK_APP_SECRET": "<YOUR_DINGTALK_APP_SECRET>"
}
}
}
}