Skip to main content
Glama
Atlassian Trello MCP Server

Atlassian Trello MCP Server

by agrath

Trello MCP 服务器

npm version license: MIT

🔀 活跃分支。 这是 kocakli/Trello-Desktop-MCP 的一个维护版本,整合了来自整个分支生态系统(kevinhillinger、zonca、dbz-max、maks244、jantman、ThatIanMcShane、josh-argyle)的贡献。欢迎提交 PR —— 请参阅 Credits 查看每位贡献者带来的内容。已作为 atlassian-trello-mcp 发布在 npm 上。

一个适用于 Trello 的模型上下文协议 (MCP) 服务器,可与任何兼容 MCP 的客户端(如 Claude Desktop、Claude Code、Gemini CLI 等)配合使用。

提供 46 种工具,涵盖看板、卡片、列表、标签、清单、附件、成员、自定义字段和搜索功能。

快速入门

1. 获取 Trello API 凭据

2. 安装

最简单的方法是使用 npx —— 无需克隆,无需构建,直接运行:

npx atlassian-trello-mcp

或者从源码安装:

git clone https://github.com/agrath/Trello-Desktop-MCP.git
cd Trello-Desktop-MCP
npm install
npm run build

3. 配置您的 MCP 客户端

编辑您的配置文件:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "trello": {
      "command": "npx",
      "args": ["-y", "atlassian-trello-mcp"],
      "env": {
        "TRELLO_API_KEY": "your-api-key",
        "TRELLO_TOKEN": "your-token"
      }
    }
  }
}
claude mcp add trello -- npx -y atlassian-trello-mcp

设置环境变量 TRELLO_API_KEY 和 TRELLO_TOKEN,或者在每个请求中传递凭据。

编辑 ~/.gemini/settings.json:

{
  "mcpServers": {
    "trello": {
      "command": "npx",
      "args": ["-y", "atlassian-trello-mcp"],
      "env": {
        "TRELLO_API_KEY": "your-api-key",
        "TRELLO_TOKEN": "your-token"
      }
    }
  }
}

该服务器使用 stdio 传输。在设置环境变量的情况下运行:

TRELLO_API_KEY=your-key TRELLO_TOKEN=your-token npx atlassian-trello-mcp
# or, from a source clone:
TRELLO_API_KEY=your-key TRELLO_TOKEN=your-token node dist/index.js

Related MCP server: Trello MCP Server

凭据

凭据可以通过两种方式提供:

  1. 环境变量(推荐):设置 TRELLO_API_KEY 和 TRELLO_TOKEN

  2. 按请求提供:将 apiKey 和 token 作为工具参数传递(会覆盖环境变量)

可用工具 (46)

看板与列表

工具

描述

list_boards

列出所有可访问的看板

trello_get_user_boards

获取带有用户配置信息的看板

get_board_details

看板元数据、列表以及可选的卡片

get_lists

获取看板上的所有列表

trello_filter_lists

按名称过滤列表(不区分大小写的子字符串匹配)

trello_create_list

在看板上创建新列表

trello_get_board_members

获取看板上的所有成员

trello_get_board_labels

获取看板上的所有标签

trello_get_board_cards

获取看板上的所有卡片(紧凑或完整模式)

trello_get_board_custom_fields

获取自定义字段定义

卡片

工具

描述

create_card

创建带有名称、描述、截止日期、标签、成员的卡片

get_card

获取卡片详情

update_card

更新卡片属性

move_card

将卡片移动到不同的列表

trello_archive_card

归档或取消归档卡片

trello_get_list_cards

获取列表中的卡片(紧凑或完整模式)

评论与活动

工具

描述

trello_add_comment

向卡片添加评论

trello_get_card_actions

获取卡片活动历史和评论

标签

工具

描述

trello_create_label

在看板上创建标签

trello_update_label

更新标签名称或颜色

trello_delete_label

删除标签

trello_add_label_to_card

为卡片分配标签

trello_remove_label_from_card

从卡片中移除标签

卡片成员

工具

描述

trello_get_member

获取成员个人资料详情

trello_add_member_to_card

为卡片分配成员

trello_remove_member_from_card

从卡片中移除成员

附件

工具

描述

trello_get_card_attachments

列出卡片上的所有附件

trello_get_card_attachment

获取特定附件

trello_create_card_attachment

附加 URL 或上传本地文件

trello_delete_card_attachment

删除附件

清单

工具

描述

trello_create_checklist

在卡片上创建清单

trello_get_checklist

获取带有项目的清单

trello_update_checklist

更新清单名称或位置

trello_delete_checklist

删除清单

trello_get_checklist_field

