JQ

junyuan-qi/lark-mcp-server

开发工具

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

6 stars 4 forks 质量 54 趋势 6

一个模型背景协议(MCP)服务器对Lark/Feishu的执行,使MCP相容的应用程序能够与Lark的各种协作能力进行交互.

概览

一个模型背景协议(MCP)服务器对Lark/Feishu的执行,使MCP相容的应用程序能够与Lark的各种协作能力进行交互. 摇篮MCP 服务器通过实施"模型背景协议"(MCP)规格,为AI模型与拉克的合作平台提供桥梁. 此服务器允许 AI 助手: - 向拉克用户发送消息 - 检索日历事件 - 创建新的日历事件 - 添加日历事件的参与者 服务器使用标准 I/O (stdio) 传输层与MCP客户端通信,使其与支持MCP标准的各种AI模型执行相兼容. - :AI模型可以直接向拉克用户发送消息 - : - 列出特定时间范围内的事件 - 创建具有自定义细节的新日历事件 - 在活动(用户,团体,会议室,外部电子邮件)中添加各类参与者. - 节点.

概述(AI 翻译)

一个模型背景协议(MCP)服务器对Lark/Feishu的执行,使MCP相容的应用程序能够与Lark的各种协作能力进行交互.

□ 概览

摇篮MCP 服务器通过实施"模型背景协议"(MCP)规格,为AI模型与拉克的合作平台提供桥梁. 此服务器允许 AI 助手:

  • 向拉克用户发送信息
  • 检索日历事件
  • 创建新的日历事件
  • 增加日历活动的参与者

服务器使用标准 I/O (stdio) 传输层与MCP客户端通信,使其与支持MCP标准的各种AI模型执行相兼容.

□ 特性

  • Message Sending:AI模型可以直接向拉克用户发送消息
  • ** 薪金管理**:
  • 列出特定时间范围内的事件
  • 创建带有自定义详细内容的新日历事件
  • 在活动(用户、团体、会议室、外部电子邮件)中增加各类参与者

□ 先决条件

  • 节点.js v18或以上
  • 登记在册的拉克/费苏申请,并获得适当许可
  • 日历操作的用户访问令牌

□ 安装

  1. 清除储存库:

  2. 联合国.

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

README

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

Lark MCP Server

A Model Context Protocol (MCP) server implementation for Lark/Feishu, enabling MCP-compatible applications to interact with Lark’s various collaboration capabilities.

Overview

Lark MCP Server provides a bridge between AI models and Lark’s collaboration platform by implementing the Model Context Protocol (MCP) specification. This server allows AI assistants to:

  • Send messages to Lark users
  • Retrieve calendar events
  • Create new calendar events
  • Add attendees to calendar events

The server uses the standard I/O (stdio) transport layer to communicate with MCP clients, making it compatible with various AI model implementations that support the MCP standard.

Features

  • Message Sending: AI models can send direct messages to Lark users
  • Calendar Management:
    • List events within a specific time range
    • Create new calendar events with customizable details
    • Add various types of attendees to events (users, groups, meeting rooms, external emails)

Prerequisites

  • Node.js v18 or higher
  • A registered Lark/Feishu application with appropriate permissions
  • User access token for calendar operations

Installation

  1. Clone the repository:

    git clone https://github.com/junyuan-qi/lark-mcp-server.git
    cd lark-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

Usage

Connecting with an MCP Client

The server communicates via standard input/output (stdio). MCP clients can connect to the server by launching it as a child process and communicating through its stdin/stdout channels.

Setting Up with Claude Desktop

You can integrate this MCP server with Claude Desktop by configuring the Claude Desktop application to recognize and use the Lark MCP server.

1. Configure Claude Desktop to recognize the Lark MCP server

You can find claude_desktop_config.json inside the settings of Claude Desktop app:

  1. Open the Claude Desktop app and enable Developer Mode from the top-left menu bar.
  2. Once enabled, open Settings (also from the top-left menu bar) and navigate to the Developer Option, where you’ll find the Edit Config button. Clicking it will open the claude_desktop_config.json file, allowing you to make the necessary edits.

Alternatively, you can open claude_desktop_config.json directly from terminal:

For macOS:

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

For Windows:

code %APPDATA%\Claude\claude_desktop_config.json

2. Add the Lark MCP server configuration

Add the following configuration to the mcpServers section of your claude_desktop_config.json:

{
  "mcpServers": {
    "lark-mcp-server": {
      "command": "node",
      "args": ["/path/to/lark-mcp-server/build/index.js"],
      "env": {
        "LARK_APP_ID": "your_app_id",
        "LARK_APP_SECRET": "your_app_secret",
        "LARK_USER_ID": "target_user_id",
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "lark-mcp-server": { "command": "node", "args": ["/path/to/lark-mcp-server/build/index.js"], "env": { "LARK_APP_ID": "your_app_id", "LARK_APP_SECRET": "your_app_secret", "LARK_USER_ID": "target_user_id", "LARK_CALENDAR_ID": "target_calendar_id", "LARK_USER_ACCESS_TOKEN": "your_user_access_token" } } } }