Logotipo de Feishu/Lark

Feishu/Lark

Organización
larksuite

飞书/Lark官方 OpenAPI MCP

Editorlarksuite
Repositoriolark-openapi-mcp
IdiomaTypeScript
Forks
122
Estrellas
837
Herramientas disponibles
19
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Feishu/Lark ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 19 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    837 estrellas y 122 forks en el repositorio enlazado.

Feishu/Lark OpenAPI MCP

npm version npm downloads Node.js Version

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:
bash
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.

Install MCP Server

Install MCP Server Install MCP Server

or add the following to your configuration file:

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

If you need to access APIs with user identity, you need to login first using the login command in the terminal. Note that you need to configure the application's redirect URL in the developer console first, default is http://localhost:3000/callback

bash

# Login and get user access token
npx -y @larksuiteoapi/lark-mcp login -a cli_xxxx -s yyyyy
   
# Or optionally, login with specific OAuth scope - if not specified, all permissions will be authorized by default
npx -y @larksuiteoapi/lark-mcp login -a cli_xxxx -s yyyyy --scope offline_access docx:document

Then add the following to your configuration file:

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

Note: When enabling --oauth, it's recommended to explicitly set --token-mode to user_access_token, which means calling APIs with user access tokens, suitable for accessing user resources or scenarios requiring user authorization (such as reading personal documents, sending IM messages). If you keep the default auto, some APIs AI may fallback to tenant_access_token, which could result in insufficient permissions or inability to access user private data.

Domain Configuration

Based on your usage scenario, lark-mcp supports configuring different domain environments:

Feishu (China Version):

  • Default uses https://open.feishu.cn domain
  • Suitable for users in China

Lark (International Version):

  • Uses https://open.larksuite.com domain
  • Suitable for overseas users or international version of Lark

To switch to the international version of Lark, add the --domain parameter in your configuration:

json
{
  "mcpServers": {
    "lark-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@larksuiteoapi/lark-mcp",
        "mcp",
        "-a",
        "<your_app_id>",
        "-s",
        "<your_app_secret>",
        "--domain",
        "https://open.larksuite.com"
      ]
    }
  }
}

💡 Tip: Ensure your application is created in the corresponding domain environment's open platform. International version applications cannot be used with Feishu China version, and vice versa.

Custom API Configuration

⚠️ File Upload/Download: File upload and download operations are not yet supported

⚠️ Document Editing: Direct editing of Feishu cloud documents is not supported (only importing and reading are available)

By default, the MCP service enables common APIs. To enable other tools or only specific APIs or presets, you can specify them using the -t parameter in the MCP Client configuration (JSON):

json
{
  "mcpServers": {
    "lark-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@larksuiteoapi/lark-mcp",
        "mcp",
        "-a", "<your_app_id>",
        "-s", "<your_app_secret>",
        "-t", "im.v1.message.create,im.v1.message.list,im.v1.chat.create,preset.calendar.default"
      ]
    }
  }
}

For detailed information about all preset tool collections and which tools are included in each preset, please refer to the Preset Tool Collections Reference.

A complete list of all supported Feishu/Lark tools can be found in tools.md.

⚠️ Notice:Non-preset APIs have not undergone compatibility testing, and the AI may not perform optimally during the process of understanding and using them.

Development Integration

Developers can refer to the minimal example for integrating with Agent: lark-samples/mcp_quick_demo.

You can also refer to the Lark bot integration example: lark-samples/mcp_larkbot_demo/nodejs.

This example demonstrates how to integrate MCP capabilities into Feishu/Lark bots, triggering tool calls and message sending through bot conversations, suitable for scenarios that integrate existing tools into Bot.

Advanced Configuration

For detailed configuration options and deployment scenarios, please refer to our Configuration Guide.

For detailed information about all available command line parameters and their usage, please refer to the Command Line Reference.

FAQ

Related Links

Feedback

Issues are welcome to help improve this tool. If you have any questions or suggestions, please raise them in the GitHub repository.

Instalación

