DingTalk Wiki MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install
cp .env.example .env
cp config.example.json config.json
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "DINGTALK_APP_KEY=${DINGTALK_APP_KEY}" -e "DINGTALK_APP_SECRET=${DINGTALK_APP_SECRET}" dingtalk-wiki-mcp -- node "<FULL_PATH_TO_DINGTALK_WIKI_MCP>/dist/index.js"

Replace <FULL_PATH_TO_DINGTALK_WIKI_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:DINGTALK_APP_KEYDINGTALK_APP_SECRET
README.md

DingTalk Wiki / Docs read-write MCP server

dingtalk-wiki-mcp

DingTalk Wiki / Docs read-write MCP server that fills the gap left by DingTalk official MCP.

中文文档 / Chinese docs

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.md for OpenClaw-style skill workflows

Quick Start

1) Install

npm install

2) Configure environment

cp .env.example .env

Required:

DINGTALK_APP_KEY=your-app-key
DINGTALK_APP_SECRET=your-app-secret

index.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.json

4) Run

npm start

Or:

node index.js

npx dingtalk-wiki-mcp is 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 / .able records Not covered
MCP client compatibility Partial / official scope only ✅ stdio MCP-compatible
OpenClaw skill packaging No ✅ includes SKILL.md

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:
    • DOC
    • WORKBOOK
    • MIND
    • FOLDER
  • Search Wiki by linking to DingTalk search
  • Read Notable / .able sheets 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

List workspaces demo

2. Browse workspace nodes

Browse nodes demo

3. Create a document

Create document demo

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

Tools (5)

list_wiki_workspacesList all available Wiki workspaces
list_wiki_nodesList Wiki nodes such as folders and documents within a workspace
create_wiki_docCreate a new document, workbook, mind map, or folder in the Wiki
get_user_infoRetrieve information about a specific user
show_configInspect current local configuration

Environment Variables

DINGTALK_APP_KEYrequiredThe App Key for your DingTalk application
DINGTALK_APP_SECRETrequiredThe App Secret for your DingTalk application

Configuration

claude_desktop_config.json
{"mcpServers": {"dingtalk-wiki": {"command": "node", "args": ["/path/to/dingtalk-wiki-mcp/index.js"]}}}

Try it

List all my available DingTalk Wiki workspaces.
Show me the contents of the workspace with ID 'your_workspace_id'.
Create a new document named 'Weekly Summary' in the workspace 'your_workspace_id'.
Get the user information for the user with ID 'your_user_id'.

Frequently Asked Questions

What are the key features of DingTalk Wiki?

Read and browse DingTalk Wiki workspaces and nodes. Create new documents, workbooks, mind maps, and folders. List departments and department users. Retrieve detailed user information. Compatible with stdio-based MCP clients.

What can I use DingTalk Wiki for?

AI automatically creates weekly report documents for sales or operations teams. Agents explore Wiki structure to identify the correct target folder before generating content. Auto-initialize standard project knowledge-base structures including folders for specs and reports.

How do I install DingTalk Wiki?

Install DingTalk Wiki by running: npm install && cp .env.example .env && cp config.example.json config.json

What MCP clients work with DingTalk Wiki?

DingTalk Wiki works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep DingTalk Wiki docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare