delorenj/mcp-server-trello
If you are the rightful owner of mcp-server-trello and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that provides tools for interacting with Trello boards, enabling seamless integration with Trello's API.
MCP Server Trello
A Model Context Protocol (MCP) server that provides tools for interacting with Trello boards. This server enables seamless integration with Trello's API while handling rate limiting, type safety, and error handling automatically.
š New in v1.5.0: Now Powered by Bun! ā”
This project is now powered by Bun! š We've migrated the entire project to the Bun runtime, resulting in a 2.8-4.4x performance boost. All existing npx
, pnpx
, and npm
commands will continue to work perfectly.
⨠New in This Release:
- š Performance Boost: Enjoy a faster, more responsive server.
- BUN Bun-Powered: The project now runs on the lightning-fast Bun runtime.
- š Comprehensive Examples: A new
examples
directory with detailed implementations in JavaScript, Python, and TypeScript.
Plus: Modern MCP SDK architecture, enhanced type safety, and comprehensive documentation!
Changelog
For a detailed list of changes, please refer to the file.
Features
- Full Trello Board Integration: Interact with cards, lists, and board activities
- š Complete Card Data Extraction: Fetch all card details including checklists, attachments, labels, members, and comments
- File Attachments: Attach any type of file to cards (PDFs, documents, videos, images, etc.) from URLs
- Built-in Rate Limiting: Respects Trello's API limits (300 requests/10s per API key, 100 requests/10s per token)
- Type-Safe Implementation: Written in TypeScript with comprehensive type definitions
- Input Validation: Robust validation for all API inputs
- Error Handling: Graceful error handling with informative messages
- Dynamic Board Selection: Switch between boards and workspaces without restarting
- Markdown Formatting: Export card data in human-readable markdown format
Installation
š Install from MCP Registry (Recommended)
The MCP Server Trello is now available in the official MCP Registry! MCP clients can automatically discover and install this server.
For clients that support the MCP Registry:
- Search for "mcp-server-trello" or "io.github.delorenj/mcp-server-trello"
- Install directly from the registry
- Configure with your Trello credentials
š Quick Start with Bun (Fastest)
If you have Bun installed, using bunx
is the fastest way to run the server:
{
Ā "mcpServers": {
Ā Ā "trello": {
Ā Ā Ā "command": "bunx",
Ā Ā Ā "args": ["@delorenj/mcp-server-trello"],
Ā Ā Ā "env": {
Ā Ā Ā Ā "TRELLO_API_KEY": "your-api-key",
Ā Ā Ā Ā "TRELLO_TOKEN": "your-token"
Ā Ā Ā }
Ā Ā }
Ā }
}
Quick Start with npx / pnpx / bunx
You can still use npx
or pnpx
. This doesn't require a global install and will work just fine, though bunx
(above) is faster.
{
Ā "mcpServers": {
Ā Ā "trello": {
Ā Ā Ā "command": "bunx",
Ā Ā Ā "args": ["@delorenj/mcp-server-trello"],
Ā Ā Ā "env": {
Ā Ā Ā Ā "TRELLO_API_KEY": "your-api-key",
Ā Ā Ā Ā "TRELLO_TOKEN": "your-token"
Ā Ā Ā }
Ā Ā }
Ā }
}
Or if you're using mise, you can explicitly execute bunx
with mise exec
:
{
Ā "mcpServers": {
Ā Ā "trello": {
Ā Ā Ā "command": "mise",
Ā Ā Ā "args": ["x", "--", "bunx", "@delorenj/mcp-server-trello"],
Ā Ā Ā "env": {
Ā Ā Ā Ā "TRELLO_API_KEY": "your-api-key",
Ā Ā Ā Ā "TRELLO_TOKEN": "your-token"
Ā Ā Ā }
Ā Ā }
Ā }
}
To connect a Trello workspace, you'll need to manually retrieve a TRELLO_TOKEN
once per workspace. After setting up your Trello Power-Up, visit the following URL:
https://trello.com/1/authorize?expiration=never&name=YOUR_APP_NAME&scope=read,write&response_type=token&key=YOUR_API_KEY
Replace:
YOUR_APP_NAME
with a name for your application (e.g., "My Trello Integration"). This name is shown to the user on the Trello authorization screen.YOUR_API_KEY
with the API key for your Trello Power-Up
This will generate the token required for integration.
[!NOTE] The
expiration=never
parameter creates a token that does not expire. For enhanced security, consider usingexpiration=30days
and renewing the token periodically if your setup allows for it.
Don't have Bun?
The simplest way to get bun
(and thus bunx
) is through mise:
# Install mise (if you don't have it)
curl https://mise.run | sh
# Install bun and make the @latest version your system default
mise use bun@latest -g
# Or just run `mise install` from the project directory to install Bun locally
cd /path/to/mcp-server-trello
mise install
Installing via npm
If you prefer using npm
directly:
npm install -g @delorenj/mcp-server-trello
(A fast alternative is bun add -g @delorenj/mcp-server-trello
)
Then use npx mcp-server-trello
as the command in your MCP configuration.
Installing via Smithery
To install Trello Server for Claude Desktop automatically via Smithery:
# Using bunx (recommended)
bunx -y @smithery/cli install @delorenj/mcp-server-trello --client claude
# Using npx
npx -y @smithery/cli install @delorenj/mcp-server-trello --client claude
Docker Installation
For containerized environments:
- Clone the repository:
git clone https://github.com/delorenj/mcp-server-trello
cd mcp-server-trello
- Copy the environment template and fill in your Trello credentials:
cp .env.template .env
- Build and run with Docker Compose:
docker compose up --build
Configuration
Environment Variables
The server can be configured using environment variables. Create a .env
file in the root directory with the following variables:
# Required: Your Trello API credentials
TRELLO_API_KEY=your-api-key
TRELLO_TOKEN=your-token
# Optional (Deprecated): Default board ID (can be changed later using set_active_board)
TRELLO_BOARD_ID=your-board-id
# Optional: Initial workspace ID (can be changed later using set_active_workspace)
TRELLO_WORKSPACE_ID=your-workspace-id
You can get these values from:
- API Key: https://trello.com/app-key
- Token: Generate using your API key
- Board ID (optional, deprecated): Found in the board URL (e.g., [suspicious link removed])
- Workspace ID: Found in workspace settings or using
list_workspaces
tool
Board and Workspace Management
Starting with version 0.3.0, the MCP server supports multiple ways to work with boards:
-
Multi-board support: All methods now accept an optional
boardId
parameter Ā Ā - OmitTRELLO_BOARD_ID
and provideboardId
in each API call Ā Ā - SetTRELLO_BOARD_ID
as default and optionally override withboardId
parameter -
Dynamic board selection: Use workspace management tools Ā Ā - The
TRELLO_BOARD_ID
in your.env
file is used as the initial/default board ID Ā Ā - You can change the active board at any time using theset_active_board
tool Ā Ā - The selected board persists between server restarts (stored in~/.trello-mcp/config.json
) Ā Ā - Similarly, you can set and persist an active workspace usingset_active_workspace
This allows you to work with multiple boards and workspaces without restarting the server.
Example Workflow
- Start by listing available boards:
{
Ā name: 'list_boards',
Ā arguments: {}
}
- Set your active board:
{
Ā name: 'set_active_board',
Ā arguments: {
Ā Ā boardId: "abc123"Ā // ID from list_boards response
Ā }
}
- List workspaces if needed:
{
Ā name: 'list_workspaces',
Ā arguments: {}
}
- Set active workspace if needed:
{
Ā name: 'set_active_workspace',
Ā arguments: {
Ā Ā workspaceId: "xyz789"Ā // ID from list_workspaces response
Ā }
}
- Check current active board info:
{
Ā name: 'get_active_board_info',
Ā arguments: {}
}
Date Format Guidelines
When working with dates in the Trello MCP server, please note the different format requirements:
- Due Date (
dueDate
): Accepts full ISO 8601 format with time (e.g.,2023-12-31T12:00:00Z
) - Start Date (
start
): Accepts date only in YYYY-MM-DD format (e.g.,2025-08-05
)
This distinction follows Trello's API conventions where start dates are day-based markers while due dates can include specific times.
Available Tools
Checklist Management Tools š
get_checklist_items
Get all items from a checklist by name.
{
Ā name: 'get_checklist_items',
Ā arguments: {
Ā Ā name: string,Ā Ā Ā Ā // Name of the checklist to retrieve items from
Ā Ā boardId?: stringĀ Ā Ā // Optional: ID of the board (uses default if not provided)
Ā }
}
add_checklist_item
Add a new item to an existing checklist.
{
Ā name: 'add_checklist_item',
Ā arguments: {
Ā Ā text: string,Ā Ā Ā Ā Ā Ā // Text content of the checklist item
Ā Ā checkListName: string,Ā // Name of the checklist to add the item to
Ā Ā boardId?: stringĀ Ā Ā Ā // Optional: ID of the board (uses default if not provided)
Ā }
}
find_checklist_items_by_description
Search for checklist items containing specific text.
{
nbsp; name: 'find_checklist_items_by_description',
Ā arguments: {
Ā Ā description: string,Ā // Text to search for in checklist item descriptions
Ā Ā boardId?: stringĀ Ā Ā // Optional: ID of the board (uses default if not provided)
nbsp; }
}
get_acceptance_criteria
Get all items from the "Acceptance Criteria" checklist.
{
Ā name: 'get_acceptance_criteria',
Ā arguments: {
Ā Ā boardId?: stringĀ // Optional: ID of the board (uses default if not provided)
Ā }
}
get_checklist_by_name
Get a complete checklist with all items and completion percentage.
{
Ā name: 'get_checklist_by_name',
Ā arguments: {
Ā Ā name: string,Ā Ā Ā // Name of the checklist to retrieve
Ā Ā boardId?: stringĀ // Optional: ID of the board (uses default if not provided)
Ā }
}
Returns: CheckList
object with:
id
: Checklist identifiername
: Checklist nameitems
: Array ofCheckListItem
objectspercentComplete
: Completion percentage (0-100)
get_card š
Get comprehensive details of a specific Trello card with human-level parity.
{
Ā name: 'get_card',
Ā arguments: {
Ā Ā cardId: string,Ā Ā Ā Ā Ā // ID of the Trello card (short ID like 'FdhbArbK' or full ID)
Ā Ā includeMarkdown?: boolean // Return formatted markdown instead of JSON (default: false)
Ā }
}
Returns: Complete card data including:
- ā Checklists with item states and assignments
- š Attachments with previews and metadata
- š·ļø Labels with names and colors
- š„ Assigned members
- š¬ Comments and activity
- š Statistics (badges)
- šØ Cover images
- š Board and list context
get_cards_by_list_id
Fetch all cards from a specific list.
{
Ā name: 'get_cards_by_list_id',
Ā arguments: {
Ā Ā boardId?: string, // Optional: ID of the board (uses default if not provided)
Ā Ā listId: stringĀ Ā // ID of the Trello list
Ā }
}
get_lists
Retrieve all lists from a board.
{
Ā name: 'get_lists',
Ā arguments: {
Ā Ā boardId?: stringĀ // Optional: ID of the board (uses default if not provided)
Ā }
}
get_recent_activity
Fetch recent activity on a board.
{
Ā name: 'get_recent_activity',
Ā arguments: {
Ā Ā boardId?: string, // Optional: ID of the board (uses default if not provided)
Ā Ā limit?: numberĀ Ā // Optional: Number of activities to fetch (default: 10)
Ā }
}
add_card_to_list
Add a new card to a specified list.
{
Ā name: 'add_card_to_list',
Ā arguments: {
Ā Ā boardId?: string,Ā Ā Ā // Optional: ID of the board (uses default if not provided)
Ā Ā listId: string,Ā Ā Ā Ā // ID of the list to add the card to
Ā Ā name: string,Ā Ā Ā Ā Ā // Name of the card
Ā Ā description?: string, // Optional: Description of the card
Ā mbs; dueDate?: string,Ā Ā Ā // Optional: Due date (ISO 8601 format with time)
Ā Ā start?: string,Ā Ā Ā Ā // Optional: Start date (YYYY-MM-DD format, date only)
Ā Ā labels?: string[]Ā Ā Ā // Optional: Array of label IDs
Ā }
}
update_card_details
Update an existing card's details.
{
Ā name: 'update_card_details',
Ā arguments: {
Ā Ā boardId?: string,Ā Ā Ā // Optional: ID of the board (uses default if not provided)
Ā Ā cardId: string,Ā Ā Ā Ā // ID of the card to update
Ā Ā name?: string,Ā Ā Ā Ā // Optional: New name for the card
Ā Ā description?: string, // Optional: New description
Ā Ā dueDate?: string,Ā Ā Ā // Optional: New due date (ISO 8601 format with time)
Ā Ā start?: string,Ā Ā Ā Ā // Optional: New start date (YYYY-MM-DD format, date only)
Ā Ā dueComplete?: boolean,// Optional: Mark the due date as complete (true) or incomplete (false)
Ā Ā labels?: string[]Ā Ā Ā // Optional: New array of label IDs
Ā }
}
archive_card
Send a card to the archive.
{
Ā name: 'archive_card',
Ā arguments: {
Ā Ā boardId?: string, // Optional: ID of the board (uses default if not provided)
Ā Ā cardId: stringĀ Ā // ID of the card to archive
Ā }
}
add_list_to_board
Add a new list to a board.
{
nbsp; name: 'add_list_to_board',
Ā arguments: {
Ā Ā boardId?: string, // Optional: ID of the board (uses default if not provided)
Ā Ā name: stringĀ Ā Ā // Name of the new list
Ā }
}
archive_list
Send a list to the archive.
{
Ā name: 'archive_list',
Ā arguments: {
Ā Ā boardId?: string, // Optional: ID of the board (uses default if not provided)
Ā Ā listId: stringĀ Ā // ID of the list to archive
Ā }
}
get_my_cards
Fetch all cards assigned to the current user.
{
Ā name: 'get_my_cards',
Ā arguments: {}
}
move_card
Move a card to a different list.
{
Ā name: 'move_card',
Ā arguments: {
Ā Ā boardId?: string,Ā // Optional: ID of the target board (uses default if not provided)
s; Ā cardId: string,Ā Ā // ID of the card to move
Ā Ā listId: stringĀ Ā Ā // ID of the target list
Ā }
}
attach_image_to_card
Attach an image to a card directly from a URL.
{
Ā name: 'attach_image_to_card',
Ā arguments: {
Ā Ā boardId?: string, // Optional: ID of the board (uses default if not provided)
Ā Ā cardId: string,Ā nbsp; // ID of the card to attach the image to
Ā Ā imageUrl: string, // URL of the image to attach
Ā Ā name?: stringĀ Ā Ā // Optional: Name for the attachment (defaults to "Image Attachment")
Ā }
}
attach_file_to_card
Attach any type of file to a card from a URL or a local file path (e.g., file:///path/to/your/file.pdf
).
{
Ā name: 'attach_file_to_card',
nbsp; arguments: {
Ā Ā boardId?: string,Ā // Optional: ID of the board (uses default if not provided)
Ā Ā cardId: string,s; Ā // ID of the card to attach the file to
Ā Ā fileUrl: string,Ā Ā // URL or local file path (using the file:// protocol) of the file to attach
Ā Ā name?: string,Ā Ā Ā // Optional: Name for the attachment (defaults to the file name for local files)
Ā Ā mimeType?: stringĀ // Optional: MIME type (e.g., "application/pdf", "text/plain", "video/mp4")
Ā }
}
list_boards
List all boards the user has access to.
{
Ā name: 'list_boards',
Ā arguments: {}
}
set_active_board
Set the active board for future operations.
{
Ā name: 'set_active_board',
Ā arguments: {
Ā Ā boardId: stringĀ // ID of the board to set as active
Ā }
}
list_workspaces
List all workspaces the user has access to.
{
s; name: 'list_workspaces',
Ā arguments: {}
}
set_active_workspace
Set the active workspace for future operations.
{
Ā name: 'set_active_workspace',
Ā arguments: {
Ā Ā workspaceId: stringĀ // ID of the workspace to set as active
Ā }
}
list_boards_in_workspace
List all boards in a specific workspace.
{
Ā name: 'list_boards_in_workspace',
Ā arguments: {
Ā Ā workspaceId: stringĀ // ID of the workspace to list boards from
Ā }
}
get_active_board_info
Get information about the currently active board.
{
s; name: 'get_active_board_info',
Ā arguments: {}
}
Integration Examples
šØ Pairing with Ideogram MCP Server
The Trello MCP server pairs beautifully with @flowluap/ideogram-mcp-server for AI-powered visual content creation. Generate images with Ideogram and attach them directly to your Trello cards!
Example Workflow
- Generate an image with Ideogram:
// Using ideogram-mcp-server
{
Ā name: 'generate_image',
Ā arguments: {
Ā Ā prompt: "A futuristic dashboard design with neon accents",
Ā Ā aspect_ratio: "16:9"
Ā }
}
// Returns: { image_url: "https://..." }
- Attach the generated image to a Trello card:
// Using trello-mcp-server
{
Ā name: 'attach_image_to_card',
Ā arguments: {
Ā Ā cardId: "your-card-id",
Ā Ā imageUrl: "https://...", // URL from Ideogram
Ā Ā name: "Dashboard Mockup v1"
Ā }
}
Setting up both servers
Add both servers to your Claude Desktop configuration. Use bunx
for the fastest startup.
{
Ā "mcpServers": {
Ā Ā "trello": {
Ā Ā Ā "command": "bunx",
Ā Ā Ā "args": ["@delorenj/mcp-server-trello"],
nbsp; Ā "env": {
Ā Ā Ā Ā "TRELLO_API_KEY": "your-trello-api-key",
Ā Ā Ā Ā "TRELLO_TOKEN": "your-trello-token"
Ā Ā Ā }
Ā Ā },
Ā Ā "ideogram": {
Ā Ā Ā "command": "bunx",
Ā Ā Ā "args": ["@flowluap/ideogram-mcp-server"],
Ā Ā Ā "env": {
Ā Ā Ā Ā "IDEOGRAM_API_KEY": "your-ideogram-api-key"
Ā Ā Ā }
Ā Ā }
Ā }
}
Now you can seamlessly create visual content and organize it in Trello, all within Claude!
Rate Limiting
The server implements a token bucket algorithm for rate limiting to comply with Trello's API limits:
- 300 requests per 10 seconds per API key
- 100 requests per 10 seconds per token
Rate limiting is handled automatically, and requests will be queued if limits are reached.
Error Handling
The server provides detailed error messages for various scenarios:
- Invalid input parameters
- Rate limit exceeded
- API authentication errors
- Network issues
- Invalid board/list/card IDs
Development
Prerequisites
- Bun (v1.0.0 or higher)
Setup
- Clone the repository
git clone https://github.com/delorenj/mcp-server-trello
cd mcp-server-trello
- Install dependencies
bun install
- Build the project
bun run build
Running tests
To run the tests, run the following command:
bun test
Running evals
The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the bunx
command. Full documentation can be found here.
OPENAI_API_KEY=your-key bunx mcp-eval src/evals/evals.ts src/index.ts
Contributing
Contributions are welcome!
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Built with the Model Context Protocol SDK
- Uses the Trello REST API