TypingMind
Requisitos:

Node.js 18+

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

Herramientas disponibles

  • bitable_v1_app_create

    [Feishu/Lark]-Docs-Base-App-Create a Base App-Create a base app in user-defined folder

  • bitable_v1_appTable_create

    [Feishu/Lark]-Docs-Base-Table-Create table-Access this API, you can add an empty data table containing only index columns, or specify some initial fields

  • bitable_v1_appTableField_list

    [Feishu/Lark]-Docs-Base-Field-List fields-Get all fields according to app_token and table_id

  • bitable_v1_appTable_list

    [Feishu/Lark]-Docs-Base-Table-List all tables-According to app_token, get all tables under app

  • bitable_v1_appTableRecord_create

    [Feishu/Lark]-Docs-Base-record-Create a record-Create a record

  • bitable_v1_appTableRecord_search

    [Feishu/Lark]-Docs-Base-record-Search records-This api is used to query existing records in the table. A maximum of 500 rows of records can be queried at a time, and paging is supported

  • bitable_v1_appTableRecord_update

    [Feishu/Lark]-Docs-Base-record-Update a record-Update a record

  • contact_v3_user_batchGetId

    [Feishu/Lark]-Contacts-User-Obtain user ID via email or mobile number-Call this interface to obtain the ID (including user_id, open_id, union_id) and status information of one or more users through their mobile phone number or email address

  • docx_v1_document_rawContent

    [Feishu/Lark]-Docs-Document-Document-Obtain the plain text content of the document-Obtains the plain text content of the document

  • drive_v1_permissionMember_create

    [Feishu/Lark]-Docs-Permission-Member-Add permissions-This API is used to add permissions on a document for a user based on a filetoken

  • im_v1_chat_create

    [Feishu/Lark]-Group Chat-Group management-Create a group-Create a group chat. When creating a group chat, you can set the group avatar, group name, group owner, group type and other configurations. You can also invite group members and group bots to join the group

  • im_v1_chat_list

    [Feishu/Lark]-Group Chat-Group management-Obtain groups where the user or bot is a member-Get the list of groups where the user or bot represented by is a member

  • im_v1_chatMembers_get

    [Feishu/Lark]-Group Chat-Group member-Obtain group member list-Get the list of members of the group the user/bot is in

  • im_v1_message_create

    [Feishu/Lark]-Messaging-Message management-Send message-Call this interface to send a message to a specified user or group chat. Supported message types include text, rich text, cards, group business cards, personal business cards, pictures, videos, audio, files, and emoticons

  • im_v1_message_list

    [Feishu/Lark]-Messaging-Message management-Get chat history-Obtains chat history (chat records) of chats (including private chats and group chats)

  • wiki_v1_node_search

    [Feishu/Lark]-Docs-Wiki-Search Wiki

  • wiki_v2_space_getNode

    [Feishu/Lark]-Docs-Wiki-node-Get Wiki node information-Get wiki node inforamtion

  • docx_builtin_search

    [Feishu/Lark]-Docs-Document-Search Document-Search cloud documents, only supports user_access_token

  • docx_builtin_import

    [Feishu/Lark]-Docs-Document-Import Document-Import cloud document, maximum 20MB

Usa el MCP de Feishu/Lark con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Feishu/Lark, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Feishu/Lark como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Feishu/Lark.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "feishu-lark": {
      "command": "npx",
      "args": [
        "-y",
        "@larksuiteoapi/lark-mcp"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Feishu/Lark y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Feishu/Lark.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Feishu/Lark para ayudarme con esta tarea?
Feishu/Lark
Claro. Lo he leído.
Esto he encontrado usando Feishu/Lark.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Feishu/Lark?

Feishu/Lark es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Feishu/Lark con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Feishu/Lark con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Feishu/Lark con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Feishu/Lark conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Feishu/Lark a TypingMind?

Feishu/Lark funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Feishu/Lark en TypingMind?

Feishu/Lark ofrece 19 herramientas MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Feishu/Lark?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Feishu/Lark requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