使用说明
Trello MCP服务器
Trello REST API的MCP服务器。从任何兼容MCP的客户端管理板、列表、卡、标签、清单等。
工具
| 工具 | 说明 |
|---|---|
list_my_boards |
列出经过身份验证的用户的所有板 |
get_board |
获取单板的详细信息 |
get_board_lists |
将所有列表放在板上 |
create_list |
在板上创建新列表 |
get_list_cards |
获取列表中的所有卡片 |
get_board_cards |
把所有卡片都放在黑板上 |
get_card |
获取单张卡的详细信息 |
create_card |
在列表中创建新卡 |
update_card |
更新卡上的一个或多个字段 |
move_card |
将卡片移动到其他列表/板 |
archive_card |
将卡片存档(关闭) |
get_card_comments |
在卡片上获取所有评论 |
add_card_comment |
在卡片上添加评论 |
get_card_attachments |
获取卡片上的所有附件 |
add_card_attachment |
将文件作为附件上传到卡上 |
add_card_url_attachment |
将URL附加到卡 |
delete_card_attachment |
从卡片中删除附件 |
get_board_labels |
将所有标签放在板上 |
create_label |
在板上创建标签 |
get_card_checklists |
把所有清单都写在卡片上 |
get_checklist |
获取检查表及其项目 |
create_checklist |
在卡片上创建检查表 |
add_checklist_item |
将项目添加到检查表中 |
get_me |
获取经过身份验证的成员的个人资料 |
search_trello |
搜索卡片和/或棋盘 |
get_card_history |
获取卡片的动作历史记录(移动、编辑、评论等) |
先决条件
- 首选 trello.com/power-ups/admin 并创建新的电源
- 复制您的 API密钥
- 生成一个 代币 在同一页面上使用链接
安装
uvx trello-mcp
或者从PyPI安装:
pip install trello-mcp
用法
克劳德桌面/克劳德代码
添加到您的 .mcp.json:
{
"mcpServers": {
"trello": {
"command": "uvx",
"args": ["trello-mcp"],
"env": {
"TRELLO_API_KEY": "your-api-key",
"TRELLO_TOKEN": "your-token"
}
}
}
}
环境变量
| 变量 | 必填 | 描述 |
|---|---|---|
TRELLO_API_KEY |
是 | Trello Power-Up管理员提供的API密钥 |
TRELLO_TOKEN |
是 | 为API密钥生成的用户令牌 |
发展
git clone https://github.com/stucchi/trello-mcp.git
cd trello-mcp
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest
许可证
麻省理工学院