Trello MCP Server

Trello MCP Server

Enables AI assistants to interact with Trello boards, cards, lists, and more through a standardized interface.

Category
访问服务器

README

Trello MCP Server

A Model Context Protocol (MCP) server that provides comprehensive Trello integration for AI assistants and applications. This server enables MCP clients to interact with Trello boards, cards, lists, and more through a standardized interface.

Features

Search & Discovery

  • Universal Search: Search across all Trello content (boards, cards, members, organizations)
  • User Boards: Get all boards accessible to the current user
  • Board Details: Retrieve detailed information about boards including lists and cards

Card Management

  • Create Cards: Add new cards to any list with descriptions, due dates, and assignments
  • Update Cards: Modify card properties like name, description, due dates, and status
  • Move Cards: Transfer cards between lists to update workflow status
  • Get Card Details: Fetch comprehensive card information including members, labels, and checklists

Collaboration

  • Add Comments: Post comments on cards for team communication
  • Member Management: View board members and member details
  • Activity History: Track card actions and changes

Organization

  • List Management: Create new lists and get cards within specific lists
  • Labels: View and manage board labels for categorization
  • Checklists: Access card checklists and checklist items
  • Attachments: Upload, download, and manage card attachments with MCP resource support

Installation

Prerequisites

  • Node.js 18+ installed
  • An MCP-compatible client (Claude Desktop, Claude Code, or other MCP clients)
  • Trello account with API credentials

Setup Steps

  1. Clone the repository

    git clone https://github.com/semblancelabs/trello-mcp-server.git
    cd trello-mcp-server
    
  2. Install dependencies

    npm install
    
  3. Build the project

    npm run build
    
  4. Get Trello API credentials

    • Visit https://trello.com/app-key
    • Copy your API Key
    • Generate a Token (never expires, read/write access)
  5. Configure your MCP client

    Add the Trello MCP server to your client's configuration. Example configuration:

    {
      "mcpServers": {
        "trello": {
          "command": "node",
          "args": ["/absolute/path/to/trello-mcp-server/dist/index.js"],
          "env": {
            "TRELLO_API_KEY": "your-api-key-here",
            "TRELLO_TOKEN": "your-token-here"
          }
        }
      }
    }
    
  6. Restart your MCP client

Available Tools

The MCP server provides 35 tools organized by category:

Search

  • search - Universal search across all Trello content (boards, cards, members, organizations)

Boards

  • listBoards - List all boards accessible to the user
  • getBoardDetails - Get detailed board information with lists and cards
  • getLists - Get all lists in a board

Cards

  • createCard - Create a new card in a list
  • getCard - Get detailed card information
  • updateCard - Update card properties (name, description, due date, etc.)
  • moveCard - Move a card to a different list
  • archiveCard - Archive or unarchive a card
  • deleteCard - Permanently delete a card

Checklists

  • createChecklistOnCard - Create a new checklist on a card
  • updateCheckItem - Update a checklist item (mark complete/incomplete, rename)
  • deleteCheckItem - Delete a checklist item
  • getCardChecklists - Get all checklists and items for a card

Attachments

  • addAttachmentToCard - Add a URL or file attachment to a card
  • deleteAttachmentFromCard - Remove an attachment from a card
  • getAttachmentsOnCard - Get all attachments for a card
  • getAttachmentOnCard - Get a specific attachment
  • downloadFileAttachment - Download an attachment file to local path

Labels

  • createLabel - Create a new label on a board
  • getLabel - Get label details
  • updateLabel - Update label name or color
  • deleteLabel - Delete a label from a board
  • updateLabelField - Update a specific label field
  • getBoardLabels - Get all labels on a board
  • addLabelToCard - Add a label to a card
  • removeLabelFromCard - Remove a label from a card

Members

  • getUserBoards - Get all boards accessible to the current user
  • getMember - Get member profile and boards
  • getBoardMembers - Get all members on a board
  • addMemberToCard - Assign a member to a card
  • removeMemberFromCard - Remove a member from a card

Lists & Comments

  • createList - Create a new list on a board
  • getListCards - Get all cards in a specific list
  • addComment - Add a comment to a card
  • getCardActions - Get activity history and comments for a card

Board Queries

  • getBoardCards - Get all cards from a board with filtering

MCP Resources

The server exposes Trello card attachments as MCP resources using the trello:// URI scheme. This allows MCP clients to access file attachments directly.

Resource URI Format

trello://cards/{cardId}/attachments/{attachmentId}/download/{fileName}

How It Works

  1. Get Attachments: Use getAttachmentsOnCard to list attachments on a card. File attachments (where isUpload=true) include a trello:// resource URI in the url field.

  2. Access Resources: MCP clients can read the resource URI directly to access file metadata and trigger downloads.

  3. Download Files: Use downloadFileAttachment with the resource URI to download the file to a local path.

Example Workflow

1. Call getAttachmentsOnCard for card "abc123"
2. Response includes: { "url": "trello://cards/abc123/attachments/xyz789/download/document.pdf", "isUpload": true }
3. Call downloadFileAttachment with resourceUri and desired filePath
4. File is downloaded and saved locally

Resource Features

  • On-Demand Download: Files are only downloaded when explicitly requested
  • Large File Support: Streams files efficiently without loading entirely into memory
  • Authenticated Access: Uses your Trello credentials automatically

Usage Examples

Once configured, you can use natural language to interact with Trello:

"Show me all my Trello boards"
"Create a new card called 'Update documentation' in the To Do list"
"Move card X from In Progress to Done"
"Add a comment to card Y saying 'This is ready for review'"
"Search for all cards with 'bug' in the title"
"Show me all cards assigned to me"

Architecture

MCP Protocol

The server implements the Model Context Protocol (MCP), which provides:

  • Standardized tool discovery and invocation
  • Type-safe parameter validation
  • Structured error handling
  • Automatic credential management

Security

  • API credentials are stored in your MCP client's configuration
  • No credentials are transmitted over the network except to Trello's API
  • All Trello API calls use HTTPS
  • Rate limiting is respected with automatic retry logic

Technical Stack

  • TypeScript for type safety
  • MCP SDK for protocol implementation
  • Zod for schema validation
  • Fetch API for HTTP requests

Development

Building from Source

# Install dependencies
npm install

# Build the project
npm run build

# Run type checking
npm run type-check

Testing

The server includes comprehensive error handling and validation. Test your setup by:

  1. Checking your MCP client's connection status
  2. Running a simple command like "Show me my Trello boards"
  3. Verifying the response includes your board data

Troubleshooting

Common Issues

  1. "No Trello tools available"

    • Ensure your MCP client is fully restarted after configuration
    • Check that the path in config points to dist/index.js
    • Verify the file exists and is built
  2. "Invalid credentials"

    • Double-check your API key and token
    • Ensure token has read/write permissions
    • Regenerate token if needed
  3. "Rate limit exceeded"

    • The server includes automatic retry logic
    • Wait a few minutes if you hit limits
    • Consider reducing request frequency

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Submit a pull request

License

MIT License - see LICENSE file for details

Acknowledgments

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选