/feishu-user-plugin:feishu-user-pluginfrom feishu-user-plugin
Sends Feishu messages as yourself, reads group/P2P chats, manages docs, tables, wiki, drive, OKR, calendar, and Tasks v2. Replaces the official Feishu MCP with 85 tools.
Ships in feishu-user-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
All-in-one Feishu plugin for Claude Code with three auth layers:
This plugin replaces and extends the official Feishu MCP. No need to install two packages.
Activate when the user mentions:
Parse "recipient: message" format, auto-detect user vs group, confirm before sending.
Search chat → read recent messages → show summary → user picks a message → reply.
Search chat → read N days of messages → filter valuable content → summarize key insights.
Search users and groups by name, display results grouped by type.
Search (search_docs), read (read_doc), create (create_doc) — three in one.
Query (manage_bitable_table(action=list) → manage_bitable_field(action=list) → manage_bitable_record(action=search)), create / update / delete records via manage_bitable_record(action=create|update|delete).
List spaces (list_wiki_spaces), search content (search_wiki), browse nodes (list_wiki_nodes).
List files in folders, create new folders in Feishu Drive.
Check cookie / app credentials / UAT — all three auth layers at once.
| Env Variable | Who Provides | Purpose | Required |
|---|---|---|---|
| LARK_COOKIE | You | Send messages as yourself | Yes (for messaging) |
| LARK_APP_ID | You (create a Feishu app) | Official API access | Yes |
| LARK_APP_SECRET | You (from your Feishu app) | Official API access | Yes |
| LARK_USER_ACCESS_TOKEN | You (OAuth flow) | Read P2P chat history | Yes (for P2P reading) |
| LARK_USER_REFRESH_TOKEN | You (OAuth flow) | UAT auto-refresh | Yes (for P2P reading) |
Prerequisite: Playwright MCP must be installed. If not, run:
npx @anthropic-ai/claude-code mcp add playwright -- npx @anthropic-ai/mcp-server-playwright
Then restart Claude Code.
Automated flow (recommended, zero manual cookie copying):
Just tell Claude Code: "Help me set up my Feishu cookie"
Claude Code will automatically:
- Open feishu.cn in a browser via Playwright
- Show you the QR code — scan it with Feishu mobile app
- Extract the full cookie (including HttpOnly) via
context.cookies()- Write it to your
.mcp.jsonLARK_COOKIE field- Prompt you to restart Claude Code
Manual fallback (if Playwright is unavailable):
.mcp.json env LARK_COOKIE fieldDo NOT use
document.cookieor Application → Cookies — they miss HttpOnly cookies required for auth.
im:message, im:message:readonly, im:chat:readonly, contact:user.base:readonly.mcp.jsonThe plugin supports multiple Feishu organization accounts via named profiles
in ~/.feishu-user-plugin/credentials.json. Each profile has its own
COOKIE / APP_ID / APP_SECRET / UAT.
Drive this end-to-end via the Bash tool — DO NOT just print commands and ask the user to type them. Specifically:
1. Confirm what's needed, then collect:
work2, personal, etc.; let user pick)2. Run setup (no --activate — keep current account active so user
isn't yanked off mid-session):
npx feishu-user-plugin setup --profile <name> --app-id <X2> --app-secret <S2> --cookie <C2>
3. Run OAuth for the new profile (this opens a browser tab; user must click "授权" in the consent page — that part is unavoidable):
npx feishu-user-plugin oauth --profile <name>
After consent, UAT is written to credentials.json::profiles[<name>].
4. Confirm via list_profiles MCP tool — should now see both default
and <name>, with default still active.
5. Tell the user how to switch later — call switch_profile(name="<name>")
MCP tool from Claude Code; cross-process MCP processes auto-sync within ms
via dispatcher mtime hook.
Just call switch_profile(name="<profile>") MCP tool. Don't run any CLI
command. Cached clients reset; next tool call uses the new account.
If the named profile doesn't exist, list_profiles first to show the user their actual profile names, then ask which they meant.
Call list_profiles MCP tool. Show the active marker.
If the user has multiple profiles with UAT, suggest:
crontab -e # add this line:
0 */4 * * * npx feishu-user-plugin keepalive --all >> /tmp/feishu-keepalive.log 2>&1
The --all flag iterates every profile in credentials.json (without it,
only the active profile gets refreshed — sufficient for single-account
users but multi-account users will see other profiles' UATs expire).
upload_image → send_image_as_user(image_key=...)).send_card_as_user always routes through bot identity. User-identity
(cookie protobuf) card sending was confirmed server-side disabled in
v1.3.9 (exhaustive brute-force).keepalive
cron weekly to prevent refresh_token expiration.switch_profile MCP tool when you want to flip.references/digest.md (opens in a new tab)references/doc.md (opens in a new tab)references/drive.md (opens in a new tab)references/reply.md (opens in a new tab)references/search.md (opens in a new tab)references/send.md (opens in a new tab)references/status.md (opens in a new tab)references/table.md (opens in a new tab)references/wiki.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (ethanqc/feishu-user-plugin) — no native marketplace selected
npx claudepluginhub p/ethanqc-feishu-user-pluginOther plugins' skills for the same job