mcp server ts trello
Enables interaction with Trello boards, lists, and cards through Model Context Protocol (MCP) tools, leveraging TypeScript for type safety and asynchronous operations.
Enables interaction with Trello boards, lists, and cards through Model Context Protocol (MCP) tools, leveraging TypeScript for type safety and asynchronous operations.
A TypeScript implementation of a Model Context Protocol (MCP) server for Trello integration, providing tools for AI assistants to interact with Trello boards, lists, and cards.
# Install dependencies
make install
Create a .env
file in the root directory with your Trello credentials:
TRELLO_API_KEY=your_api_key
TRELLO_TOKEN=your_token
# Install dependencies
make install
# Build the project
make build
# Start the server
make start
# Clean build artifacts
make clean
# Run linter
make lint
Retrieves all Trello boards for the authenticated user.
// No input parameters required
Fetches all lists from a specified board.
{
"request": {
"board_id": string // ID of the board
}
}
Gets cards from a board or specific list.
{
"request": {
"board_id": string, // ID of the board
"list_id"?: string // Optional: ID of a specific list
}
}
Retrieves detailed information about a specific card.
{
"request": {
"card_id": string // ID of the card
}
}
The project uses TypeScript for type safety and better developer experience. The source code is organized as follows:
src/index.ts
- Main server entry pointsrc/trello-client.ts
- Trello API client implementationsrc/types.ts
- TypeScript type definitionsThe project uses TypeScript compiler for building:
# Build the project
make build
# The output will be in the build/ directory
The server implements comprehensive error handling for: - API authentication errors - Rate limiting - Network issues - Invalid request parameters
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)To use this MCP server with Cline, add the following configuration to your Cline MCP settings file (~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
):
{
"mcpServers": {
"trello-ts": {
"command": "node",
"args": ["/path/to/mcp-server-ts-trello/build/index.js"],
"env": {
"TRELLO_API_KEY": "your_api_key",
"TRELLO_TOKEN": "your_token"
}
}
}
}
After adding the configuration and restarting Cline, you can use the following MCP tools:
- get_boards
: List all Trello boards
- get_lists
: Get lists from a board
- get_cards
: Get cards from a board or list
- get_card_details
: Get detailed card information
ISC License - See LICENSE file for details