Feishu MCP Server
集成飞书(Lark)的 MCP 服务器,支持消息、Drive 与多维表(Bitable)操作。
新增 Bitable 字段相关工具
已注册以下 MCP 工具:
-
bitable_query_fields(app_token, table_id)- 获取指定表的所有字段信息,返回 Markdown。
- 示例:
{ "tool": "bitable_query_fields", "args": {"app_token": "bitable_app_token_xxx", "table_id": "tbl_xxx"} }
-
bitable_upsert_fields(app_token, table_id, fields)- 批量新增或更新字段(Upsert):
- 若对象包含
field_id则更新; - 若无
field_id但提供field_name且同名字段存在,则更新; - 其他情况为新增。
- 若对象包含
- 字段对象示例:
[ {"field_name": "状态", "type": 3, "property": {"options": [{"name": "Open"}, {"name": "Closed"}]}}, {"field_id": "fld_123", "field_name": "负责人", "type": 11, "description": "任务负责人"} ]
- 调用示例:
{ "tool": "bitable_upsert_fields", "args": {"app_token": "bitable_app_token_xxx", "table_id": "tbl_xxx", "fields": [/* 如上 */]} }
- 批量新增或更新字段(Upsert):
-
bitable_delete_fields(app_token, table_id, field_ids=None)- 批量删除字段:仅支持通过
field_ids指定。 - 调用示例:
{ "tool": "bitable_delete_fields", "args": {"app_token": "bitable_app_token_xxx", "table_id": "tbl_xxx", "field_ids": ["fld_1", "fld_2"]} }
- 批量删除字段:仅支持通过
新增 Bitable 表创建工具(Create-only)
bitable_create_table(app_token, table_name, fields=None)- 仅创建数据表:
- 若同名表已存在:返回存在提示,不进行任何字段更新。
- 若不存在同名表:创建新表。
fields参数将被忽略,请使用bitable_upsert_fields管理字段。
- 调用示例:
{ "tool": "bitable_create_table", "args": {"app_token": "bitable_app_token_xxx", "table_name": "任务列表"} }
- 仅创建数据表:
环境变量
在运行前确保配置:
FEISHU_APP_IDFEISHU_APP_SECRET
注意事项
type需使用飞书多维表字段类型编码(如:3=单选、4=多选、11=人员等)。- 批量新增/更新会拉取已有字段以做名称到 ID 匹配,字段很多时请求耗时会增长。
Metadata
Release files for mcp-feishu-bot 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_feishu_bot-0.2.6.tar.gz | 37.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_feishu_bot-0.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 78.1 kB
Release files / mcp_feishu_bot-0.2.6.tar.gz
| Download URL | mcp_feishu_bot-0.2.6.tar.gz |
|---|---|
| Size | 37.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8c216b3453fdaed71923d7c1a067ff42597c12351798daed081ac5b7e192ce5
|
|
BLAKE2b-256 checksum How to use checksums |
6f4d108ee844e07a56f850b3144349912d36b0a2ebcac72320361720349749d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / mcp_feishu_bot-0.2.6-py3-none-any.whl
| Download URL | mcp_feishu_bot-0.2.6-py3-none-any.whl |
|---|---|
| Size | 40.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d4c4d87f98e87ce3aee0292a3db3a3eed2ff6a03a0ce983c8fd5f284fd75e64
|
|
BLAKE2b-256 checksum How to use checksums |
370162baad50de92ce605a76375cc9c3076e79407d6c1d7330e077d21d585fb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for mcp-feishu-bot 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.