Trello

io.github.scaratec由 GitHub 账号 scaratec 发布v0.12.0更新于 Oct 24, 2026

MCP server for Trello — manage boards, lists, cards, attachments and more via Claude or Gemini

已验证STDIO仅桌面效率与工作流文件与存储

概览

AI 生成的概览

让助手通过 Trello API 读取和管理看板、列表、卡片、检查清单、评论、标签、附件与 Webhook。

可以做什么
这是一个本地 stdio MCP 服务器,提供 48 个与 Trello API 一一对应的工具,另有一个组合工具 get_board_overview。覆盖看板、列表、卡片、标签、检查清单、评论、成员、附件和 Webhook,包含创建、更新、归档和删除操作。还提供两个用于看板和卡片上下文的资源模板,以及 summarize_board、create_sprint、daily_standup 三个工作流提示。
适用场景
适合让助手直接处理 Trello 内容:查看或总结看板、起草和更新卡片、管理检查清单与评论,或在聊天客户端中执行冲刺和站会工作流。
运行要求
需要 Python 3.10+,并通过 pipx 或 pip 本地安装。需要 Trello API Key,可通过浏览器交互授权把凭据保存到本地凭据文件,或改用 TRELLO_API_KEY 与 TRELLO_TOKEN 环境变量作为回退。API Key 的允许来源需包含本地回调地址。需要访问 Trello API 的网络连接。
安装前请注意
服务器持有 Trello 凭据:TRELLO_API_KEY 和 TRELLO_TOKEN,或本地保存的凭据文件;并且可以创建、更新、归档和删除看板、卡片、列表、评论、标签、附件与 Webhook。删除和归档具有破坏性,让助手操作前应确认意图。附件上传和下载会在本机与 Trello 之间传输文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Trello,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

trellio-mcp — MCP Server for Trello

[License: GPL v3] [Python 3.10+] [MCP]

An MCP server that gives Claude Desktop, Claude Code, and Gemini CLI full access to the Trello API. Built on the trellio async client library and the official Python MCP SDK. Developed following the BDD Guidelines v1.8.0.

Features

  • 48 MCP tools — 1:1 mapping to trellio methods, plus one composite get_board_overview tool
  • 2 resource templates — trello://board/{id} and trello://card/{id} for rich context loading
  • 3 prompts — summarize_board, create_sprint, daily_standup as workflow shortcuts
  • Built-in auth flow — python -m trello_mcp auth opens the browser, user clicks "Allow", token stored securely
  • Structured error handling — Trello API errors are translated into clear, actionable MCP error messages
  • stdio transport — runs as a local subprocess, no network surface

Tools

CategoryToolsCount
Discoverylist_boards, search2
Boardsget_board_overview, create_board, get_board, update_board, delete_board5
Listslist_lists, create_list, update_list, archive_list4
Cardslist_cards, create_card, get_card, update_card, archive_card, unarchive_card, delete_card, add_label_to_card, remove_label_from_card9
Labelslist_board_labels, create_label, update_label, delete_label4
Checklistslist_card_checklists, create_checklist, delete_checklist, create_check_item, update_check_item, delete_check_item6
Commentslist_comments, add_comment, update_comment, delete_comment4
Membersget_me, list_board_members, get_member3
Attachmentslist_attachments, create_attachment, get_attachment, upload_attachment, download_attachment, delete_attachment6
Webhookslist_webhooks, create_webhook, get_webhook, update_webhook, delete_webhook5

Card tools support pos (top/bottom), idLabels (comma-separated), due (ISO 8601), and dueComplete (true/false) on create and update.

Prerequisites

  • Python 3.10+
  • A Trello API Key (add http://localhost:8095 to Allowed Origins)

Installation

Using pipx (recommended)

To install globally so the trellio-mcp command is available in your PATH:

bash
pipx install trellio-mcp

Alternatively, you can run it on-the-fly without installing:

bash
pipx run trellio-mcp

(Note: If you use pipx run, your MCP client configuration must also use pipx as the command and run trellio-mcp as arguments.)

Using pip

bash
pip install trellio-mcp

From source

bash
git clone https://github.com/scaratec/trellio-mcp.gitcd trellio-mcppython3 -m venv .venv.venv/bin/pip install -e ".[dev]"

Authentication

Interactive (recommended)

Run the auth command on each machine to connect your Trello account:

If you installed globally (pipx install or pip install):

bash
TRELLO_API_KEY=your_api_key trellio-mcp auth

If using on-the-fly execution (pipx run):

bash
TRELLO_API_KEY=your_api_key pipx run trellio-mcp auth

This opens a browser where you authorize the app. The token is captured automatically and stored in ~/.config/trellio-mcp/credentials.json (permissions 0600).

After auth, no environment variables are needed — the server reads stored credentials on startup.

Environment Variables (fallback)

If no stored credentials are found, the server falls back to environment variables:

bash
export TRELLO_API_KEY=your_api_keyexport TRELLO_TOKEN=your_token

MCP Client Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "trello": {      "command": "pipx",      "args": ["run", "trellio-mcp"]    }  }}

