Skip to main content
Glama

MCPTrello

An MCP (Model Context Protocol) server exposing a small, curated set of Trello tools — built to let an agent read and lightly update a Trello board without hand-pasted context, and as a learning exercise in how tool descriptions shape agent behavior (see DESIGN_NOTES.md for the reasoning behind each one).

Tools

Tool

Purpose

list_boards

List accessible boards (id, name, url).

get_board_state

Full open state of a board: lists with nested open cards.

get_card

Read a single card by id, including its full description.

search_cards

Free-text search for cards, across one board or all of them.

create_card

Create a card in a list.

update_card

Update a card's name, description, due date, position, members, and/or labels.

move_card

Move a card to a different list.

add_checklist_item

Add an item to a card's checklist.

add_comment

Add a comment to a card.

get_card_comments

Read a card's comment thread, newest first.

Out of scope for this v1: full CRUD, remote/OAuth auth, rate limiting, MCP resources/prompts, a cc-init command, auto-creating checklists, editing or deleting existing comments, and caching board/list names between calls.

Related MCP server: trello-mcp-server

Setup

1. Get Trello credentials

  1. Go to https://trello.com/power-ups/admin and create (or select) a Power-Up to get an API key.

  2. From the same key page, generate a token by following the "Token" link — this authorizes the key to act as your Trello account.

2. Configure environment

cp .env.example .env

Fill in .env:

TRELLO_API_KEY=...
TRELLO_TOKEN=...
DEFAULT_BOARD_ID=...   # optional — id of the board to use when `board` is omitted

DEFAULT_BOARD_ID is optional. Without it, tools that need a board either require you to pass one explicitly or (for search_cards) search across every board you can access.

3. Install and build

Requires Node.js 18+.

npm install
npm run build

4. Register with Claude Code

claude mcp add trello -- node <absolute-path-to-repo>\dist\index.js

Verification

  • npm run build — TypeScript build; run after any source change.

  • npm run verify — launches the built server as a subprocess over stdio using the MCP SDK's own Client + StdioClientTransport, lists all tools, and calls each one (including at least one error/ambiguous case per tool) against your real Trello account. Requires a fully filled-in .env — it makes real API calls.

  • MCP Inspector (npx @modelcontextprotocol/inspector --cli node dist/index.js --method tools/list) is a secondary, best-effort check. Every published Inspector version requires Node ≥22.7.5; on Node 18 it will fail to start. If you want to run it, use a separate Node 22+ installation (e.g. via nvm) rather than upgrading this project's runtime requirement.

Available Tools

11 tools
add_checklist_itemAdd Trello checklist itemA

Add an item to a checklist on a Trello card. card must be a card id (from get_board_state or search_cards). If the card has exactly one checklist, checklist is not needed — the item is added there. If the card has multiple checklists, checklist (a name, matched exact-then-substring) is required to pick one; if the card has no checklists at all, this tool errors rather than creating one — creating checklists is out of scope.

Inputs: card (required), item (required), checklist.

add_commentAdd Trello card commentA

Add a comment to a Trello card. card must be a card id (from get_board_state, search_cards, or get_card) — card names aren't resolved here because they're not reliably unique. Use this, not update_card, to leave feedback, findings, or a progress note: a comment is timestamped, attributed to the account behind the token, and appends to the card's thread, whereas update_card replaces the whole description and destroys whatever the human wrote there. Reach for update_card only when the card's own requirements have changed. Comment text is plain text with Trello's markdown (no tables), and is capped at 16384 characters.

Inputs: card (required), text (required).

create_cardCreate Trello cardA

