dingtalk-wiki-mcp
The dingtalk-wiki-mcp server complements DingTalk's official MCP by adding read, browse, and write capabilities for DingTalk Wiki/Docs, plus organizational data access.
Wiki & Document Management
List all accessible Wiki workspaces and get details of a specific workspace
Browse nodes (documents/folders) within a workspace, including sub-folders via parent node ID
Get metadata for a specific Wiki node
Create new content (
DOC,WORKBOOK,MIND,FOLDER) in a workspaceSearch Wiki content by keyword
Notable / .able Records
List Notable sheets and records via the official API
Organization & User Management
List departments (with optional recursive child fetching)
Get members of a specific department (with pagination)
Retrieve detailed info for a specific user
Configuration
Set the active operator (
unionId) for API callsDisplay current local configuration (default user, workspace list)
AI Agent Integration
MCP-compatible via stdio (works with OpenClaw, mcporter, etc.)
Includes
SKILL.mdfor OpenClaw-style agent workflowsEnables use cases like auto-generating weekly reports, exploring Wiki structure before writing, and initializing project knowledge bases
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-wiki-mcp Create a new document called 'Weekly Summary' in the Marketing workspace"
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-wiki-mcp
DingTalk Wiki / Docs read-write MCP server that fills the gap left by DingTalk official MCP.
DingTalk's official MCP does not provide Wiki / Docs read-write capability.
This project is an open-source complement that makes AI agents and MCP clients actually able to read, browse, and create DingTalk Wiki / Docs content.
Repository Highlights
Official MCP gap: Wiki / Docs read-write is not covered
This project adds it: workspace browsing, node browsing, and document creation
MCP-compatible: works with stdio-based MCP clients
Agent-ready: includes
SKILL.mdfor OpenClaw-style skill workflows
Related MCP server: Feishu MCP Server
Quick Start
1) Install
npm install2) Configure environment
cp .env.example .envRequired:
DINGTALK_APP_KEY=your-app-key
DINGTALK_APP_SECRET=your-app-secretindex.js now auto-loads .env from the current working directory (or the repo directory) if those variables are not already present in the environment.
3) Prepare local config
cp config.example.json config.json4) Run
npm startOr:
node index.js
npx dingtalk-wiki-mcpis a future-friendly path after npm publishing.
This repository already includes the correct CLI entry (bin), but npm distribution is not part of the current release yet.
DingTalk official MCP vs this project
Capability | DingTalk official MCP | dingtalk-wiki-mcp |
Wiki read | Not covered | ✅ |
Wiki write | Not covered | ✅ |
Create docs | Not covered | ✅ |
Create folders | Not covered | ✅ |
Create mind maps | Not covered | ✅ |
Browse workspaces | Not covered | ✅ |
Browse nodes / folders | Not covered | ✅ |
Read Notable / | Not covered | ✅ |
MCP client compatibility | Partial / official scope only | ✅ stdio MCP-compatible |
OpenClaw skill packaging | No | ✅ includes |
Positioning principle: this project does not replace the official DingTalk MCP. It complements it by filling the Wiki / Docs gap.
Core capabilities
Wiki / Docs
List Wiki workspaces
Get workspace details
List Wiki nodes (folders / docs)
Create:
DOCWORKBOOKMINDFOLDER
Search Wiki by linking to DingTalk search
Read Notable /
.ablesheets and records via official API
Organization
List departments
List department users
Get user info
Operator / Config
Set current operator (
unionId)Use a default operator from local config
Inspect current local config
Skill included
This repo is not only an MCP server. It also includes:
SKILL.md
So it can be reused as a skill package in OpenClaw-style agent workflows.
Demo
1. List Wiki workspaces
2. Browse workspace nodes
3. Create a document
These demo images are illustrative documentation assets built from representative command/output flows, with all tenant-specific data removed.
Real use cases
1) AI automatically creates weekly report docs
Your AI agent can create a fresh DingTalk Wiki document every week for sales, product, or ops reporting.
2) Agent explores Wiki structure before writing
Before generating content, an agent can inspect workspaces and folders first, then choose the right target node.
3) Auto-initialize project knowledge-base structure
When a new project starts, automation can create a standard folder tree such as:
Project Overview
Weekly Reports
Specs
Release Notes
Retrospectives
Client integration examples
Example usage
Registered server mode
If you have registered this server in your MCP client config under the name dingtalk-wiki:
mcporter call dingtalk-wiki.show_config
mcporter call dingtalk-wiki.list_wiki_workspaces
mcporter call dingtalk-wiki.list_wiki_nodes workspace_id="your_workspace_id"
mcporter call dingtalk-wiki.create_wiki_doc workspace_id="your_workspace_id" name="Weekly Summary" doc_type="DOC"
mcporter call dingtalk-wiki.get_user_info userid="your_user_id"Direct stdio mode
If you want to run the server directly without pre-registering it, call the tool names directly:
mcporter call --stdio "node ./index.js" show_config
mcporter call --stdio "node ./index.js" list_wiki_workspaces
mcporter call --stdio "node ./index.js" list_wiki_nodes workspace_id="your_workspace_id"
mcporter call --stdio "node ./index.js" create_wiki_doc workspace_id="your_workspace_id" name="Weekly Summary" doc_type="DOC"Available MCP tools
set_operatorshow_configlist_wiki_workspacesget_wiki_workspacelist_wiki_nodesget_wiki_nodecreate_wiki_docsearch_wikilist_departmentsget_department_usersget_user_infolist_notable_sheetslist_notable_records
Requirements
Node.js 18+
A DingTalk app with the required API permissions
A stdio-compatible MCP client, such as:
OpenClaw
mcporter
other MCP hosts / clients
Permissions
Depending on what you use, your DingTalk app may need permissions such as:
Document.WorkspaceDocument.WriteWiki read permissions
Department read permissions
User read permissions
Please refer to DingTalk Open Platform documentation for the latest permission names and approval requirements.
Trust materials
Security notes
config.jsoncontains your local user and workspace metadata, so do not commit itthis repository already ignores
config.jsonand.envinject AppKey / AppSecret via environment variables instead of hardcoding them
Limitations
This is a community-maintained complement, not an official DingTalk project
Some APIs require enterprise approval on the DingTalk side
search_wikiis currently more of a search-entry helper than a full-text search implementationReading normal DingTalk document body content via official public API is still not implemented in this project
Notable /
.ablesupport currently covers sheets and records, not arbitrary document-body export
Related links
License
MIT
Available Tools
11 toolscreate_wiki_docA
在知识库中创建新文档(需要 Document.WorkspaceDocument.Write 权限)
Inputs: workspace_id (required), name (required), doc_type, parent_node_id, +1 more.
get_department_usersC
获取部门成员列表
Inputs: dept_id (required), cursor, size.
get_user_infoC
获取用户详细信息
Inputs: userid (required).
get_wiki_nodeC
获取知识库节点详情
Inputs: node_id (required).
get_wiki_workspaceC
获取知识库工作空间详情
Inputs: workspace_id (required).
list_departmentsC
列出钉钉组织架构中的部门列表
Inputs: fetch_child.
list_wiki_nodesC
列出知识库中的节点(文档和目录)
Inputs: workspace_id (required), parent_node_id.
list_wiki_workspacesB
列出用户有权限的知识库工作空间列表
Inputs: operator_id.
search_wikiC
搜索知识库内容
Inputs: keyword (required), workspace_id.
set_operatorC
设置操作者 unionid(用于访问 Wiki API)
Inputs: unionid (required).
show_configB
显示当前配置信息(默认用户和知识库列表)
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools have distinct purposes targeting different resources (wiki docs, departments, users, nodes, workspaces). However, get_wiki_node and get_wiki_workspace could potentially be confused with list_wiki_nodes and list_wiki_workspaces, as the naming suggests similar scopes but different actions (get vs. list). The descriptions clarify the difference, but the overlap in naming might cause initial ambiguity.
The naming follows a consistent verb_noun pattern with snake_case throughout, such as create_wiki_doc, list_departments, and get_user_info. There are minor deviations like set_operator and show_config, which use different verbs but maintain the same structure, keeping the overall pattern readable and predictable.
With 11 tools, the count is well-scoped for a DingTalk wiki MCP server, covering user management, department listing, wiki operations (create, list, get, search), and configuration. Each tool appears to serve a specific purpose without redundancy, fitting the domain appropriately.
The tool set provides good coverage for wiki operations (create, list, get, search) and user/department management, with configuration tools like set_operator and show_config. Minor gaps exist, such as no update or delete operations for wiki documents, which could limit full lifecycle management, but agents can likely work around this for basic workflows.
Maintenance
Related MCP Connectors
Shared project wiki for AI agents: read and write pages, next actions, and activity logs over MCP.
Read and write your team's shared, AI-readable wiki from any MCP client.
Markdown workspace for AI agents: read, write, organize, and share markdown documents.
Linked team workspace: AI agents read and write docs, wikis, sheets, diagrams, boards and reviews.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Yuque (语雀) platform through MCP protocol, supporting knowledge base management, document operations, search, and team collaboration features.11MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to directly read, write, and manage Feishu documents, spreadsheets, and multi-dimensional tables. It supports automated documentation tasks and rich text management, including Mermaid diagrams and image uploads.1822 npm2MIT

mcp-server-ispace-wikiofficial
AlicenseAqualityDmaintenanceEnables AI assistants to perform CRUD operations, search, batch operations, and commenting on iSpace Wiki documents.32MIT- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read, search, and write to a public wiki knowledge base via MCP.MIT