MCP Server for Lark/Feishu OpenAPI
Project description
yuppie-mcp-lark
飞书(Lark / Feishu)MCP Server — 让 AI 助手通过 MCP 协议操作飞书消息、多维表格、电子表格。
特性
- 消息:发送单聊/群聊消息
- 多维表格:搜索记录(支持分页、排序、过滤)
- 电子表格:元信息查询、工作表增删复制、范围读写、追加数据、删除行列
- 鉴权:基于飞书应用
tenant_access_token,自动刷新 - 部署:仅 stdio,本地 AI 助手友好
快速开始
Claude Code
在 .mcp.json 中添加:
{
"mcpServers": {
"lark": {
"type": "stdio",
"command": "uvx",
"args": ["yuppie-mcp-lark"],
"env": {
"LARK_APP_ID": "cli_xxx",
"LARK_APP_SECRET": "xxx"
}
}
}
}
Cursor
在 ~/.cursor/mcp.json 中添加同上配置。
Cherry Studio / Claude Desktop / OpenCode
参照上方 env 字段,按各自 MCP 配置格式填入即可。
环境变量
| 变量 | 必填 | 默认值 | 说明 |
|---|---|---|---|
LARK_APP_ID |
是 | - | 飞书应用 App ID |
LARK_APP_SECRET |
是 | - | 飞书应用 App Secret |
LARK_BASE_URL |
否 | https://open.feishu.cn |
国际版设为 https://open.larksuite.com |
可用工具
| 工具 | 说明 |
|---|---|
lark_send_message |
发送消息 |
lark_search_records |
搜索多维表格记录 |
lark_get_spreadsheet_metainfo |
获取电子表格元信息 |
lark_add_sheet |
添加工作表 |
lark_delete_sheet |
删除工作表 |
lark_copy_sheet |
复制工作表 |
lark_read_range |
读取范围数据 |
lark_write_range |
写入范围数据 |
lark_append_data |
追加数据 |
lark_delete_dimension |
删除行列 |
测试与调试
uv pip install -e ".[dev]"
uv run pytest -v
使用 MCP Inspector 调试(需先在 .env 配置 LARK_APP_ID / LARK_APP_SECRET):
npx @modelcontextprotocol/inspector uv run yuppie-mcp-lark
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yuppie_mcp_lark-0.1.0.tar.gz
(11.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yuppie_mcp_lark-0.1.0.tar.gz.
File metadata
- Download URL: yuppie_mcp_lark-0.1.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad739b003b7d120050cde165450b4ed932ba8ca4dd8a49a887d989fe5fbaa47e
|
|
| MD5 |
17da81f9be3f08ca4c6bbfafa5ae7451
|
|
| BLAKE2b-256 |
3dbd56de80c9ac5c0455aead696bfdc119a5a9143bdf603f117e7147be18ba7a
|
File details
Details for the file yuppie_mcp_lark-0.1.0-py3-none-any.whl.
File metadata
- Download URL: yuppie_mcp_lark-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cdf7d9d154ff685d13d465f94b64ae444fd15c5901913fd74204c38c31f2f1c
|
|
| MD5 |
ae26baa272ec82252fff064744a2394b
|
|
| BLAKE2b-256 |
9ff7977c9824a7dfca07a03fa22ed496dba9d4c07460a764777aac7095f9ab0f
|