Skip to main content
Glama

@yoreland/lark-cli-mcp

One-line npx MCP server that lets AI clients (Amazon Quick Desktop, Claude Desktop, …) operate Feishu / Lark as your own user identity — send, read, reply, and search messages.

It wraps the official lark-cli (bundled as a dependency, no separate install) and exposes 7 messaging tools over MCP stdio. Because every call runs with --as user, the sender shown in Feishu is you, not a bot.


Quick start (for workshop attendees)

# 1) Log in once (OAuth device flow — opens a URL / shows a QR code)
npx -y @yoreland/lark-cli-mcp auth

# 2) Sanity check
npx -y @yoreland/lark-cli-mcp doctor

Then add the MCP server in your client:

Field

Value

Connection

Local (stdio)

Command

npx

Arguments

-y @yoreland/lark-cli-mcp

You should see 7 tools · Connected

Quick Desktop tip: arguments are space-split. -y @yoreland/lark-cli-mcp is fine (no spaces inside the package name).


Prerequisites

  • Node.js v18+ (node -v)

  • An MCP client (Amazon Quick Desktop / Claude Desktop / etc.)

  • A Feishu/Lark account in the org running the workshop

  • Network access to npm registry and Feishu OAuth

The Feishu App ID / Secret is provided centrally by the workshop host and baked into the shared lark-cli config — attendees only do the OAuth login step. (See Host setup.)

Behind the Great Firewall? Use a mirror: npm config set registry https://registry.npmmirror.com


Commands

npx -y @yoreland/lark-cli-mcp            # start MCP server (stdio) — what the client runs
npx -y @yoreland/lark-cli-mcp auth       # OAuth device-flow login (user identity)
npx -y @yoreland/lark-cli-mcp status     # show auth status
npx -y @yoreland/lark-cli-mcp logout     # clear token
npx -y @yoreland/lark-cli-mcp doctor     # environment + login self-check
npx -y @yoreland/lark-cli-mcp -- <args>  # passthrough to bundled lark-cli

The 7 tools

Tool

What it does

lark-cli command

feishu_send_message

Send a message

im +messages-send --as user

feishu_get_messages

Read recent messages

im +chat-messages-list --as user

feishu_reply_message

Reply (thread optional)

im +messages-reply --as user

feishu_search_messages

Search messages

im +messages-search --as user

feishu_list_chats

Find group chats

im +chat-search --as user

feishu_search_user

Find a user (→ open_id)

contact +search-user --as user

feishu_get_thread

View a thread

im +threads-messages-list --as user

Talk to it naturally

Goal

Say to your assistant

Read a group

"看看 XX 群最近聊了什么"

Send

"在 XX 群说:明天会议改到 3 点"

Reply

"回复那条消息:收到,我来跟进"

Search

"搜一下谁提过客户报价"

Find someone

"帮我找一下张三的 open_id"

View a thread

"看看那条消息下面的讨论"


Host setup

The workshop host creates one Feishu custom app and configures it so attendees share the same App ID/Secret but each authorize their own account.

  1. Feishu Open Platform → create an internal custom app → note App ID / App Secret.

  2. Enable User token scopes matching the im, contact, search domains (message read/write, reply, chat read, user search, message search).

  3. Distribute the App ID/Secret to attendees via lark-cli config (or a pre-bound config). The login step requests scopes via --domain im,contact.

auth uses OAuth Device Flow, so no redirect URL / localhost:3000 callback configuration is required.


Troubleshooting

missing required scope(s) — re-login with the needed domain:

npx -y @yoreland/lark-cli-mcp auth --domain im,contact

Client shows "No tools loaded" — run npx -y @yoreland/lark-cli-mcp doctor; confirm Node ≥18 and that auth status is OK.

Token expired — just re-run auth.


Known limitations

  • No image/file attachment sending (text + markdown only)

  • No interactive cards

  • No group creation

  • Tokens expire; re-run auth when they do


How it works

MCP client (Quick Desktop / Claude Desktop)
    │  stdio (MCP / JSON-RPC)
    ▼
@yoreland/lark-cli-mcp  (server.mjs)
    │  child_process.execFile (no shell → injection-safe)
    ▼
lark-cli --as user   (bundled dependency)
    │  OAuth user_access_token (device flow)
    ▼
Feishu / Lark Open API

License

MIT

Install Server
A
license - permissive license
A
quality
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yoreland/lark-cli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server