by lioarce01
A Model Context Protocol (MCP) server that connects Trello with AI assistants like Claude Desktop, GitHub Copilot Chat, and other MCP-compatible clients.
Trello MCP Server is a Model Context Protocol (MCP) server that bridges Trello with various AI assistants, including Claude Desktop and GitHub Copilot Chat. It allows users to interact with their Trello boards using natural language prompts through these AI clients.
Prerequisites:
Installation:
Local Installation:
npm install
).npm run build
).Docker Installation:
docker build -t trello-mcp-server .
).Configuration:
After installation, configure your AI assistant (e.g., Claude Desktop, VS Code with GitHub Copilot Chat) by adding the Trello MCP Server to its MCP server settings. This involves specifying the command to run the server (node for local, docker for containerized) and providing your Trello API Key and Token as environment variables.
Interaction:
Once configured, you can interact with your Trello boards using natural language prompts through your AI assistant. Examples include:
list_boards
: List all open Trello boards.read_board
: Read lists and cards from a specific board.create_list
: Create a list.create_card
: Create a new card in a specific list.move_card
: Move a card to a different list.add_comment
: Add a comment to a card.archive_card
: Archive a card.archive_list
: Archive a list.delete_board
: Delete a board.update_list_name
: Update a list name.update_card_name
: Update a card name.Q: How do I get my Trello API credentials?
A: Go to https://trello.com/app-key
to get your API Key and generate a Token.
Q: What should I do if the server is not connecting? A: Check your API Key and Token, verify the file path in your MCP configuration, ensure you've built the project, and try running the server independently first. Also, restart your MCP client after configuration changes.
Q: I'm encountering Docker-specific issues. What should I check? A: Ensure you've built the Docker image, that API key and token are passed correctly as arguments, and that Docker has the necessary permissions.
Q: Why am I getting an "Invalid Credentials" error? A: Double-check your Trello API Key and Token, ensure the token has the necessary permissions, and consider regenerating your token if it's expired.
Q: My tools are not working. What could be the problem? A: Verify board/card/list IDs, check write permissions to the Trello board, and look at console logs for detailed error messages.
Q: Is it safe to commit my API credentials to version control?
A: No, never commit your API credentials to version control. Store them securely, use .env
files, and add them to .gitignore
.
A Model Context Protocol (MCP) server that connects Trello with AI assistants like Claude Desktop, GitHub Copilot Chat, and other MCP-compatible clients.
git clone https://github.com/lioarce01/trello-mcp-server.git
cd trello-mcp-server
npm install
npm run build
git clone https://github.com/lioarce01/trello-mcp-server.git
cd trello-mcp-server
docker build -t trello-mcp-server .
Get your API Key:
Get your Token:
Add the server configuration to your Claude Desktop config file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
{
"mcp": {
"servers": {
"trello-mcp": {
"command": "node",
"args": ["absolute/path/to/the/project/dist/index.js"],
"env": {
"TRELLO_API_KEY": "your_api_key",
"TRELLO_TOKEN": "your_token",
"TRELLO_BASE_URL": "https://api.trello.com/1"
}
}
}
}
}
For Docker deployment, add this configuration:
{
"mcp": {
"servers": {
"trello-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"TRELLO_API_KEY=your_api_key",
"-e",
"TRELLO_TOKEN=your_token",
"-e",
"TRELLO_BASE_URL=https://api.trello.com/1",
"trello-mcp-server"
]
}
}
}
}
Add to your VS Code settings.json:
{
"mcp": {
"servers": {
"trello-mcp": {
"command": "node",
"args": ["absolute/path/to/the/project/dist/index.js"],
"env": {
"TRELLO_API_KEY": "your_api_key",
"TRELLO_TOKEN": "your_token",
"TRELLO_BASE_URL": "https://api.trello.com/1"
}
}
}
}
}
{
"mcp": {
"servers": {
"trello-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"TRELLO_API_KEY=your_api_key",
"-e",
"TRELLO_TOKEN=your_token",
"-e",
"TRELLO_BASE_URL=https://api.trello.com/1",
"trello-mcp-server"
]
}
}
}
}
Important:
absolute/path/to/the/project/dist/index.js
with the actual absolute path to your compiled server file (local installation)YOUR_TRELLO_API_KEY
and YOUR_TRELLO_TOKEN
with your actual Trello credentials# Build the image
docker build -t trello-mcp-server .
# Run with API key and token as arguments
docker run --rm -i --env-file .env trello-mcp-server
To test if your server works correctly:
npm run build
node dist/index.js
docker build -t trello-mcp-server .
docker run --rm -i --env-file .env trello-mcp-server
MCP server connected and ready.
Note: The server will wait for MCP client connections. To exit, press Ctrl+C
.
Once configured, you can interact with your Trello boards through natural language:
Show me all my Trello boards
What cards are in my "Project Management" board?
Create a new card called "Review documentation" in the "To Do" list
Move the "Bug fix" card to the "In Progress" list
Add a comment to the card saying "This needs urgent attention"
Archive the completed card "Setup database"
Tool | Description | Parameters |
---|---|---|
list_boards |
List all open Trello boards | None |
read_board |
Read lists and cards from a specific board | boardId |
create_list |
Create a list | boardId , name |
create_card |
Create a new card in a specific list | listId , name , desc (optional) |
move_card |
Move a card to a different list | cardId , listId |
add_comment |
Add a comment to a card | cardId , text |
archive_card |
Archive a card | cardId |
archive_list |
Archive a list | listId |
delete_board |
Delete a board | boardId |
update_list_name |
Update a list name | listId , name |
update_card_name |
Update a card name | cardId , name |
The server exposes your Trello boards as MCP resources that can be read by AI assistants:
board:{boardId}
npm run build
# Build Docker image
docker build -t trello-mcp-server .
To run the server directly (for testing):
# With npm
npm run build
node dist/index.js
# With pnpm
pnpm run build
node dist/index.js
# Run with docker (pass credentials as arguments)
docker run --rm -i --env-file .env trello-mcp-server
You can also create a development script in your package.json
:
{
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsx ./src/index.ts",
"docker:build": "docker build -t trello-mcp-server .",
"docker:run": "docker run --rm -i --env-file .env trello-mcp-server"
}
}
npm run build
or docker build
before testingdocker build -t trello-mcp-server .
.env
files and add them to .gitignore
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ for the MCP community
Reviews feature coming soon
Stay tuned for community discussions and feedback