Skip to main content
Glama

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

Related MCP server: Trello MCP Server

Tools

Category

Tools

Count

Discovery

list_boards, search

2

Boards

get_board_overview, create_board, get_board, update_board, delete_board

5

Lists

list_lists, create_list, update_list, archive_list

4

Cards

list_cards, create_card, get_card, update_card, archive_card, unarchive_card, delete_card, add_label_to_card, remove_label_from_card

9

Labels

list_board_labels, create_label, update_label, delete_label

4

Checklists

list_card_checklists, create_checklist, delete_checklist, create_check_item, update_check_item, delete_check_item

6

Comments

list_comments, add_comment, update_comment, delete_comment

4

Members

get_me, list_board_members, get_member

3

Attachments

list_attachments, create_attachment, get_attachment, upload_attachment, download_attachment, delete_attachment

6

Webhooks

list_webhooks, create_webhook, get_webhook, update_webhook, delete_webhook

5

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

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

pipx install trellio-mcp

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

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

pip install trellio-mcp

From source

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

Authentication

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

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

TRELLO_API_KEY=your_api_key trellio-mcp auth

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

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:

export TRELLO_API_KEY=your_api_key
export 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):

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

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

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

Claude Code

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

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

Gemini CLI

Add to ~/.gemini/settings.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/):

ADR

Decision

001

Python MCP SDK for language alignment with trellio

002

stdio transport — no network attack surface

003

Stored credentials with env var fallback

004

1:1 tool mapping — one tool per trellio method

005

trellio as PyPI dependency (>=1.4.0)

006

Tools + Resources + Prompts as MCP capabilities

007

isError=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.

PYTHONPATH=src .venv/bin/python -m behave
18 features passed, 0 failed, 0 skipped
182 scenarios passed, 0 failed, 0 skipped
1103 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:

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

uv build
twine upload dist/trellio_mcp-<version>*

Smithery

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

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.

Available Tools

48 tools
add_commentB

Add a comment to a Trello card. Returns the created comment with id and text.

Inputs: text (required), card_id (required). Returns: result

add_label_to_cardC

Add an existing label to a Trello card.

Inputs: card_id (required), label_id (required). Returns: result

archive_cardA

Archive a Trello card (set closed=true). The card is hidden from the board but preserved with its history, attachments and comments. Reversible via unarchive_card. For permanent removal use delete_card.

Inputs: card_id (required). Returns: result

archive_listB

Archive a Trello list (set closed=true). This hides the list from the board.

Inputs: list_id (required). Returns: result

create_attachmentB

Create an attachment on a Trello card by URL. Returns the created attachment with id, name, and url.

Inputs: url (required), card_id (required), name. Returns: result

create_boardB

Create a new Trello board. Returns the created board with id and name.

Inputs: name (required), description. Returns: result

create_cardA

Create a new card in a Trello list. Optionally set position (top/bottom), labels (comma-separated label IDs), due date (ISO 8601), and dueComplete (true/false). Returns the created card with id and name.

Inputs: name (required), list_id (required), due, pos, +3 more. Returns: result

create_check_itemA

Create a check item in a Trello checklist. Optionally set position (top/bottom/numeric). Returns the created item with id, name, and state.

Inputs: name (required), checklist_id (required), pos. Returns: result

create_checklistB

Create a checklist on a Trello card. Returns the created checklist with id and name.

Inputs: name (required), card_id (required). Returns: result

create_labelC

Create a label on a Trello board. Returns the created label with id, name, and color.

Inputs: name (required), color (required), board_id (required). Returns: result

create_listB

Create a new list on a Trello board. Returns the created list with id and name.

Inputs: name (required), board_id (required). Returns: result

create_webhookB

Create a Trello webhook. Returns the created webhook with id and callbackURL.

Inputs: id_model (required), callback_url (required), description. Returns: result

delete_attachmentC

Delete an attachment from a Trello card.

Inputs: card_id (required), attachment_id (required). Returns: result

delete_boardA

Delete a Trello board permanently. This action cannot be undone.

Inputs: board_id (required). Returns: result

delete_cardA

Delete a Trello card permanently. This action cannot be undone. To hide a card while preserving it, use archive_card instead.

Inputs: card_id (required). Returns: result

delete_check_itemB

Delete a check item from a checklist.

Inputs: checklist_id (required), check_item_id (required). Returns: result

delete_checklistB

Delete a Trello checklist permanently.

Inputs: checklist_id (required). Returns: result

delete_commentC

Delete a Trello comment permanently.

Inputs: comment_id (required). Returns: result

delete_labelB

Delete a Trello label permanently.

Inputs: label_id (required). Returns: result

delete_webhookC

Delete a Trello webhook permanently.

Inputs: webhook_id (required). Returns: result

download_attachmentC

Download a Trello card attachment to a local file. Returns the attachment metadata and the local file path.

Inputs: card_id (required), target_path (required), attachment_id (required). Returns: result

get_attachmentC

