Cover image
Try Now
2025-03-03

3 years

Works with Finder

1

Github Watches

3

Github Forks

4

Github Stars

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",
        "LARK_CALENDAR_ID": "target_calendar_id",
        "LARK_USER_ACCESS_TOKEN": "your_user_access_token"
      }
    }
  }
}

Replace the path and environment variables with your actual values. This configuration tells Claude Desktop how to launch the Lark MCP server and what environment variables to provide.

3. Restart Claude Desktop

For the changes to take effect:

  1. Completely quit Claude Desktop (not just close the window)
  2. Start Claude Desktop again
  3. Look for an icon in the UI to verify the Lark MCP server is connected

Once connected, Claude will be able to send messages to Lark users and manage calendar events on your behalf.

Development

Project Structure

  • src/index.ts: Main server implementation
  • build/: Compiled JavaScript files
  • package.json: Project dependencies and scripts

Building

npm run build

This compiles the TypeScript code to JavaScript in the build directory and sets executable permissions.

Troubleshooting

Check the server logs (written to stderr) for detailed error information. Common issues include:

  • Missing environment variables
  • Incorrect or expired access tokens
  • Insufficient permissions for the Lark application
  • Invalid request parameters

License

ISC

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


For more information about the Model Context Protocol, visit the MCP Documentation.

For more information about Lark/Feishu API, visit the Lark Open Platform Documentation.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • OffchainLabs
  • Go implementation of Ethereum proof of stake

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

  • zhaoyunxing92
  • 本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。

  • pontusab
  • The Cursor & Windsurf community, find rules and MCPs

    Reviews

    1 (1)
    Avatar
    user_94dLDY9h
    2025-04-15

    The Burp Suite MCP Server Extension by PortSwigger is an exceptional tool for cybersecurity professionals. It seamlessly integrates with Burp Suite, offering robust server management and enhanced penetration testing capabilities. Highly recommended for anyone serious about security testing!