Back to MCP directory
publicPublicdnsLocal runtime

lark-tools-mcp

飞书MCP插件是一个连接飞书与AI编码工具(如cursor)的服务,提供文档读取、消息发送、合同审批等功能,支持通过自建应用授权运行。

article

README

🚀 lark-tools-mcp

lark-tools-mcp项目下的MCP服务器为AI编码代理提供飞书相关操作,例如游标功能。飞书MCP插件将飞书与游标连接起来,能为大语言模型(LLM)提供读取文档、发送消息、合同审批、数据处理等功能,还可能有一些意想不到的组合用法。

🚀 快速开始

✨ 主要特性

  • MCP服务器为AI编码代理提供飞书相关操作。
  • 飞书MCP插件连接飞书与游标,为LLM提供多种功能,且可能有独特组合方式。

📦 安装指南

创建自建应用

MCP服务基于token运行,因此需要创建并发布一个应用,详情可参考:https://open.feishu.cn/document/server-docs/api-call-guide/terminolog

之后要对应用进行文档授权,此步骤较为繁琐,可参考文档选择合适的方案:https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-add-permissions-to-app

运行服务

  1. .env.example 文件复制为 .env 文件。
  2. 修改 .env 文件中的 FEISHU_APP_ID 为飞书自建应用的 app_id。
  3. 修改 .env 文件中的 FEISHU_APP_SECRET 为飞书自建应用的 app_secret。
  4. 运行MCP服务器,执行以下命令:
yarn install
yarn start
  1. 将MCP添加到游标中。
  2. 在Agent模式下,输入飞书文档链接,让AI帮你阅读与整理内容。

💻 使用示例

基础用法

使用 get_feishu_doc 工具获取飞书文档信息(纯文本):

# 假设调用 get_feishu_doc 的代码示例
# 这里只是示意,实际代码可能不同
result = get_feishu_doc('your_feishu_doc_url')
print(result)

效果展示

效果

🔧 工具说明

get_feishu_doc

获取飞书文档信息(纯文本)

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client