Get metadata for a single attachment on a Trello card. Returns the attachment with id, name, and url.

Inputs: card_id (required), attachment_id (required). Returns: result

get_boardA

Get a Trello board by ID. Returns board details including id, name, description, and closed status.

Inputs: board_id (required). Returns: result

get_board_overviewB

Get a complete board overview with all lists and their cards in a single call. Returns board details, lists, and nested cards.

Inputs: board_id (required). Returns: result

get_cardA

Get a Trello card by ID. Returns card details including id, name, desc, idList, and idBoard.

Inputs: card_id (required). Returns: result

get_meA

Get the authenticated Trello user. Returns id, username, and fullName.

Inputs: no named parameters. Returns: result

get_memberA

Get a Trello member by ID. Returns id, username, and fullName.

Inputs: member_id (required). Returns: result

get_webhookB

Get a Trello webhook by ID. Returns webhook details including id, description, callbackURL, and active.

Inputs: webhook_id (required). Returns: result

list_attachmentsA

List all attachments on a Trello card. Returns a JSON array with id, name, and url.

Inputs: card_id (required). Returns: result

list_board_labelsB

List all labels on a Trello board. Returns a JSON array with id, name, and color for each label.

Inputs: board_id (required). Returns: result

list_board_membersA

List all members of a Trello board. Returns a JSON array with id, username, and fullName.

Inputs: board_id (required). Returns: result

list_boardsA

List all open Trello boards. Returns a JSON array of boards with id, name, and closed status.

Inputs: no named parameters. Returns: result

list_card_checklistsA

List all checklists on a Trello card. Returns a JSON array with id and name for each checklist.

Inputs: card_id (required). Returns: result

list_cardsB

List all cards in a Trello list. Returns a JSON array with id, name, and desc for each card.

Inputs: list_id (required). Returns: result

list_commentsB

List all comments on a Trello card. Returns a JSON array with id and text for each comment.

Inputs: card_id (required). Returns: result

list_listsA

List all lists on a Trello board. Returns a JSON array with id and name for each list.

Inputs: board_id (required). Returns: result

list_webhooksA

List all Trello webhooks. Returns a JSON array with id, description, callbackURL, and active status.

Inputs: no named parameters. Returns: result

remove_label_from_cardC

Remove a label from a Trello card.

Inputs: card_id (required), label_id (required). Returns: result

unarchive_cardA

Unarchive a Trello card (set closed=false). Restores the card to its list.

Inputs: card_id (required). Returns: result

update_boardA

Update a Trello board. Provide board_id and any fields to update (name, description). Returns the updated board.

Inputs: board_id (required), name, description. Returns: result

update_cardA

Update a Trello card. Provide card_id and fields to update: name, desc, idList, pos (top/bottom/number), idLabels (comma-separated label IDs), due (ISO 8601), dueComplete (true/false). Returns the updated card.

Inputs: card_id (required), due, pos, desc, +4 more. Returns: result

update_check_itemA

Update a check item. Provide card_id, check_item_id, and at least one of: state (complete/incomplete), name, pos (top/bottom/numeric).

Inputs: card_id (required), check_item_id (required), pos, name, +1 more. Returns: result

update_commentB

Update a Trello comment. Returns the updated comment with id and text.

Inputs: text (required), comment_id (required). Returns: result

update_labelA

Update a Trello label. Provide label_id and fields to update (name, color). Returns the updated label.

Inputs: label_id (required), name, color. Returns: result

update_listA

Update a Trello list. Provide list_id and fields to update: name, pos (top/bottom/number). Returns the updated list.

Inputs: list_id (required), pos, name. Returns: result

update_webhookB

Update a Trello webhook. Provide webhook_id and fields to update (description, active).

Inputs: webhook_id (required), active, description. Returns: result

upload_attachmentC

Upload a local file as an attachment to a Trello card. Returns the created attachment with id, name, and url.

Inputs: card_id (required), file_path (required), name. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 48 tools

    Disambiguation4/5

    Most tools target distinct resources and actions (boards, lists, cards, labels, checklists, comments, attachments, webhooks). Minor overlap exists between create_attachment and upload_attachment (both create attachments, one by URL and one by local file), and between get_board and get_board_overview (overview returns more but both fetch board data).

    Naming Consistency5/5

    Tool names consistently follow a verb_noun pattern (list_, create_, get_, update_, delete_, archive_, unarchive_, add_, remove_, upload_, download_). The pattern is uniform across all resource types, making the API predictable.

    Tool Count3/5

    48 tools is on the heavy side for a Trello MCP server, but the breadth reflects the full Trello API surface (boards, lists, cards, labels, checklists, comments, members, attachments, webhooks, search). It feels comprehensive rather than bloated, though it exceeds the typical well-scoped range.

    Completeness5/5

    The tool surface covers the full lifecycle for boards, lists, cards, labels, checklists, comments, attachments, and webhooks, including archive/unarchive and upload/download. Missing operations like moving cards between lists are handled via update_card's idList field, and search covers cross-resource discovery.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers