LL

larksuite/lark-openapi-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

880 stars 121 forks 质量 66 趋势 3MIT

飞书/Lark官方 OpenAPI MCP

概览

:该工具目前处于测试阶段。功能和API可能会发生变化,请随时关注版本发布。 这是Feishu/Lark官方OpenAPI MCP(模型上下文协议)工具,旨在帮助用户快速连接Feishu/Lark平台,并促进AI代理与Feishu/Lark之间的高效协作。该工具将Feishu/Lark开放平台API接口封装为MCP工具,允许AI助手直接调用这些接口,实现文档处理、对话管理、日历调度等多种自动化场景。 在使用 lark-mcp 工具之前,你需要创建一个 Feishu/Lark 应用: 1. 访问Feishu开放平台或Lark开放平台并登录 2.点击“控制台”创建新应用 3.获取用于API认证的应用ID和应用秘密 4.根据你的使用场景添加应用所需的权限 5.

概述(AI 翻译)

英文 |中文

开发者文档检索MCP

官方文件

故障排除

** ⚠️ 测试版通知**:该工具目前处于测试阶段。功能和API可能会发生变化,请随时关注版本发布。

这是Feishu/Lark官方OpenAPI MCP(模型上下文协议)工具,旨在帮助用户快速连接Feishu/Lark平台,并促进AI代理与Feishu/Lark之间的高效协作。该工具将Feishu/Lark开放平台API接口封装为MCP工具,允许AI助手直接调用这些接口,实现文档处理、对话管理、日历调度等多种自动化场景。

准备

创建飞术/云雀应用

在使用 lark-mcp 工具之前,你需要创建一个 Feishu/Lark 应用:

  1. 访问飞书开放平台或云雀开放平台并登录
  2. 点击“控制台”并创建新应用
  3. 获取应用ID和应用秘密,用于API认证
  4. 根据你的使用场景添加应用所需的权限
  5. 如果你需要以用户身份调用API,请设置OAuth 2。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Feishu/Lark OpenAPI MCP

English | 中文

Developer Documentation Retrieval MCP

Official Document

Trouble Shooting

⚠️ Beta Version Notice: This tool is currently in Beta stage. Features and APIs may change, so please stay updated with version releases.

This is the Feishu/Lark official OpenAPI MCP (Model Context Protocol) tool designed to help users quickly connect to the Feishu/Lark platform and enable efficient collaboration between AI Agents and Feishu/Lark. The tool encapsulates Feishu/Lark Open Platform API interfaces as MCP tools, allowing AI assistants to directly call these interfaces and implement various automation scenarios such as document processing, conversation management, calendar scheduling, and more.

Preparation

Creating a Feishu/Lark Application

Before using the lark-mcp tool, you need to create a Feishu/Lark application:

  1. Visit the Feishu Open Platform or Lark Open Platform and log in
  2. Click “Console” and create a new application
  3. Obtain the App ID and App Secret, which will be used for API authentication
  4. Add the necessary permissions for your application based on your usage scenario
  5. If you need to call APIs as a user, set the OAuth 2.0 redirect URL to http://localhost:3000/callback

For detailed application creation and configuration guidelines, please refer to the Feishu Open Platform Documentation - Creating an Application.

Installing Node.js

Before using the lark-mcp tool, you need to install the Node.js environment.

Using the Official Installer (Recommended):

  1. Visit the Node.js website
  2. Download and install the LTS version
  3. After installation, verify in the terminal:
node -v
npm -v

Quick Start

Using with Trae/Cursor/Claude

To integrate Feishu/Lark functionality in AI tools like Trae, Cursor or Claude, install using the button below.

在 GitHub 查看完整 README

安装

npx -y @larksuiteoapi/lark-mcp mcp -a <your_app_id> -s <your_app_secret>
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "lark-mcp": { "command": "npx", "args": [ "-y", "@larksuiteoapi/lark-mcp", "mcp", "-a", "<your_app_id>", "-s", "<your_app_secret>" ] } } }