Skip to main content
Glama
YuanZhiTech

lark-mcp-server

by YuanZhiTech
README.md
# Lark MCP Server / 飞书 MCP Server

> šŸ‡ØšŸ‡³ The first Chinese MCP Server for Lark/Feishu — let any AI client operate Feishu through MCP protocol.
> šŸ‡ØšŸ‡³ é¦–äøŖé£žä¹¦ MCP Server — 让任何 AI å®¢ęˆ·ē«Æé€ščæ‡ę ‡å‡† MCP åč®®ę“ä½œé£žä¹¦ć€‚

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Python](https://img.shields.io/badge/python-3.10+-blue.svg)](pyproject.toml)
[![MCP](https://img.shields.io/badge/MCP-2025--11--25-blue)](https://modelcontextprotocol.io)

## šŸš€ Quick Start / åæ«é€Ÿå¼€å§‹

### Install / 安装

```bash
# via pip
pip install lark-mcp-server

# or via uvx (no install needed)
uvx lark-mcp-server
```

### Prerequisites / å‰ęę”ä»¶

You need [lark-cli](https://github.com/agent-garden/lark-cli) installed and authenticated:

```bash
# Install lark-cli & login
lark-cli auth login
```

### Configure with Claude Desktop / é…ē½®åˆ° Claude Desktop

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "lark": {
      "command": "uvx",
      "args": ["lark-mcp-server"]
    }
  }
}
```

Now Claude can send/receive Feishu messages, list chats, and more! šŸ¤–

---

## šŸ› ļø Tools / å·„å…·åˆ—č”Ø

### šŸ’¬ IM Messages / 消息

| Tool | Description | čÆ“ę˜Ž |
|------|-------------|------|
| `lark_send_message` | Send text/markdown to a chat | å‘é€ę¶ˆęÆåˆ°čŠå¤© |
| `lark_reply_message` | Reply to a message | å›žå¤ę¶ˆęÆ |
| `lark_list_chats` | List group chats | åˆ—å‡ŗē¾¤čŠåˆ—č”Ø |
| `lark_get_chat_members` | Get chat member list | čŽ·å–ē¾¤ęˆå‘˜ |
| `lark_list_messages` | View chat history | ęŸ„ēœ‹čŠå¤©åŽ†å² |
| `lark_send_card` | Send interactive card | å‘é€äŗ¤äŗ’å”ē‰‡ |

### šŸ‘¤ Contacts / 联系人

| Tool | Description | čÆ“ę˜Ž |
|------|-------------|------|
| `lark_get_user_info` | Get user information | čŽ·å–ē”Øęˆ·äæ”ęÆ |

### šŸ“… Calendar / ę—„åŽ†

| Tool | Description | čÆ“ę˜Ž |
|------|-------------|------|
| `lark_get_agenda` | View calendar agenda | ęŸ„ēœ‹ę—„ēØ‹å®‰ęŽ’ |

---

## šŸ’” Use Cases / ä½æē”Øåœŗę™Æ

### šŸ¤– AI Agent Automates Feishu / Agent č‡ŖåŠØå¤„ē†é£žä¹¦ę¶ˆęÆ

```python
# Your AI agent can now:
# - Monitor and reply to messages automatically
# - Send batch notifications to group chats
# - Check meeting schedules and notify attendees
```

### šŸ“Š Data Integration / ę•°ę®é›†ęˆ

```python
# Connect Feishu with other tools via MCP:
# - Read Feishu messages → process with AI → write to database
# - Sync calendar events to your task manager
# - Automate HR onboarding workflows
```

### šŸ”„ Cross-platform Automation / č·Øå¹³å°č‡ŖåŠØåŒ–

```python
# Feishu + GitHub + Slack = automated workflow
# All connected through standard MCP protocol
```

---

## šŸ“¦ Project Structure / é”¹ē›®ē»“ęž„

```
lark-mcp-server/
ā”œā”€ā”€ pyproject.toml          # Python package config
ā”œā”€ā”€ src/lark_mcp_server/
│   ā”œā”€ā”€ server.py           # MCP server entry, tool registration
│   └── client.py           # LarkClient — lark-cli subprocess wrapper
└── tests/
    └── test_client.py      # Integration tests
```

---

## šŸ”— Related Projects / 相关锹目

- [lark-cli](https://github.com/agent-garden/lark-cli) — Lark/Feishu CLI tool
- [YuanZhiTech](https://github.com/YuanZhiTech) — Our Agent Garden organization

---

## šŸ“„ License

MIT Ā© 2026 Agent Garden

*Built by AI Agents, for AI Agents.* šŸ¤–
*ē”± AI Agent ęž„å»ŗļ¼Œäøŗ AI Agent ęœåŠ”ć€‚*

TDQS

B3.3/5.0

Scored across 8 tools

Disambiguation5/5

Each tool targets a distinct resource and action: sending, replying, listing chats, getting members, viewing messages, sending cards, user info, and agenda. While send_message and send_card both send to a chat, their descriptions clearly distinguish text from interactive cards, leaving no ambiguity.

Naming Consistency5/5

All tool names follow the same pattern: lark_verb_noun (e.g., lark_send_message, lark_list_chats). The verbs are consistent (send, reply, list, get) and all use snake_case, making the naming uniform and predictable.

Tool Count5/5

With 8 tools, the server is well-scoped for a collaboration platform covering messaging, chat management, user info, and agenda reading. Each tool earns its place without being overwhelming or sparse.

Completeness3/5

The server covers core messaging workflows (send, reply, list history) and read operations for chats and users, but lacks write operations for chats (create/update/delete), message editing/deletion, and calendar management beyond reading. These gaps could cause agents to hit dead ends when trying to manage resources.

Maintenance

ActivityStale
ResponsivenessNo issues