Trello MCP Server
Enables interaction with Trello boards, lists, and cards using the Model Context Protocol. Supports operations like fetching boards, lists, cards, and searching across boards.
README
Trello MCP Server
A Model Context Protocol (MCP) server that provides tools to fetch and interact with Trello boards, lists, and cards.
Features
- Get all boards for authenticated user
- Get board details
- Fetch lists from a board
- Fetch cards from boards or lists
- Get specific card details
- Search for cards across boards
- Get card actions/history
- Add comments to cards
- Move cards between lists (change status)
Setup
1. Get Trello API Credentials
Important: You need to create a Power-Up to get API credentials.
- Visit https://trello.com/power-ups/admin
- Click "Create New Power-Up" (or "Crear" button)
- Fill in basic information:
- Name: "Trello MCP" (or any name you prefer)
- Workspace: Select your workspace
- Once created, go to the "API Key" section in your Power-Up settings
- You'll see your API Key displayed (a 32-character string)
- Click on the "Token" link (or "token" in the description) to generate your API token
- Authorize the token when prompted
- Copy both the API key and API token
Alternatively, you can go directly to https://trello.com/app-key if you already have a Power-Up created.
2. Install Dependencies
npm install
3. Configure Environment Variables
Copy the example environment file and add your credentials:
cp .env.example .env
Edit .env and add your credentials:
TRELLO_API_KEY=your_actual_api_key
TRELLO_API_TOKEN=your_actual_api_token
4. Test the Server
Run the server directly:
npm start
Configuration
You can configure this MCP server globally in Claude Desktop or per-project in Claude Code CLI.
Option 1: Global Configuration (Claude Desktop)
Edit your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"trello": {
"command": "node",
"args": ["/absolute/path/to/trello-mcp/index.js"],
"env": {
"TRELLO_API_KEY": "your_api_key_here",
"TRELLO_API_TOKEN": "your_api_token_here"
}
}
}
}
Replace /absolute/path/to/trello-mcp/ with the actual path to this directory.
After adding the configuration, restart Claude Desktop.
Option 2: Per-Project Configuration (Claude Code CLI)
For Claude Code CLI, MCP servers are configured per-project in ~/.claude.json.
Important: You must include the type: "stdio" field and the env variables directly in the configuration. The .env file won't be loaded automatically.
Use this command to configure for a specific project:
# Using jq to add the configuration
jq '.projects."/path/to/your/project".mcpServers.trello = {
"type": "stdio",
"command": "node",
"args": ["/Users/ehigu/Documents/Esteban/Projects/habitus/webapp/trello-mcp/index.js"],
"env": {
"TRELLO_API_KEY": "your_api_key_here",
"TRELLO_API_TOKEN": "your_api_token_here"
}
}' ~/.claude.json > /tmp/claude_config.json && mv /tmp/claude_config.json ~/.claude.json
Or manually edit ~/.claude.json:
{
"projects": {
"/path/to/your/project": {
"mcpServers": {
"trello": {
"type": "stdio",
"command": "node",
"args": ["/Users/ehigu/Documents/Esteban/Projects/habitus/webapp/trello-mcp/index.js"],
"env": {
"TRELLO_API_KEY": "your_api_key_here",
"TRELLO_API_TOKEN": "your_api_token_here"
}
}
}
}
}
}
After adding the configuration, restart Claude Code.
Available Tools
get_my_boards
Get all boards for the authenticated user.
Parameters:
filter(optional): Filter boards by type (all, open, closed, starred, organization, public, members). Default: "open"
get_board
Get details of a specific board.
Parameters:
board_id(required): The ID of the board
get_board_lists
Get all lists on a board.
Parameters:
board_id(required): The ID of the boardfilter(optional): Filter lists (all, open, closed, none). Default: "open"
get_board_cards
Get all cards on a board.
Parameters:
board_id(required): The ID of the board
get_list_cards
Get all cards in a specific list.
Parameters:
list_id(required): The ID of the list
get_card
Get details of a specific card.
Parameters:
card_id(required): The ID of the card
search_cards
Search for cards across all boards.
Parameters:
query(required): Search queryboard_ids(optional): Comma-separated board IDs to search within
get_card_actions
Get actions (activity/history) for a specific card.
Parameters:
card_id(required): The ID of the card
add_comment_to_card
Add a comment to a specific card.
Parameters:
card_id(required): The ID of the cardtext(required): The comment text to add
move_card_to_list
Move a card to a different list (change its status).
Parameters:
card_id(required): The ID of the card to movelist_id(required): The ID of the destination list
Note: To use this tool, you first need to get the list IDs using get_board_lists.
Usage Examples
Once configured in Claude Desktop, you can use natural language to interact with your Trello boards:
- "Show me all my open Trello boards"
- "Get the cards from board [board_id]"
- "Search for cards containing 'bug fix'"
- "Show me the details of card [card_id]"
- "What are the lists in my board?"
- "Add a comment to card [card_id] saying 'This looks good!'"
- "Comment on card [card_id] with 'Reviewed and approved'"
- "Move card [card_id] to list [list_id]"
- "Change the status of card [card_id] from To Do to In Progress"
Workflow example for moving cards:
- First, get the lists: "Show me the lists in board [board_id]"
- Identify the destination list ID from the results
- Move the card: "Move card [card_id] to list [list_id]"
Troubleshooting
Authentication Errors
If you see authentication errors:
- Verify your API key and token are correct
- Make sure the token has not expired
- Regenerate the token if necessary from https://trello.com/app-key
Server Not Starting
- Check that Node.js is installed:
node --version - Ensure dependencies are installed:
npm install - Verify environment variables are set correctly
MCP Server Shows "Failed" Status
If the MCP server shows as "failed" in Claude Code:
-
Missing
typefield: Make sure your configuration includes"type": "stdio". This is required for Claude Code CLI. -
Environment variables not loaded: The
.envfile is NOT automatically loaded when Claude Code runs the MCP server. You must include theenvobject with your API credentials directly in the configuration:{ "type": "stdio", "command": "node", "args": ["/path/to/trello-mcp/index.js"], "env": { "TRELLO_API_KEY": "your_api_key", "TRELLO_API_TOKEN": "your_api_token" } } -
Check logs: Run
claude --debugto see detailed error logs -
Test manually: Run the server directly to verify it works:
cd /path/to/trello-mcp TRELLO_API_KEY=your_key TRELLO_API_TOKEN=your_token node index.js -
Restart Claude Code: After configuration changes, completely quit and restart Claude Code
MCP Server Not Showing in Claude
- Check the path in your config is absolute and correct
- Restart Claude Desktop/Code completely
- Check Claude Desktop logs for any errors
- For Claude Code CLI, verify the configuration is in the correct project path in
~/.claude.json
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。