Lark Openapi

Developer tools

飞书/Lark官方 OpenAPI MCP.

Your AI app calls the Lark Openapi MCP server, which does the developer tools work and sends the result back to the chat.

About Lark Openapi

Lark Openapi is a community MCP server from larksuite, filed in our directory under developer tools. 飞书/Lark官方 OpenAPI MCP.

Lark Openapi runs on your own machine: your AI app starts it with the command npx -y @larksuiteoapi/lark-mcp and talks to it over standard input and output.

At a glance

Publisher
larksuite (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @larksuiteoapi/lark-mcp
Written in
TypeScript
License
MIT
GitHub stars
880

How to set up Lark Openapi

  1. Install Node.js on the machine that runs your AI app, because Lark Openapi starts with npx and downloads its package on first run.
  2. Check the Lark Openapi README for keys or settings; the registry lists none that Lark Openapi requires.
  3. Add Lark Openapi to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Lark Openapi tools to confirm the connection.
  5. Run one read-only task with Lark Openapi first, and keep your app asking before each tool call until the results look right.

Lark Openapi compared with similar servers

  • Okf Agent Memory by okf-memory has fewer GitHub stars than Lark Openapi (880 against 880); both are community servers, and both run locally.
  • Hyper by hyper-mcp-rs has more GitHub stars than Lark Openapi (884 against 880); both are community servers, and both run locally.
  • PHP MCP Server by php-mcp has fewer GitHub stars than Lark Openapi (880 against 880); both are community servers, and PHP MCP Server runs as a remote server and Lark Openapi runs on your own machine.

Before you connect Lark Openapi

  • Give Lark Openapi its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Lark Openapi tool call until you trust what it does with them.
  • Treat text that Lark Openapi fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Lark Openapi on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Lark Openapi

How marketing and sales teams put Lark Openapi to work, by company size. Pick the size closest to yours and start Lark Openapi on one use case.

Small business

  • A small business with a developer can use Lark Openapi to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Lark Openapi to explain and fix a marketing site issue without context switching between tools.
  • Lark Openapi runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Lark Openapi to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Lark Openapi to keep scripts and automations documented and versioned as they change.
  • Start Lark Openapi on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Lark Openapi with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Lark Openapi so web and marketing engineering share one reviewed way of working with AI.
  • Lark Openapi is a community server, so have security review the code and pin a version before Lark Openapi touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Lark Openapi README

From larksuite/lark-openapi-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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.

or add the following to your configuration file:

{
  "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


# 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:

{
  "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:

{
  "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):

{
  "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.

Questions about Lark Openapi

What is the Lark Openapi MCP server?

飞书/Lark官方 OpenAPI MCP. Lark Openapi is maintained by larksuite on GitHub at larksuite/lark-openapi-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Lark Openapi MCP server?

Add Lark Openapi to your AI app's MCP config with the command npx -y @larksuiteoapi/lark-mcp. In Claude Code, run claude mcp add --transport stdio lark-openapi -- npx -y @larksuiteoapi/lark-mcp. To run Lark Openapi this way you need Node.js installed.

Does Lark Openapi need an API key?

The registry lists no required keys for Lark Openapi. Check the Lark Openapi README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Lark Openapi an official MCP server?

No. Lark Openapi is a community server maintained by larksuite. Community servers can be excellent; read the code and the open issues before you give Lark Openapi access to company data.

What license is Lark Openapi under?

Lark Openapi is released under the MIT license, according to its GitHub repository. The license covers the code of Lark Openapi; the service it connects to has its own terms.