lark-chat-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lark-chat-mcp 持续监听飞书群 开发讨论"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
lark-chat-mcp
飞书 ↔ Cursor / Claude 单会话远程聊天(v0.1.0)
你在飞书发消息,本机 Agent 通过 MCP 收到并流式回复——单群、单进程、零配置。
能做什么
方向 | 行为 |
飞书 → Agent |
|
Agent → 飞书 |
|
暂不支持多群并行
Related MCP server: Claude Code Feishu Channel
如何使用
配置好mcp,会话中
/mcp确认是Connected输入:
> 持续监听飞书群 <随便起个群名>然后就可以远程指挥你的
Claude/Cursor了
前置
Node.js 18+
lark-cli 已
auth login(user + bot 均ready)飞书应用已订阅
im.message.receive_v1并发布
首次接入完整步骤见 docs/how_to_work.md。
安装
npm(推荐)
以 Claude Code 为例:
# 当前项目
claude mcp add lark-chat-mcp -- npx -y @eos./lark-chat-mcp
# 全局
claude mcp add lark-chat-mcp -s user -- npx -y @eos./lark-chat-mcp
claude mcp listCursor / Claude Desktop 配置:
{
"mcpServers": {
"lark-chat-mcp": {
"command": "npx",
"args": ["-y", "@eos./lark-chat-mcp"]
}
}
}重载 MCP 后 新开 Agent 会话,应看到 4 个工具。
源码开发
git clone https://github.com/gitByEOS/lark-chat-mcp
cd lark-chat-mcp
npm install
npm test # 期望全部通过本地调试时 args 用 server.mjs 绝对路径:
{
"mcpServers": {
"lark-chat-mcp": {
"command": "node",
"args": ["/绝对路径/lark-chat-mcp/server.mjs"]
}
}
}MCP 工具
工具 | 作用 |
|
|
| 阻塞等消息; |
| 流式卡片 |
|
|
单实例与事件消费
全机只能运行 一个 server.mjs:
第二实例会因
~/.lark-chat-mcp/server.lock直接退出同进程并发
watch返回watch_busy
ps aux | grep server.mjs # 应只有 1 个
lark-cli event status --json # active_consumers 应为 1环境变量(可选)
MCP 日常不用配。仅边缘场景:
变量 | 说明 |
| 群里只接收该用户( |
Available Tools
4 toolslark_chat_progressA
改代码时逐步汇报进度:首步 open 流式卡,后续 step 自动 append,done=true 关闭。
Inputs: step, done, stream_id, reply_to, +2 more.
lark_chat_sessionC
飞书单会话:list 列群 · find 按名搜 · create 自定义群名建群并绑定。
Inputs: action (required), name, query.
lark_chat_streamB
飞书 CardKit 流式卡片:append 累积更新 → close 终态。watch 已开卡时用返回的 stream_id。
Inputs: action (required), text, stream_id, reply_to, +1 more.
lark_chat_watchA
阻塞等待飞书用户新消息(单群)。 先 session(create/find) 拿 chat_id,或 watch(chat_id=oc_xxx) 绑定。 收到后自动开流式卡,timeout 时立即再 watch(单次最长 30s poll)。 探活:clear=true, timeout_ms=1000,响应额外含 guide。
Inputs: timeout_ms, clear, chat_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Tools have distinct names but functional overlap: lark_chat_progress and lark_chat_stream both involve streaming card updates, and lark_chat_watch also opens a streaming card on receiving messages. This could cause confusion for an agent selecting a tool for card operations.
All tools follow a consistent 'lark_chat_<noun>' pattern in snake_case, making them predictable and easy to distinguish by name alone.
With 4 tools, the set is slightly small but covers the essential functions of session management, progress updates, streaming cards, and message watching, which is reasonable for a focused chat integration.
The tool surface lacks basic messaging operations like sending plain text or media, and there is no explicit delete or edit. While progress and stream cover some updates, there are notable gaps for a general chat server.
Maintenance
Related MCP Connectors
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Hosted Slack MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables Claude/Cursor to interact with Feishu (Lark) bots through MCP, allowing LLMs to execute business logic via Feishu robot APIs.18-
- AlicenseNot gradedqualityDmaintenanceMCP server that pushes Feishu (Lark) messages to Claude Code sessions and allows Claude to reply directly in Feishu.2MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for Feishu/Lark API integration, enabling AI agents to send messages, manage groups, create and edit documents and spreadsheets, and search knowledge bases.MIT
- AlicenseNot gradedqualityDmaintenanceEnables sending text messages, files, and images to Feishu (Lark) group chats via MCP, with support for automatic default group configuration.MIT