Trello MCP Server
Enables AI agents to interact with Trello boards through MCP tools, including listing tasks, moving cards, commenting, labeling, and managing attachments.
README
Trello CLI
An LLM-to-Trello interface — a CLI, SDK, and MCP server that let AI agents (and humans) interact with Trello boards programmatically. Board-agnostic and reusable across projects: point it at any board's config and it works.
Unofficial project. This is an independent, community-built tool that uses Trello's public API. It is not affiliated with, endorsed by, or sponsored by Trello or Atlassian. "Trello" is a trademark of Atlassian Pty Ltd.

Example output shown above uses sample data, not a real board.
Table of Contents
- Features
- Quick Start
- Getting Trello API Credentials
- Configuration
- CLI Usage
- MCP Server (wiring into Claude Code, Cursor, etc.)
- Generated & Sensitive Files
- SDK Usage
- For Contributors
- License
Features
This isn't a thin wrapper around Trello's REST API — it's a layer built specifically for driving boards from scripts and AI agents:
- Board-agnostic, multi-board by design. Nothing is hardcoded to one board. Each project (or each AI agent) points at its own config file — switch boards with a flag, an env var, or just a different working directory. Run it against as many boards as you have, side by side, with zero code changes.
- Workflow-stage abstraction. Map raw Trello list IDs to semantic stages (
todo,inProgress,done, ...) once in config, then move cards by stage name everywhere — in the CLI, the SDK, and the MCP tools — instead of every caller needing to know or re-resolve list IDs. - First-class MCP server, not a bolted-on wrapper: every operation (list, move, comment, label, create, attach) is exposed as an agent tool over JSON-RPC 2.0 stdio, with no extra MCP SDK dependency. Point any MCP-compatible agent at it and it can run the board directly.
- Built for LLM consumption, not just human use.
--briefoutput strips timestamps/URLs/member IDs to cut token usage; JSON is the default format; errors come back as structured, parseable objects instead of thrown exceptions an agent has to guess at. - Correctness-first caching. Repeated reads within a short window are served from memory to cut down on redundant API calls (useful when an agent asks several related questions back to back) — but every write this tool makes invalidates the cache immediately, so you never get stale data back from your own actions.
- Automatic Trello rate-limit handling (state persisted across invocations) and three interchangeable surfaces — CLI, SDK, MCP — backed by the same core, so behavior is consistent no matter which one you use.
Quick Start
Requires Node.js >= 22 and Yarn.
yarn install # install dependencies
yarn build # compile the CLI, SDK, and MCP server
yarn link # makes the `trello` command available globally
Then grab your Trello API credentials, create a config file (see Configuration), and you're running:
trello lists
Prefer not to install globally? Run everything as yarn start <command> (or node dist/cli.js <command>) from inside the project folder instead — no yarn link needed.
Getting Trello API Credentials
- API Key — go to https://trello.com/app-key while logged into Trello. Copy the key shown there.
- API Token — on the same page, click the "Token" link next to your API key and authorize it. Copy the generated token.
- Board ID — open your board in a browser; the ID is the segment right after
/b/in the URL (https://trello.com/b/<boardId>/...). - List IDs (for workflow mapping) — run
trello listsonce you have a minimal config in place (see below) to print every list's ID and name, then use those IDs to fill in yourworkflowmapping.
Treat the API token like a password — it has read/write access to whatever boards you authorize it for. Don't commit it anywhere.
Configuration
Create a board configuration file, e.g. myboard.config.board.json:
{
"boardId": "your-board-id",
"apiKey": "your-api-key",
"apiToken": "your-api-token",
"workflow": {
"todo": ["list-id-for-todo"],
"inProgress": ["list-id-for-in-progress"],
"review": ["list-id-for-review"],
"done": ["list-id-for-done"]
}
}
Notes:
workflowkeys are arbitrary —todo,inProgress,review, anddoneare the ones that default to[]if you omit them, but you can add any other stage name (e.g.testing,validated,rejected) and it will be picked up as-is.- Each stage maps to an array of list IDs, so multiple lists can share one stage if needed.
Any file matching *.config.board.json is automatically gitignored — this is where your credentials live, so never commit it or rename it out of that pattern.
Point the CLI at your config in one of three ways, in priority order:
# 1. --config-file flag (highest priority)
trello tasks list --config-file ./myboard.config.board.json
# 2. BOARD_CONFIG environment variable
export BOARD_CONFIG=./myboard.config.board.json
trello tasks list
# 3. .env file (loaded automatically via dotenv)
echo "BOARD_CONFIG=./myboard.config.board.json" > .env
trello tasks list
# 4. Falls back to ./trello.config.board.json in the current directory if none of the above is set
A .env.example is included as a template for the .env approach.
CLI Usage
Lists
trello lists # List all lists with IDs and card counts
Tasks (multi-card)
trello tasks list # List all tasks (JSON, auto-cached)
trello tasks list --stage todo # Filter by workflow stage
trello tasks list --list "BackEnd" # Filter by list name
trello tasks list --list-id <id> # Filter by list ID
trello tasks list --limit 10 # Limit results
trello tasks list --brief # Concise output (id, name, list, labels)
trello tasks list --format table # table | text | json (default)
trello tasks move <id1> <id2> --to "testing" # Move specific cards to a list
trello tasks move --from "BackEnd" --to "done" # Move all cards from one list to another
Task (single-card)
trello task get <id> # Full context: card, comments, attachments, checklists
trello task get <id> --no-comments
trello task get <id> --no-attachments
trello task get <id> --no-checklists
trello task get <id> --brief # Concise output (id, name, desc, list, labels, comment text)
trello task move <id> <list-id-or-stage> # Move by list ID, workflow stage, or list name
trello task comment <id> "message text"
trello task comment <id> --file comment.txt # Read comment from a file
trello task comment <id> --stdin # Read comment from stdin (pipe) — both avoid shell-escaping issues
trello task label <id> <label-name-or-id> # Add a label (matches by ID, name, or color)
trello task label <id> <label-name-or-id> --remove
Labels
trello labels list # List all board labels
Attachments
trello attachments list <task-id>
trello attachments download <task-id>
trello attachments download <task-id> --output ./my-attachments
Global Options
--config-file <path> # Override config file
--format <format> # Output format: json (default), table, text
--debug # Enable debug logging
Tips for scripting / AI agents:
- Use
--briefto reduce token usage — it strips timestamps, URLs, and member IDs. - Use
--format json(the default) for structured parsing. - Run
trello listsfirst to discover list names/IDs before filtering by them. - Use
--file/--stdinfor multiline comments instead of trying to escape them on the command line.
MCP Server (wiring into Claude Code, Cursor, etc.)
The project ships an MCP server (src/mcp.ts) that exposes every Trello operation as a tool over JSON-RPC 2.0 stdio — no extra MCP SDK dependency required.
yarn dev:mcp # run in dev mode
node dist/mcp.js # run the built server
Wire it into an MCP-compatible client by pointing it at the built server and passing your board config via BOARD_CONFIG:
{
"mcpServers": {
"trello": {
"command": "node",
"args": ["<path-to-project>/dist/mcp.js"],
"env": {
"BOARD_CONFIG": "<path-to-config>/myboard.config.board.json"
}
}
}
}
For Claude Code specifically, add that block to your MCP configuration (.mcp.json or via claude mcp add); other MCP-compatible tools use an equivalent config file.
Available tools: board_info, list_lists, list_tasks, get_task, move_task, move_tasks, add_comment, manage_label, list_labels, list_attachments, download_attachments. Each mirrors the corresponding CLI command's options (see src/mcp.ts for exact input schemas).
Generated & Sensitive Files
| File Pattern | Description |
|---|---|
*.config.board.json |
Board configuration — contains your API key and token |
.env |
Points to your config file path |
*.data.board.json |
Cached board data (auto-generated) |
.rate-limit.json |
Rate limit state (auto-generated) |
.attachments/ |
Downloaded attachments |
All of these are gitignored by default. Never commit a real config file, token, or .env — if you fork or clone this repo, create your own config from scratch using the steps above.
SDK Usage
The SDK is usable directly in a Node/TypeScript app — the same operations as the CLI, without shelling out:
import { createTrelloSdk } from 'trello-cli';
const sdk = await createTrelloSdk('./myboard.config.board.json');
const cards = await sdk.services.card.getAllCards();
const context = await sdk.services.card.getFullContext('card-id');
await sdk.services.card.moveCard('card-id', 'inProgress');
await sdk.services.comment.addComment('card-id', 'My comment');
const results = await sdk.services.attachment.downloadAttachments('card-id');
For Contributors
Contributions are welcome — bug reports, feature ideas, and pull requests. Please read CONTRIBUTING.md before opening a PR, and see CLAUDE.md for a deeper architecture map if you're using an AI coding agent on this repo.
yarn dev <command> # Run CLI in dev mode (tsx)
yarn dev:mcp # Run MCP server in dev mode
yarn dev:watch # Run CLI in dev mode with file watching
yarn build # Build with tsup to dist/
yarn start <command> # Run built CLI
yarn lint # ESLint (yarn lint:fix to auto-fix)
yarn format # Prettier (yarn format:check to verify only)
yarn typecheck # Type check without emitting
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。