If using env var auth instead of stored credentials, add:

json
"env": {  "TRELLO_API_KEY": "your_api_key",  "TRELLO_TOKEN": "your_token"}

Claude Code

Add to ~/.claude/settings.json or project .claude/settings.json:

json
{  "mcpServers": {    "trello": {      "command": "pipx",      "args": ["run", "trellio-mcp"]    }  }}

Gemini CLI

Add to ~/.gemini/settings.json:

json
{  "mcpServers": {    "trello": {      "command": "pipx",      "args": ["run", "trellio-mcp"]    }  }}

Architecture

MCP Client (Claude / Gemini)    │ stdio (JSON-RPC)    ▼trellio-mcp (FastMCP)    │ async/await    ▼trellio (httpx)    │ HTTPS    ▼Trello API

Key decisions (documented in docs/adr/):

ADRDecision
001Python MCP SDK for language alignment with trellio
002stdio transport — no network attack surface
003Stored credentials with env var fallback
0041:1 tool mapping — one tool per trellio method
005trellio as PyPI dependency (>=1.4.0)
006Tools + Resources + Prompts as MCP capabilities
007isError=true + structured error content

Accepted weaknesses are recorded separately in docs/limitations/. A limitation there has already been weighed against the clean solution and declined — check the register before proposing a fix for a known-imperfect behaviour.

Testing

The project uses BDD with behave, following the BDD Guidelines v1.8.0.

bash
PYTHONPATH=src .venv/bin/python -m behave
18 features passed, 0 failed, 0 skipped182 scenarios passed, 0 failed, 0 skipped1103 steps passed, 0 failed, 0 skipped

dependency_compatibility.feature needs network access: it builds a wheel, installs it into throwaway environments at both ends of the declared mcp range, and drives the resulting server over stdio. It is the only feature that sees a broken dependency declaration — the others import the tool functions against the local .venv. It carries no opt-in tag on purpose: a dependency guard that has to be asked for is not a guard. To run the suite offline, exclude it explicitly:

bash
PYTHONPATH=src .venv/bin/python -m behave \  --exclude dependency_compatibility

Test architecture:

  • AsyncMock(spec=TrellioClient) — mock at the client boundary, not HTTP
  • Persistence validation via mock call records (§4.3)
  • Anti-hardcoding via Scenario Outlines with >= 2 variants (§2.3)
  • Layer-by-layer failure path enumeration (§4.5)
  • Independent spec audit per §13

See Case Study for a detailed account of the BDD-driven development process.

Project Structure

trellio-mcp/├── src/trello_mcp/│   ├── __init__.py        # Tool registration│   ├── __main__.py        # Entry point (server + auth)│   ├── server.py          # FastMCP instance + client mgmt│   ├── auth.py            # OAuth flow + credential storage│   ├── errors.py          # Error translation (ADR 007)│   ├── tools/             # 10 modules, 48 tools│   ├── resources.py       # 2 resource templates│   └── prompts.py         # 3 prompts├── features/              # 18 BDD feature files│   └── steps/             # Step definitions├── docs/│   ├── adr/               # 7 Architecture Decision Records│   ├── limitations/       # Limitation Records (accepted weaknesses)│   ├── tool-design.md     # Scenario-driven tool analysis│   └── case-study-bdd-mcp-server.md└── pyproject.toml

Publishing

PyPI

bash
uv buildtwine upload dist/trellio_mcp-<version>*

Smithery

Namespace is gupta. Update the release after a new PyPI version:

bash
npx @smithery/cli mcp publish "https://github.com/scaratec/trellio-mcp" -n gupta/trellio-mcp

Also update the pinned version in smithery.yaml commandFunction.

The resulting listing stays empty. Smithery populates an external entry by scanning the server over HTTP; this server is stdio-only (ADR 002), so the scan fails and the entry carries no connection or tool list — even though the publish command reports success. See LIM 0001. Install via pipx or uvx instead.

MCP registry

server.json describes the server for the official MCP registry by static declaration rather than introspection. Keep its two version fields in step with pyproject.toml.

License

This project is licensed under the GNU General Public License v3.0 — see the LICENSE file for details.

来源:README.md,提交 b9f2902

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.12.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。