Atlassian Trello MCP Server
Trello MCP 服务器
🔀 活跃分支。 这是 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 凭据
复制您的 API Key
点击“Generate a Token”以获取读/写访问权限
2. 安装
最简单的方法是使用 npx —— 无需克隆,无需构建,直接运行:
npx atlassian-trello-mcp或者从源码安装:
git clone https://github.com/agrath/Trello-Desktop-MCP.git
cd Trello-Desktop-MCP
npm install
npm run build3. 配置您的 MCP 客户端
编辑您的配置文件:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.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.jsRelated MCP server: fastmcp-trello
凭据
凭据可以通过两种方式提供:
环境变量(推荐):设置
TRELLO_API_KEY和TRELLO_TOKEN按请求提供:将
apiKey和token作为工具参数传递(会覆盖环境变量)
可用工具 (46)
看板与列表
工具 | 描述 |
| 列出所有可访问的看板 |
| 获取带有用户配置信息的看板 |
| 看板元数据、列表以及可选的卡片 |
| 获取看板上的所有列表 |
| 按名称过滤列表(不区分大小写的子字符串匹配) |
| 在看板上创建新列表 |
| 获取看板上的所有成员 |
| 获取看板上的所有标签 |
| 获取看板上的所有卡片(紧凑或完整模式) |
| 获取自定义字段定义 |
卡片
工具 | 描述 |
| 创建带有名称、描述、截止日期、标签、成员的卡片 |
| 获取卡片详情 |
| 更新卡片属性 |
| 将卡片移动到不同的列表 |
| 归档或取消归档卡片 |
| 获取列表中的卡片(紧凑或完整模式) |
评论与活动
工具 | 描述 |
| 向卡片添加评论 |
| 获取卡片活动历史和评论 |
标签
工具 | 描述 |
| 在看板上创建标签 |
| 更新标签名称或颜色 |
| 删除标签 |
| 为卡片分配标签 |
| 从卡片中移除标签 |
卡片成员
工具 | 描述 |
| 获取成员个人资料详情 |
| 为卡片分配成员 |
| 从卡片中移除成员 |
附件
工具 | 描述 |
| 列出卡片上的所有附件 |
| 获取特定附件 |
| 附加 URL 或上传本地文件 |
| 删除附件 |
清单
工具 | 描述 |
| 在卡片上创建清单 |
| 获取带有项目的清单 |
| 更新清单名称或位置 |
| 删除清单 |
| 获取特定的清单字段 |
| 更新特定的清单字段 |
| 获取清单所属的看板 |
| 获取清单所属的卡片 |
| 获取卡片上的所有清单 |
检查项
工具 | 描述 |
| 向清单添加项目 |
| 获取清单上的所有项目 |
| 获取特定检查项 |
| 更新项目(名称、状态、截止日期、负责人) |
| 删除检查项 |
搜索
工具 | 描述 |
| 跨看板、卡片、成员、组织进行搜索 |
配置
只读模式
设置 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,而不是维护一个单独的分支 —— 让每个人都能从一个维护良好的项目中受益会更好。
如何贡献:
Fork 此仓库
创建功能分支
为新功能添加测试
运行
npm test和npm run build提交包含清晰描述(内容和原因)的 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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn 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.176ISC
- AlicenseAqualityCmaintenanceA Trello MCP server that enables AI assistants to manage boards, cards, and lists via the Model Context Protocol.252MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that connects Trello to Claude Code. Manage your boards, lists, cards, checklists, and more — all through natural language.351MIT
- AlicenseNot gradedqualityDmaintenanceA 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.1761ISC
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/agrath/Trello-Desktop-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server