trello-mcp

trello-mcp

Enables AI agents to inspect and update Trello boards via the Trello REST API, supporting actions like reading boards, lists, cards, and performing CRUD operations on cards and checklists.

Category
访问服务器

README

<div align="center">

trello-mcp

A Codex-first Trello MCP server for AI agents

Codex ready MCP server Trello Node.js License: MIT

trello-mcp gives Codex and other MCP-compatible AI agents a clean, practical way to inspect and update Trello boards through Trello's official REST API.

</div>

Why This Exists

AI agents are useful when they can see the real workflow, not just the codebase. This server lets Codex connect to Trello so it can understand tasks, keep cards updated, add evidence comments, and help maintain project boards without scraping or browser automation.

It is designed for Codex first, but it works as a normal stdio MCP server in any client that supports the Model Context Protocol.

Features

Area Supported actions
Account Identify the authenticated Trello member
Workspaces List visible Trello workspaces
Boards List open boards and inspect board metadata
Lists List board columns/lists
Cards List, read, search, create, update, move, comment on, and archive cards
Checklists Create checklists and checklist items
Agent safety Redacted errors, no committed credentials, archive-first workflow guidance

Tool List

Tool Purpose
trello_whoami Show the authenticated Trello member
trello_list_workspaces List visible Trello workspaces
trello_list_boards List open Trello boards
trello_get_board Read board metadata
trello_list_lists List board lists
trello_list_cards List cards, optionally by list
trello_get_card Read a card
trello_search_cards Search cards by text
trello_create_card Create a card
trello_update_card Update card title, description, due date, or archive state
trello_move_card Move a card to another list
trello_add_comment Add a card comment
trello_archive_card Archive a card
trello_add_checklist Add a checklist to a card
trello_add_check_item Add an item to a checklist

Quick Start

git clone https://github.com/KharalDipendra/trello-mcp.git
cd trello-mcp
npm install
npm run build

Run the local verification suite:

npm run check

Trello Credentials

You need a Trello API key and token.

  1. Open Trello's API key page: trello.com/app-key
  2. Copy your API key.
  3. Generate a token using this URL after replacing YOUR_API_KEY:
https://trello.com/1/authorize?expiration=never&name=trello-mcp&scope=read,write&response_type=token&key=YOUR_API_KEY

Required environment variables:

TRELLO_API_KEY=your_trello_api_key
TRELLO_TOKEN=your_trello_token

Optional environment variables:

TRELLO_BOARD_ID=default_board_id
TRELLO_IDENTITY=default
TRELLO_BASE_URL=https://api.trello.com/1

Never commit a real .env file. Keep Trello credentials in your MCP client config, shell environment, or secret manager.

Codex Setup

Build the project first:

npm install
npm run build

Then add an MCP server entry to your Codex config:

{
  "mcpServers": {
    "trello": {
      "command": "node",
      "args": ["/absolute/path/to/trello-mcp/dist/index.js"],
      "env": {
        "TRELLO_API_KEY": "your_trello_api_key",
        "TRELLO_TOKEN": "your_trello_token",
        "TRELLO_BOARD_ID": "optional_default_board_id",
        "TRELLO_IDENTITY": "default"
      }
    }
  }
}

For Windows paths, use escaped backslashes or forward slashes:

"args": ["C:/Users/you/Desktop/trello-mcp/dist/index.js"]

Multiple Trello Accounts

Run one MCP entry per Trello identity:

{
  "mcpServers": {
    "trello-personal": {
      "command": "node",
      "args": ["/absolute/path/to/trello-mcp/dist/index.js"],
      "env": {
        "TRELLO_API_KEY": "key_for_account_one",
        "TRELLO_TOKEN": "token_for_account_one",
        "TRELLO_IDENTITY": "account-one"
      }
    },
    "trello-work": {
      "command": "node",
      "args": ["/absolute/path/to/trello-mcp/dist/index.js"],
      "env": {
        "TRELLO_API_KEY": "key_for_account_two",
        "TRELLO_TOKEN": "token_for_account_two",
        "TRELLO_IDENTITY": "account-two"
      }
    }
  }
}

Standalone MCP Usage

The server communicates over stdio, so it is normally launched by an MCP client.

TRELLO_API_KEY=... TRELLO_TOKEN=... node dist/index.js

You can also run the TypeScript source during development:

TRELLO_API_KEY=... TRELLO_TOKEN=... npm run dev

Agent Safety Model

trello-mcp is intentionally simple and explicit:

  • It uses Trello's REST API directly.
  • It does not scrape Trello pages.
  • It does not store credentials.
  • It redacts credentials from Trello API error messages.
  • It exposes archive tools, not permanent delete tools.
  • It encourages agents to inspect board state before changing cards.

Recommended agent behaviour:

  1. Read the board, lists, and relevant cards first.
  2. Explain planned changes before writing when the workflow is sensitive.
  3. Add short evidence comments for meaningful card updates.
  4. Move cards to done only when the underlying work is actually complete.
  5. Prefer archiving stale cards over deleting them.

Development

npm install
npm run check

Available scripts:

Script Description
npm run build Compile TypeScript into dist/
npm test Run mocked client tests
npm run check Build and test
npm run dev Run the MCP server from TypeScript
npm start Run the compiled MCP server

The test suite uses mocked Trello responses and does not call the live Trello API.

Project Structure

trello-mcp/
  examples/
    codex-mcp.json
  src/
    index.ts
    trelloClient.ts
  test/
    trelloClient.test.ts

Contributing

Issues and pull requests are welcome. Keep changes generic and avoid committing board data, workspace names, real card content, tokens, or account-specific config.

License

MIT. See LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选