dingtalk-feishu-mcp
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "dingtalk-feishu-mcp" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3654be3bfe25ea1c6da47a8c6c55e7504b59564d7aa1172f09f7f9cca597e397. Verify the upstream source and version against https://skillhub.cn/skills/user_b22a52ba/dingtalk-feishu-mcp before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Guidance for configuring, installing, and using the MCP (Model Context Protocol) service on DingTalk and Feishu, intended to instruct deployment and operation of MCP in DingTalk and Feishu environments.
Introduction source: third_party · user_b22a52ba · 2.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- ```
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: dingtalk-feishu-mcp
description: 钉钉与飞书 MCP(Model Context Protocol)服务配置、安装与使用技能。帮助用户在 AI 工具(Cursor、Trae、Claude
Desktop、通义灵码等)中配置和使用钉钉 MCP Server 及飞书 OpenAPI MCP,实现通过自然语言操控钉钉/飞书的通讯录、日程、任务、机器人消息、云文档、多维表格等功能。当用户需要"配置钉钉MCP"、"安装飞书MCP"、"钉钉MCP设置"、"飞书MCP配置"、"MCP服务搭建"、"钉钉AI助理"、"飞书AI助手"、"MCP集成钉钉"、"MCP集成飞书"、"钉钉机器人配置"、"飞书机器人MCP"、"办公自动化MCP"等意图时触发。触发关键词:钉钉MCP、飞书MCP、DingTalk
MCP、Feishu MCP、Lark MCP、dingtalk-mcp、lark-mcp、lark-openapi-mcp、MCP钉钉、MCP飞书、MCP配置、MCP安装、钉钉AI助手、飞书AI助手、钉钉开放平台MCP、飞书开放平台MCP。
version: 2.0.0
tags:
- chat
- dingtalk
- feishu
slug: dingtalk-feishu-mcp
displayName: Dingtalk Feishu Mcp
summary: 钉钉与飞书 MCP(Model Context Protocol)服务配置、安装与使用技能钉钉 & 飞书 MCP 服务配置与使用 Skill
概述
MCP(Model Context Protocol)是面向大语言模型的标准协议,充当 AI Agent 与外部系统之间的"通用连接器"。本 Skill 覆盖两大企业协作平台的 MCP 服务:
- 钉钉 MCP Server:官方提供的 Node.js 中间件,覆盖十大类企业 API
- 飞书 OpenAPI MCP(lark-openapi-mcp):官方开源工具包,覆盖消息、群组、日历、多维表格、云文档等
通过 MCP,用户可以用自然语言在 Cursor、Trae、Claude Desktop 等工具中操控钉钉/飞书。
一、钉钉 MCP Server
1.1 前提条件
| 条件 | 要求 |
|---|---|
| AI 工具 | Cursor、通义灵码 IDE、Claude Desktop、Cline 等任一支持 MCP Client 的工具 |
| Node.js | 版本 >= 16.0.0 |
| 钉钉权限 | 企业管理员或子管理员权限 |
| 钉钉应用 | 需在钉钉开放平台创建企业内部应用 |
1.2 创建钉钉应用获取凭证
- 登录 钉钉开放平台
- 进入 开发者后台 > 应用开发 > 企业内部开发 > 创建应用
- 记录 AppKey(即
DINGTALK_Client_ID)和 AppSecret(即DINGTALK_Client_Secret) - 在 权限管理 页面开通所需 API 权限
1.3 钉钉 MCP 功能模块与权限映射
| MCP Server 名称 | 功能模块 | 所需权限点 |
|---|---|---|
dingtalk-contacts |
通讯录管理(人员搜索) | qyapi_get_member, qyapi_get_member_by_mobile |
dingtalk-department |
部门管理(部门查询) | qyapi_get_department_list, qyapi_get_department_member |
dingtalk-notable |
AI 表格/多维表 | Notable.Base.Read.All, Notable.Base.Write.All |
dingtalk-calendar |
日程管理(会议/日程) | Calendar.Event.Write, Calendar.Event.Read |
dingtalk-tasks |
待办任务 | Todo.Todo.Write, Todo.Todo.Read |
dingtalk-robot-send-message |
机器人消息 | qyapi_robot_sendmsg |
dingtalk-honor |
企业荣誉 | OrgCulture.Honor.Write, OrgCulture.Honor.Read |
dingtalk-notice |
工作通知 | qyapi_base |
dingtalk-checkin |
签到管理 | qyapi_base |
dingtalk-servicewindow |
服务窗 | OfficialAccount.Contact.Read, OfficialAccount.Message.Send, OfficialAccount.Account.Read |
dingtalk-app-manage |
应用管理 | qyapi_microapp_manage, qyapi_get_microapp_list, MicroApp.InnerApp.ReadWrite |
dingtalk-teambition |
TB 项目管理 | 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.4 AI 工具配置(以 Cursor 为例)
在 Cursor 的 MCP 配置中添加:
{
"mcpServers": {
"dingtalk-mcp": {
"command": "npx",
"args": [
"dingtalk-mcp@latest"
],
"env": {
"DINGTALK_Client_ID": "你的AppKey",
"DINGTALK_Client_Secret": "你的AppSecret",
"ACTIVE_PROFILES": "ALL"
}
}
}
}
配置说明:
ACTIVE_PROFILES:控制启用的服务模块,"ALL"启用全部模块(强烈建议按需配置,如"dingtalk-contacts,dingtalk-calendar,dingtalk-robot-send-message")- 配置完成后需完全重启 AI 工具
1.5 验证安装
在 AI 工具中发送测试指令:
"使用 dingtalk-mcp,帮我搜索一下[你的名字]。"
成功则返回你的钉钉用户信息;失败则检查凭证和配置。
1.6 典型使用场景示例
| 场景 | 提示词示例 |
|---|---|
| 搜索联系人 | "帮我查找产品部所有成员的联系方式" |
| 多维表格查询 | "从图书管理系统多维表中查询图书名称为'平凡的世界'的记录" |
| 日程管理 | "安排明天下午两点和市场部的周会,地点在301会议室" |
| 创建待办 | "为王伟创建一个'完成项目报告'的待办事项,截止日期是周五" |
| 发送群消息 | "在'项目A核心群'里通知大家,今晚9点发布新版本" |
| 项目管理 | "为开发团队创建新项目并分配任务给张三,期限下周五" |
| 日志管理 | "按照XXX模板创建本周工作总结日志并发送给直属领导" |
1.7 钉钉 MCP 参考资源
- 钉钉 MCP 概述:https://developers.dingtalk.com/document/aipass/dingtalk-server-api-mcp-overview-1
- 安装指南:https://developers.dingtalk.com/document/aipass/install-and-use-the-dingtalk-calendar-mcp
- 魔搭社区 MCP Server:https://modelscope.cn/mcp/servers/@open-dingtalk/dingtalk-mcp
- 阿里云百炼接入:https://developers.dingtalk.com/document/aipass/alibaba-cloud-uses-dingtalk-mcp-services
二、飞书 OpenAPI MCP
2.1 前提条件
| 条件 | 要求 |
|---|---|
| AI 工具 | Trae、Cursor、Claude 等 MCP Client |
| Node.js | 版本 >= v20.0.0(推荐最新 LTS) |
| 飞书应用 | 需在飞书开放平台创建企业自建应用 |
2.2 创建飞书应用
- 登录 飞书开放者后台
- 点击 企业自建应用 > 创建企业自建应用
- 设置应用名称、描述、图标,点击 创建
- 在 凭证与基础信息 页面保存 App ID 和 App Secret
- 根据需要添加应用能力(如机器人能力)
- 在 权限管理 页面开通所需 API 权限
默认权限批量开通(粘贴以下内容到开通权限输入框):
im:chat:create, im:chat, im:message, wiki:wiki, wiki:wiki:readonly, docx:document, bitable:app, drive:drive, docs:document:import, contact:user.id:readonly
- 在 安全设置 > 重定向 URL 中添加:
http://localhost:3000/callback - 如果有 刷新 user_access_token 开关,确保开启
- 发布应用版本(需管理员审核通过)
2.3 飞书 MCP 工具集
默认启用的 OpenAPI
| MCP 工具名称 | 功能 | 所需权限 |
|---|---|---|
im.v1.chat.create |
创建群 | im:chat:create |
im.v1.chat.list |
获取群列表 | im:chat |
im.v1.chatMembers.get |
获取群成员 | im:chat |
im.v1.message.create |
发送消息 | im:message |
im.v1.message.list |
获取历史消息 | im:message |
wiki.v2.space.getNode |
获取知识空间节点 | wiki:wiki |
wiki.v1.node.search |
搜索 Wiki | wiki:wiki:readonly |
docx.v1.document.rawContent |
获取文档纯文本 | docx:document |
drive.v1.permissionMember.create |
增加协作者权限 | wiki:wiki |
docx.builtin.import |
导入文档 | bitable:app, drive:drive, docs:document:import |
docx.builtin.search |
搜索云文档 | drive:drive |
bitable.v1.app.create |
创建多维表格 | bitable:app |
bitable.v1.appTable.create |
新增数据表 | bitable:app |
bitable.v1.appTable.list |
列出数据表 | bitable:app |
bitable.v1.appTableField.list |
列出字段 | bitable:app |
bitable.v1.appTableRecord.search |
查询记录 | bitable:app |
bitable.v1.appTableRecord.create |
新增记录 | bitable:app |
bitable.v1.appTableRecord.update |
更新记录 | bitable:app |
contact.v3.user.batchGetId |
通过手机号/邮箱获取用户 ID | contact:user.id:readonly |
远程 MCP 工具(云文档场景)
| 工具名称 | 功能 | 提示词示例 |
|---|---|---|
search-user |
搜索企业用户 | "帮我找一下公司里叫'张三'的人" |
get-user |
获取用户信息 | "查询一下张三的个人信息" |
fetch-file |
获取文件二进制内容 | "读取这篇文档里的架构图" |
search-doc |
搜索云文档 | "搜索包含'AI Agent'关键词的文档" |
create-doc |
创建云文档 | "帮我创建一个会议纪要,标题是'产品评审会'" |
fetch-doc |
查看云文档内容 | "阅读这篇文档[链接],总结核心要点" |
update-doc |
更新云文档 | "在文档[链接]末尾追加'竞品分析'总结" |
list-docs |
获取知识空间文档列表 | "列出我的文档库下的所有文档" |
get-comments |
查看文档评论 | "提取文档[链接]里所有评论" |
add-comments |
添加全文评论 | "在文档[链接]下评论'方案可行'" |
2.4 安装飞书 MCP
步骤一:用户登录授权
在终端执行:
npx -y @larksuiteoapi/lark-mcp login -a <your_app_id> -s <your_app_secret>
终端会回显授权 URL,需在 60 秒内 访问该 URL 完成授权。成功后终端回显 success。
步骤二:配置 MCP Server
在 AI 工具的 MCP 配置中添加:
{
"mcpServers": {
"lark-mcp": {
"command": "npx",
"args": [
"@larksuiteoapi/lark-mcp",
"mcp",
"<your_app_id>",
"<your_app_secret>",
"--oauth"
]
}
}
}
高级配置选项
指定启用特定 API(全量覆盖,替换默认工具集):
{
"args": [
"@larksuiteoapi/lark-mcp",
"mcp",
"<your_app_id>",
"<your_app_secret>",
"-t",
"im.v1.message.create,im.v1.message.list,im.v1.chat.create"
]
}
使用预设工具集(如消息预设):
{
"args": [
"@larksuiteoapi/lark-mcp",
"mcp",
"<your_app_id>",
"<your_app_secret>",
"-t",
"preset.im.default"
]
}
强制使用用户身份(user_access_token):
{
"args": [
"@larksuiteoapi/lark-mcp",
"mcp",
"<your_app_id>",
"<your_app_secret>",
"--token-mode",
"user_access_token"
]
}
2.5 MCP 工具命名规范
飞书 MCP 工具按照 biz.version.resource.method 模式命名,与服务端 Node SDK 一致。例如:
- 发送消息:
im.v1.message.create - 创建群聊:
im.v1.chat.create - 创建多维表格:
bitable.v1.app.create
判断某 API 是否在 MCP 中支持:打开 API 文档,若存在「尝试一下」按钮则表示可用。
暂不支持:
- 灰度中的 API(标注"仅部分企业可见")
- 图片/文件上传下载相关 API
2.6 飞书 MCP 参考资源
- MCP 概述:https://open.feishu.cn/document/mcp_open_tools/mcp-overview
- 安装指南:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mcp_integration/mcp_installation
- 高级配置:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mcp_integration/advanced-con
- 远程 MCP 工具列表:https://open.feishu.cn/document/mcp_open_tools/supported-tools
- GitHub 仓库(工具集):https://github.com/larksuite/lark-openapi-mcp/blob/main/docs
- 魔搭社区 MCP Server:https://modelscope.cn/mcp/servers/@larksuite/lark-openapi-mcp/
三、使用流程指南
3.1 通用配置步骤
1. 安装 Node.js(钉钉 >= 16.0.0,飞书 >= 20.0.0)
2. 在对应开放平台创建企业内部应用
3. 获取 App ID / App Key 和 App Secret
4. 开通所需 API 权限
5. 在 AI 工具的 MCP 配置中添加对应 JSON 配置
6. 重启 AI 工具
7. 通过自然语言测试验证
3.2 常见 AI 工具 MCP 配置路径
| AI 工具 | MCP 配置路径 |
|---|---|
| Cursor | 首选项 > Cursor Settings > Tools & Integrations > MCP Tools > New MCP server |
| Trae | AI 侧栏 > AI 功能管理 > MCP > 添加 > 手动添加 |
| Claude Desktop | 编辑 claude_desktop_config.json 配置文件 |
| 通义灵码 IDE | 设置 > MCP 配置 |
3.3 注意事项
- 权限最小化原则:只开通业务需要的权限,避免安全风险
- 凭证安全:App Secret 等密钥切勿泄露或提交到版本控制
- 权限生效延迟:权限修改/发布后可能需要几分钟才生效
- 用户身份刷新:为应用新增权限后,需重新登录授权 MCP
- Token 自动管理:两个 MCP 均支持 Access Token 自动刷新
- 飞书 Node.js 版本:飞书 MCP 要求 Node >= v20.0.0,比钉钉更高
3.4 Troubleshooting
| 问题 | 解决方案 |
|---|---|
| "工具未找到" | 检查 MCP JSON 配置是否正确,重启 AI 工具 |
| "认证失败" | 核对 AppKey/AppSecret 是否正确,检查应用是否已发布 |
| 权限不足 | 在开放平台为应用开通对应 API 权限并重新发布 |
| 钉钉权限修改后不生效 | 等待几分钟让权限生效 |
| 飞书用户身份过期 | 重新执行 npx -y @larksuiteoapi/lark-mcp login |
| 飞书创建的文档用户无法访问 | 使用 --token-mode user_access_token 指定身份 |
| Node.js 版本不匹配 | 钉钉需 >= 16.0.0,飞书需 >= 20.0.0 |
四、快速参考卡片
钉钉 MCP 一行启动命令
npx dingtalk-mcp@latest
# 环境变量: DINGTALK_Client_ID, DINGTALK_Client_Secret, ACTIVE_PROFILES
飞书 MCP 一行启动命令
npx @larksuiteoapi/lark-mcp mcp <app_id> <app_secret> --oauth
# 首次需先执行: npx -y @larksuiteoapi/lark-mcp login -a <app_id> -s <app_secret>Current listing version
2.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供钉钉与飞书 MCP 服务的完整端到端配置指南
- 覆盖企业协作平台与主流 AI 工具(Cursor、Claude Desktop 等)的集成场景
- 功能闭环,包含权限映射、配置示例、典型使用场景与排错方案
Highlights
- 触发词覆盖全面,包含中英文关键词及常见搜索意图
- 边界清晰,不易与其他 Skill 重叠
Areas to improve
-
缺少独立 When to Use 章节 Reported severity: Minor
文档未设置独立的 When to Use 章节,但触发意图已在 frontmatter 和概述中明确说明
Recommendation: 建议在概述后增加独立 When to Use 章节以提升可读性
Highlights
- 结构清晰,分模块、分步骤组织内容
- 包含完整的前置条件、配置示例、验证方法与 Troubleshooting
- frontmatter 完整,版本与标签信息规范
Highlights
- 工具来源明确(钉钉/飞书官方 MCP 服务)
- 参数说明准确,环境变量与配置项清晰
- 覆盖主要异常场景并提供详细排错指南
- Token 自动管理与权限最小化原则说明到位
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 71, 197, 210, 334, 345 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 216, 320, 323, 352 -
Administrator or elevated privileges
Elevate only when necessary. Keep protection and certificate validation enabled and avoid broad system access.
Mentioned in main document · lines 35
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- developers.dingtalk.com
- github.com
- localhost
- modelscope.cn
- open.dingtalk.com
- open.feishu.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
```
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.