Lark MCP Custom
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., "@Lark MCP Custom Send a message to the project group saying meeting at 3pm"
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.
自定义飞书 MCP Server
项目结构
lark-mcp-custom/
├── src/
│ ├── index.ts # 入口:初始化 MCP Server + 注册工具
│ ├── lark-client.ts # 飞书 SDK 客户端封装
│ └── tools/
│ ├── im-tools.ts # 消息工具(发消息、群列表、消息历史)
│ ├── calendar-tools.ts # 日历工具(查询事件、创建事件)
│ └── docs-tools.ts # 文档工具(搜索文档、多维表格读写)
├── .env.example
├── package.json
├── tsconfig.json
└── claude_desktop_config.example.jsonRelated MCP server: Feishu MCP Server
已实现工具
工具名 | 功能 |
| 发送文本消息到群或用户 |
| 获取机器人所在群列表 |
| 获取群内最近消息 |
| 查询日历事件 |
| 创建日历事件 |
| 搜索云空间文档 |
| 读取多维表格记录 |
| 向多维表格写入记录 |
安装和运行
前置条件
Node.js >= 20
飞书企业自建应用(App ID + App Secret)
步骤
安装依赖
npm install配置环境变量
cp .env.example .env
# 编辑 .env,填入 FEISHU_APP_ID 和 FEISHU_APP_SECRET构建
npm run build测试运行
FEISHU_APP_ID=cli_xxx FEISHU_APP_SECRET=xxx node dist/index.js配置 Claude 桌面版(见下方)
配置 Claude 桌面版
编辑 Claude 配置文件:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"lark-mcp-custom": {
"command": "node",
"args": ["/你的绝对路径/lark-mcp-custom/dist/index.js"],
"env": {
"FEISHU_APP_ID": "cli_你的AppID",
"FEISHU_APP_SECRET": "你的AppSecret"
}
}
}
}重启 Claude 桌面版后即可使用。
飞书应用权限配置
在飞书开放平台(https://open.feishu.cn/app)为应用开启以下权限:
IM(消息)
im:message读写消息im:chat:readonly查看群信息
日历
calendar:calendar读写日历
云文档 & 多维表格
drive:drive:readonly搜索文档bitable:app多维表格读写
扩展开发
新增工具只需两步:
在
src/tools/下创建新文件,导出registerXxxTools(server, client)函数在
src/index.ts中 import 并调用
工具定义格式:
server.tool(
"工具唯一名称",
"工具功能描述(Claude 会看这个来决定何时调用)",
{ 参数: z.string().describe("参数说明") },
async (params) => {
// 调用飞书 API
return { content: [{ type: "text", text: "返回结果" }] };
}
);Available Tools
8 toolslark_bitable_create_recordC
向飞书多维表格写入一条新记录
Inputs: app_token (required), table_id (required), fields (required).
lark_bitable_list_recordsB
读取飞书多维表格(Bitable)中指定数据表的记录
Inputs: app_token (required), table_id (required), page_size, filter.
lark_calendar_eventsB
获取用户日历中指定时间范围内的事件
Inputs: calendar_id (required), start_time (required), end_time (required), page_size.
lark_create_eventB
在飞书日历中创建新事件
Inputs: calendar_id (required), summary (required), start_timestamp (required), end_timestamp (required), +2 more.
lark_get_messagesC
获取指定群聊的最近消息记录
Inputs: container_id (required), container_id_type, page_size.
lark_list_chatsB
获取机器人加入的所有群聊列表
Inputs: page_size.
lark_search_docsC
在飞书云空间中搜索文档、表格、多维表格等
Inputs: query (required), count.
lark_send_messageB
发送文本消息到飞书群聊或指定用户
Inputs: receive_id_type (required), receive_id (required), content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource and action: bitable records, calendar events, chats/messages, and document search. No overlapping purposes.
Most tools follow a lark_<domain>_<verb>_<noun> pattern, but lark_calendar_events deviates by lacking a verb (should be lark_list_calendar_events). Otherwise consistent.
8 tools is well-scoped for a Lark integration covering bitable, calendar, messaging, and docs. Each tool adds distinct value.
Notable gaps: bitable lacks update/delete, calendar lacks update/delete, messaging lacks delete, and docs only have search. Core workflows covered but lifecycle incomplete.
Maintenance
Related MCP Connectors
Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Official MCP bridge to Exogram—the Personal AI Agent for your work, people, and life.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceA tool designed to help users connect AI Agents with the Feishu/Lark platform, encapsulating Feishu/Lark Open Platform API interfaces as MCP tools for document processing, conversation management, calendar scheduling and more.33,913 npm-
- AlicenseAqualityNot gradedmaintenanceEnables interaction with Feishu (Lark) multidimensional tables (Bitable) through MCP tools, supporting operations like creating/updating/querying records, batch operations, and application management with automatic token refresh.9MIT
- FlicenseBqualityDmaintenanceEnables Claude/Cursor to interact with Feishu (Lark) bots through MCP, allowing LLMs to execute business logic via Feishu robot APIs.18-
- AlicenseNot gradedqualityDmaintenanceEnables real-time Feishu message monitoring, sending, file upload to cloud documents, and supports async and scheduled tasks via MCP.6MIT