Create a new Trello card in a list. list accepts a list id or a list name; if you pass a name, board narrows which board to search for it in (falls back to the server's default board if configured, otherwise every accessible board — pass board explicitly if you already know it, to avoid an ambiguous match across boards with same-named lists). name is the card title (required). desc, due (ISO 8601), pos (position within the list), idMembers and idLabels are optional.

Inputs: list (required), name (required), due, pos, +4 more.

get_board_metaGet Trello board members and labelsA

List the members and labels of a Trello board. Returns each member's id, full name and username, and each label's id, name and color. Use this to discover the ids/names to pass to update_card or create_card when assigning members (idMembers) or setting labels (idLabels). The board parameter accepts a board id or name; if omitted, falls back to the server's default board.

Inputs: board.

get_board_stateGet Trello board stateA

Get the full open state of a Trello board: every open list with its open cards nested underneath (card id, name, description, due date, and url). Use this to see what's currently on a board before deciding where to create or move a card. The board parameter accepts either a board id (from list_boards) or a board name; if omitted, falls back to the server's configured default board — omit it only when you know a default is configured, otherwise call list_boards first.

Inputs: board.

get_cardGet Trello cardA

Get a single Trello card by id, including its full description. Returns the card's id, name, description, due date, url, position, member ids, label ids, and the ids of its list and board. Use this to read one card's requirements or notes without pulling the whole board — card must be a card id (from get_board_state or search_cards), not a name.

Inputs: card (required).

get_card_commentsGet Trello card commentsA

Read the comment thread on a Trello card, newest first. Returns {comments, count, truncated}, where each comment has an id, author username, author display name, timestamp, and text. card must be a card id (from get_board_state, search_cards, or get_card), not a name. Comments are invisible to every other tool — get_card and get_board_state return only the description — so call this before starting work on a card to pick up feedback left there, and before add_comment to see what has already been said. limit caps how many are returned (default 20, max 1000); when truncated is true, older comments exist that you have not seen — raise limit if the start of the thread matters.

Inputs: card (required), limit.

list_boardsList Trello boardsA

List all Trello boards accessible with the configured token. Returns each board's id, name, and url. Call this first to discover which boards exist and their ids — other tools accept either a board id or a board name, but passing the id returned here avoids a redundant name-lookup call.

Inputs: no named parameters.

move_cardMove Trello cardA

Move an existing Trello card to a different list. card must be a card id (from get_board_state or search_cards) — card names aren't resolved here because they're not reliably unique and a fuzzy search-based match could move the wrong card. list is the destination list, accepted as an id or a name; if you pass a name, board narrows which board to search for it in (same fallback behavior as create_card: server default board, else every accessible board).

Inputs: card (required), list (required), board.

search_cardsSearch Trello cardsA

Search for Trello cards by keyword across boards. Returns matching cards with id, name, description, due date, url, and — resolved from ids — the board name and list name each card lives in. query is a free-text search (Trello's search operators like list:"To Do" work too). board scopes the search to one board (accepts id or name) and overrides any configured default board; omit it to search the default board if one is configured, or every accessible board otherwise — which can be slow and noisy, so prefer passing board when you already know it.

Inputs: query (required), board.

update_cardUpdate Trello cardA

Update an existing Trello card's name, description, due date, position, members, and/or labels. card must be a card id (from get_board_state, search_cards, or get_card) — card names aren't resolved here because they're not reliably unique. At least one field is required; only the fields you pass are changed, the others are left untouched. Use this to update a card's own requirements, reorder it within its list (pos), assign members (idMembers), or set labels (idLabels). To leave feedback, findings, or a progress note, use add_comment instead — desc is a whole-field replace, so writing a note there means re-sending the human's original text and risking its loss.

pos accepts a number (e.g. 16384) or a string like "top", "bottom", or a number as a string. idMembers and idLabels accept ids or names (names are resolved against the card's board); pass an empty array to clear all members/labels. due is ISO 8601 (e.g. 2026-08-15).

Inputs: card (required), due, pos, desc, +3 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool has a distinct resource+action target, and the descriptions actively route the agent between the easy-to-confuse pairs (get_board_state vs. search_cards vs. get_card; update_card vs. add_comment; list_boards vs. get_board_meta). The id-vs-name and default-board rules are stated consistently across tools, so there is little risk of misselection.

    Naming Consistency5/5

    All names are snake_case, verb-first, and follow a predictable get_/list_/search_/create_/update_/move_/add_ pattern. The board_* and card_* family naming makes the resource grouping obvious at a glance.

    Tool Count5/5

    Eleven tools is a well-scoped set for a Trello board/card workflow, and each one covers a distinct capability rather than a permutation of another. Nothing feels padded or redundant.

    Completeness3/5

    Core read/create/update/comment flows are covered, but the lifecycle has dead ends: there is no delete or archive for cards, no way to create a checklist or check items off (add_checklist_item is one-way and no tool reads checklist state), and no list/board creation. An agent asked to clean up or finish checklist work would have to stop.

    Related MCP Connectors

    Related MCP Servers