获取特定的清单字段

trello_update_checklist_field

更新特定的清单字段

trello_get_board_for_checklist

获取清单所属的看板

trello_get_card_for_checklist

获取清单所属的卡片

trello_get_card_checklists

获取卡片上的所有清单

检查项

工具

描述

trello_create_check_item

向清单添加项目

trello_get_check_items

获取清单上的所有项目

trello_get_check_item

获取特定检查项

trello_update_check_item

更新项目(名称、状态、截止日期、负责人)

trello_delete_check_item

删除检查项

搜索

工具

描述

trello_search

跨看板、卡片、成员、组织进行搜索

配置

只读模式

设置 TRELLO_READ_ONLY=true 以禁用所有写操作。仅提供读取/查询工具。

{
  "env": {
    "TRELLO_API_KEY": "your-key",
    "TRELLO_TOKEN": "your-token",
    "TRELLO_READ_ONLY": "true"
  }
}

紧凑模式

多个工具支持 compact 参数(默认:true),该参数返回最小字段以减小响应大小。设置 compact: false 可获取包括描述、标签、成员和自定义字段在内的完整详情。

支持紧凑模式的工具:get_board_details、trello_get_board_cards、trello_get_list_cards、trello_search。

图片附件下载

当调用 get_card 且卡片包含图片附件时,服务器会下载它们并将其作为内联 MCP 图片内容块与 JSON 一起返回,让客户端直接查看卡片图片。下载仅限于 Trello 托管的 URL (*.trello.com, trello-attachments.s3.amazonaws.com),且每张图片上限为 5 MB,以降低 SSRF 和负载膨胀风险。

设置 TRELLO_DOWNLOAD_IMAGES=false(或 0/no/off)可完全禁用 —— 服务器将跳过额外的 getCardAttachments 调用并仅返回文本。默认开启。

日志记录

设置 TRELLO_MCP_LOGGING=true 以通过 Pino 启用基于文件的日志记录。日志写入 dist/logs/app.log。

开发

项目结构

src/
  index.ts              Entry point (credential injection, tool routing)
  server.ts             MCP server factory (read-only mode support)
  tools/
    boards.ts           Board tools (list, details, lists, filter)
    cards.ts            Card tools (CRUD, archive)
    lists.ts            List tools (cards, create list, comments)
    members.ts          Member tools (user boards, member details)
    search.ts           Search tool
    advanced.ts         Labels, attachments, members on cards, custom fields
    checklists.ts       Checklist and check item tools (13 tools)
  trello/
    client.ts           TrelloClient (API calls, retry, rate limiting)
  types/
    trello.ts           TypeScript interfaces
  utils/
    validation.ts       Zod schemas, extractCredentials, extractTrelloId
    logger.ts           Pino file logger
    health.ts           Health check utility
    appInsights.ts      Telemetry (no-op)
tests/
  validation.test.ts    Validation and credential extraction tests
  trelloClient.test.ts  API client tests (mocked fetch)
  tools.test.ts         Tool handler tests (mocked client)

构建与测试

npm install
npm run build
npm test
npm run type-check

关键模式

  • ID 解析:所有工具均通过 extractTrelloId() 接受 Trello URL、短 ID 或完整的 24 字符十六进制 ID

  • 凭据回退:extractCredentials() 首先检查参数,然后检查环境变量

  • 带退避的重试:TrelloClient 在遇到 500/网络错误时会重试(3 次尝试,指数退避)

  • 速率限制:从每个响应中提取并返回 x-rate-limit-* 标头

  • 验证:Zod 模式在 API 调用前验证所有输入

贡献

欢迎提交 Pull Request,我们会积极审查。此分支由一位资深的 Trello 用户维护,因此功能会经过实际场景的测试。

如果您已经 fork 了原始项目并构建了一些有用的功能,请在此处提交 PR,而不是维护一个单独的分支 —— 让每个人都能从一个维护良好的项目中受益会更好。

如何贡献:

  1. Fork 此仓库

  2. 创建功能分支

  3. 为新功能添加测试

  4. 运行 npm test 和 npm run build

  5. 提交包含清晰描述(内容和原因)的 Pull Request

致谢

本项目是 kocakli/Trello-Desktop-MCP 的一个分支。功能和想法整合自整个分支生态系统:

  • kocakli -- 原始项目,与 MCP 客户端无关的重命名,stderr 日志修复

  • kevinhillinger -- 凭据注入架构、标签删除、卡片成员管理、卡片归档、扩展的 TypeScript 类型、资源层

  • zonca -- 带有环境变量回退的集中式凭据处理、标签管理工具、全面的单元测试、替换 any 的改进 TypeScript 类型

  • dbz-max -- 自定义字段支持(看板自定义字段 + 卡片自定义字段项)

  • maks244 -- 只读模式概念、按名称过滤列表、从遥测日志中剥离凭据

  • jantman -- 修复了 MCP 客户端以字符串形式发送时被拒绝的数字 pos 值

  • ThatIanMcShane -- 将 @modelcontextprotocol/sdk 从 1.0.4 升级到 1.29.0,以修复当前 Claude Code 版本的连接超时问题

  • josh-argyle -- 在 get_card 响应中自动下载图片附件作为内联 MCP 图片内容块(在移植过程中添加了允许列表 + 大小限制)

许可证

MIT

Available Tools

45 tools
create_cardB

Create a new card in a Trello list. Use this to add tasks, ideas, or items to your workflow.

Inputs: name (required), idList (required), apiKey, token, +6 more.

get_board_detailsA

Get information about a Trello board. IMPORTANT: Start with includeDetails=false (default) to get board metadata and lists only. Then use get_card or trello_get_list_cards to drill into specific cards. Only set includeDetails=true for small boards when you need a full overview.

Inputs: boardId (required), apiKey, token, includeDetails, +2 more.

get_cardB

Get detailed information about a specific Trello card, including its content, status, members, and attachments.

Inputs: cardId (required), apiKey, token, includeDetails.

get_listsA

Get all lists in a specific Trello board. Use this to see the workflow columns (like "To Do", "In Progress", "Done") in a board.

Inputs: boardId (required), apiKey, token, filter.

list_boardsA

List all Trello boards accessible to the user. Use this to see all boards you have access to, or filter by status.

Inputs: apiKey, token, filter.

move_cardA

Move a card to a different list. Use this to change a card's workflow status (e.g., from "To Do" to "In Progress").

Inputs: cardId (required), idList (required), apiKey, token, +1 more.

trello_add_commentB

Add a comment to a Trello card. Use this to add notes, updates, or discussions to cards.

Inputs: cardId (required), text (required), apiKey, token.

trello_add_label_to_cardB

Assign an existing label to a Trello card.

Inputs: cardId (required), labelId (required), apiKey, token.

trello_add_member_to_cardC

Add a member to a Trello card.

Inputs: cardId (required), memberId (required), apiKey, token.

trello_archive_cardA

Archive or unarchive a Trello card. Set value to true to archive, false to unarchive.

Inputs: cardId (required), value (required), apiKey, token.

trello_create_card_attachmentA

Attach a URL or local file to a Trello card. Provide either a url (for link attachments) or filePath (for file uploads from the local filesystem).

Inputs: cardId (required), apiKey, token, url, +4 more.

trello_create_check_itemA

Add an item to a checklist. Supports due dates and member assignment.

Inputs: checklistId (required), name (required), apiKey, token, +4 more.

trello_create_checklistB

Create a checklist on a card. Optionally copy items from an existing checklist.

Inputs: cardId (required), name (required), apiKey, token, +2 more.

trello_create_labelB

Create a new label on a Trello board.

Inputs: boardId (required), name (required), color (required), apiKey, +1 more.

trello_create_listA

Create a new list in a Trello board. Use this to add workflow columns like "To Do", "In Progress", or "Done".

Inputs: name (required), idBoard (required), apiKey, token, +1 more.

trello_delete_card_attachmentB

Delete an attachment from a Trello card.

Inputs: cardId (required), attachmentId (required), apiKey, token.

trello_delete_check_itemB

Delete an item from a checklist.

Inputs: checklistId (required), checkItemId (required), apiKey, token.

trello_delete_checklistB

Delete a checklist from a card.

Inputs: checklistId (required), apiKey, token.

trello_delete_labelB

Delete a label from a Trello board.

Inputs: labelId (required), apiKey, token.

trello_filter_listsA

Filter lists on a board by name. Returns lists whose name contains the filter string (case-insensitive).

Inputs: boardId (required), filter (required), apiKey, token.

trello_get_board_cardsC

Get all cards from a Trello board with optional filtering and detailed information like attachments and members.

Inputs: boardId (required), apiKey, token, attachments, +5 more.

trello_get_board_custom_fieldsB

Get all custom field definitions for a Trello board. Returns field names, types, and options.

Inputs: boardId (required), apiKey, token.

trello_get_board_for_checklistA

Get the board that a checklist belongs to.

Inputs: checklistId (required), apiKey, token.

trello_get_board_labelsA

Get all labels available on a specific Trello board for categorizing cards.

Inputs: boardId (required), apiKey, token.

trello_get_board_membersB

Get all members who have access to a specific Trello board.

Inputs: boardId (required), apiKey, token.

trello_get_card_actionsA

Get activity history and comments for a specific Trello card. Useful for tracking changes and discussions.

Inputs: cardId (required), apiKey, token, filter, +1 more.

trello_get_card_attachmentA

Get details of a single attachment on a Trello card by its attachment ID.

Inputs: cardId (required), attachmentId (required), apiKey, token, +1 more.

trello_get_card_attachmentsB

Get all attachments (files, links) for a specific Trello card.

Inputs: cardId (required), apiKey, token, fields.

trello_get_card_checklistsB

Get all checklists and their items for a specific Trello card.

Inputs: cardId (required), apiKey, token, checkItems, +1 more.

trello_get_card_for_checklistC

Get the card that a checklist belongs to.

Inputs: checklistId (required), apiKey, token.

trello_get_check_itemA

Get a single check item from a checklist.

Inputs: checklistId (required), checkItemId (required), apiKey, token.

trello_get_check_itemsC

Get all items on a checklist. Supports filtering by state (all, complete, incomplete).

Inputs: checklistId (required), apiKey, token, filter.

trello_get_checklistB

Get a single checklist with its check items.

Inputs: checklistId (required), apiKey, token, fields.

trello_get_checklist_fieldB

Get a specific field (name or pos) from a checklist.

Inputs: checklistId (required), field (required), apiKey, token.

trello_get_list_cardsA

Get all cards in a specific Trello list. Use this to see all tasks/items in a workflow column.

Inputs: listId (required), apiKey, token, filter, +2 more.

trello_get_memberA

Get details about a specific Trello member/user, including their boards and profile information.

Inputs: memberId (required), apiKey, token, fields, +2 more.

trello_get_user_boardsB

Get all boards accessible to the current user. This is the starting point for exploring your Trello workspace.

Inputs: apiKey, token, filter.

trello_remove_label_from_cardB

Remove a label from a Trello card.

Inputs: cardId (required), labelId (required), apiKey, token.

trello_remove_member_from_cardB

Remove a member from a Trello card.

Inputs: cardId (required), memberId (required), apiKey, token.

trello_update_check_itemB

Update a check item on a card (name, state, position, due date, member). Use state to check/uncheck items.

Inputs: cardId (required), checkItemId (required), apiKey, token, +5 more.

trello_update_checklistC

Update a checklist name or position.

Inputs: checklistId (required), apiKey, token, name, +1 more.

trello_update_checklist_fieldB

Update a specific field (name or pos) on a checklist.

Inputs: checklistId (required), field (required), value (required), apiKey, +1 more.

trello_update_labelB

Update the name or color of an existing Trello label.

Inputs: labelId (required), apiKey, token, name, +1 more.

update_cardC

Update properties of an existing Trello card. Use this to change card details like name, description, due date, or status.

Inputs: cardId (required), apiKey, token, name, +7 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 45 tools

    Disambiguation3/5

    Many tools have distinct purposes, but there is clear overlap between list_boards and trello_get_user_boards (both list accessible boards), and between get_board_details and trello_get_board_cards (both retrieve board data). Multiple tools for similar operations (e.g., card tools) are well-described but still create ambiguity. Overall, some boundaries are unclear.

    Naming Consistency2/5

    Tool names are highly inconsistent. Some use a simple verb_noun pattern (e.g., create_card, get_board_details), while many others are prefixed with 'trello_' (e.g., trello_add_comment, trello_get_board_cards). This mixed convention, combined with varying verb styles, makes the naming unpredictable.

    Tool Count2/5

    45 tools is excessive for a Trello MCP server. While Trello has many features, this granularity (e.g., separate tools for get_checklist, get_checklist_field, get_check_item, get_check_items) is over-engineered. The tool count could be reduced by consolidating related actions, making the surface more manageable.

    Completeness4/5

    The server covers most core Trello operations: cards, lists, boards, checklists, labels, attachments, comments, members, and search. Missing board creation/deletion and some list management features (e.g., archiving lists), but these are minor gaps. The overall surface is comprehensive for typical workflows.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      C
      maintenance
      An MCP server that connects Claude to Trello, enabling comprehensive management of boards, lists, and cards through natural language conversation. It supports a wide range of actions including searching cards, adding comments, managing checklists, and tracking board activity.
      17
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that provides AI assistants with access to Trello's functionality. This server enables AI models to interact with Trello boards, lists, and cards programmatically.
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server for the Trello REST API. Exposes ~36 curated tools for boards, lists, cards, checklists, labels, members, and search.
      36
      9 npm
      MIT