This project implements a Model Context Protocol (MCP) server that integrates with Trello using the Trello REST API. It allows MCP-compatible clients (like Cursor) to interact with Trello boards, cards, and labels.
The server provides the following MCP tools:
listBoards– Get all boards for the authenticated user.createCard– Create a new card in a specified Trello list.addComment– Add a comment to a specific Trello card.moveCard– Move a card to a different list.deleteCard– Delete a Trello card.addLabel– Add a label to a Trello card.
- Node.js (v18+ recommended)
- Cursor Editor with MCP enabled
- Trello API Key and Token (Get them here)
-
Clone the repository:
git clone https://github.com/your-username/trello-mcp-server.git cd trello-mcp-server -
Install dependencies:
npm install
Add this to your Cursor MCP config file (~/.cursor/mcp.json):
{
"servers": {
"trello": {
"command": "node",
"args": ["/absolute/path/to/trello-mcp/index.js"],
"env": {
"TRELLO_KEY": "your_trello_api_key",
"TRELLO_TOKEN": "your_trello_token"
}
}
}
}Replace /absolute/path/to/trello-mcp/index.js with the actual path to your index.js file.
Once added, restart Cursor and you can use the tools:
-
List all boards:
listBoards -
Create a card:
createCard { "listId": "your_list_id", "name": "New Card from Cursor" } -
Add a comment:
addComment { "cardId": "your_card_id", "text": "This is a test comment" }
- Run:
This returns all your boards and their IDs.
listBoards - Use Trello API or MCP tools to get lists inside a board.
- When creating a card, use the
listIdfrom the list you want.
Description: List all Trello boards. Input: None Output: JSON array of boards.
{
"listId": "string",
"name": "string"
}{
"cardId": "string",
"text": "string"
}{
"cardId": "string",
"listId": "string"
}{
"cardId": "string"
}{
"cardId": "string",
"color": "string",
"name": "string (optional)"
}