Skip to main content
Glama
Trello MCP Server with Python

Trello MCP Server with Python

by m0xai

Trello MCP Server

A powerful MCP server for interacting with Trello boards, lists, and cards via AI Hosts.

Table of Contents

Related MCP server: fastmcp-trello

Prerequisites

  1. Python 3.12 or higher, can easly managed by uv

  2. Claude for Desktop installed

  3. Trello account and API credentials

  4. uv package manager installed

Pre-installation

  1. Make sure you have installed Claude Desktop App

  2. Make sure you have already logged in with your account into Claude.

  3. Start Claude

Installation

  1. Set up Trello API credentials:

    • Go to Trello Apps Administration

    • Create a new integration at New Power-Up or Integration

    • Fill in your information (you can leave the Iframe connector URL empty) and make sure to select the correct Workspace

    • Click your app's icon and navigate to "API key" from left sidebar.

    • Copy your "API key" and on the right side: "you can manually generate a Token." click the word token to get your Trello Token.

  2. Rename the .env.example file in the project root with .env and set vairables you just got:

TRELLO_API_KEY=your_api_key_here
TRELLO_TOKEN=your_token_here
  1. Install uv if you haven't already:

curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Clone this repository:

git clone https://github.com/m0xai/trello-mcp-server.git
cd trello-mcp-server
  1. Install dependencies and set server for Claude using uv::

uv run mcp install main.py
  1. Restart Claude Desktop app

Server Modes

This MCP server can run in two different modes:

Claude App Mode

This mode integrates directly with the Claude Desktop application:

  1. Set USE_CLAUDE_APP=true in your .env file (this is the default)

  2. Run the server with:

uv run mcp install main.py
  1. Restart the Claude Desktop application

SSE Server Mode

This mode runs as a standalone SSE server that can be used with any MCP-compatible client, including Cursor:

  1. Set USE_CLAUDE_APP=false in your .env file

  2. Run the server with:

python main.py
  1. The server will be available at http://localhost:8000 by default (or your configured port)

Docker Mode

You can also run the server using Docker Compose:

  1. Make sure you have Docker and Docker Compose installed

  2. Create your .env file with your configuration

  3. Build and start the container:

docker-compose up -d
  1. The server will run in SSE mode by default

  2. To view logs:

docker-compose logs -f
  1. To stop the server:

docker-compose down

Configuration

The server can be configured using environment variables in the .env file:

Variable

Description

Default

TRELLO_API_KEY

Your Trello API key

Required

TRELLO_TOKEN

Your Trello API token

Required

MCP_SERVER_NAME

The name of the MCP server

Trello MCP Server

MCP_SERVER_HOST

Host address for SSE mode

0.0.0.0

MCP_SERVER_PORT

Port for SSE mode

8000

USE_CLAUDE_APP

Whether to use Claude app mode

true

You can customize the server by editing these values in your .env file.

Client Integration

Using with Claude Desktop

  1. Run the server in Claude app mode (USE_CLAUDE_APP=true)

  2. Start or restart Claude Desktop

  3. Claude will automatically detect and connect to your MCP server

Using with Cursor

To connect your MCP server to Cursor:

  1. Run the server in SSE mode (USE_CLAUDE_APP=false)

  2. In Cursor, go to Settings (gear icon) > AI > Model Context Protocol

  3. Add a new server with URL http://localhost:8000 (or your configured host/port)

  4. Select the server when using Cursor's AI features

You can also add this configuration to your Cursor settings JSON file (typically at ~/.cursor/mcp.json):

{
  "mcpServers": {
    "trello": {
      "url": "http://localhost:8000/sse"
    }
  }
}

Using with Other MCP Clients

For other MCP-compatible clients, point them to the SSE endpoint at http://localhost:8000.

Minimal Client Example

Here's a minimal Python example to connect to the SSE endpoint:

import asyncio
import httpx

async def connect_to_mcp_server():
    url = "http://localhost:8000/sse"
    headers = {"Accept": "text/event-stream"}
    
    async with httpx.AsyncClient() as client:
        async with client.stream("GET", url, headers=headers) as response:
            # Get the session ID from the first SSE message
            session_id = None
            async for line in response.aiter_lines():
                if line.startswith("data:"):
                    data = line[5:].strip()
                    if "session_id=" in data and not session_id:
                        session_id = data.split("session_id=")[1]
                        
                        # Send a message using the session ID
                        message_url = f"http://localhost:8000/messages/?session_id={session_id}"
                        message = {
                            "role": "user",
                            "content": {
                                "type": "text",
                                "text": "Show me my Trello boards"
                            }
                        }
                        await client.post(message_url, json=message)

if __name__ == "__main__":
    asyncio.run(connect_to_mcp_server())

Capabilities

Operation

Board

List

Card

Checklist

Checklist Item

Read

✅

✅

✅

✅

✅

Write

❌

✅

✅

✅

✅

Update

❌

✅

✅

✅

✅

Delete

❌

✅

✅

✅

✅

Detailed Capabilities

Board Operations

  • ✅ Read all boards

  • ✅ Read specific board details

List Operations

  • ✅ Read all lists in a board

  • ✅ Read specific list details

  • ✅ Create new lists

  • ✅ Update list name

  • ✅ Archive (delete) lists

Card Operations

  • ✅ Read all cards in a list

  • ✅ Read specific card details

  • ✅ Create new cards

  • ✅ Update card attributes

  • ✅ Delete cards

Checklist Operations

  • ✅ Get a specific checklist

  • ✅ List all checklists in a card

  • ✅ Create a new checklist

  • ✅ Update a checklist

  • ✅ Delete a checklist

  • ✅ Add checkitem to checklist

  • ✅ Update checkitem

  • ✅ Delete checkitem

Usage

Once installed, you can interact with your Trello boards through Claude. Here are some example queries:

  • "Show me all my boards"

  • "What lists are in board [board_name]?"

  • "Create a new card in list [list_name] with title [title]"

  • "Update the description of card [card_name]"

  • "Archive the list [list_name]"

Here are my example usages:

Troubleshooting

If you encounter issues:

  1. Verify your Trello API credentials in the .env file

  2. Check that you have proper permissions in your Trello workspace

  3. Ensure Claude for Desktop is running the latest version

  4. Check the logs for any error messages with uv run mcp dev main.py command.

  5. Make sure uv is properly installed and in your PATH

Contributing

Feel free to submit issues and enhancement requests!

Available Tools

22 tools
add_checkitemC
Add a new item to a checklist.

Args:
    checklist_id (str): The ID of the checklist to add the item to
    name (str): The name of the checkitem
    checked (bool): Whether the item is checked
    pos (Optional[str]): The position of the item

Returns:
    Dict: The created checkitem data

Inputs: checklist_id (required), name (required), checked, pos.

create_board_labelC

Create label for a specific board.

Args:
    board_id (str): The ID of the board whose to add label to.
    name (str): The name of the label.
    color (str): The color of the label.

Returns:
    TrelloLabel: A label object for the board.

Inputs: board_id (required), payload (required).

create_cardC

Creates a new card in a given list.

Args:
    list_id (str): The ID of the list to create the card in.
    name (str): The name of the new card.
    desc (str, optional): The description of the new card. Defaults to None.

Returns:
    TrelloCard: The newly created card object.

Inputs: payload (required).

create_checklistB
Create a new checklist on a card.

Args:
    card_id (str): The ID of the card to create the checklist on
    name (str): The name of the checklist
    pos (Optional[str]): The position of the checklist (top, bottom, or a positive number)

Returns:
    Dict: The created checklist data

Inputs: card_id (required), name (required), pos.

create_listB

Creates a new list on a given board.

Args:
    board_id (str): The ID of the board to create the list in.
    name (str): The name of the new list.
    pos (str, optional): The position of the new list. Can be "top" or "bottom". Defaults to "bottom".

Returns:
    TrelloList: The newly created list object.

Inputs: board_id (required), name (required), pos.

delete_cardC

Deletes a card.

Args:
    card_id (str): The ID of the card to delete.

Returns:
    dict: The response from the delete operation.

Inputs: card_id (required).

delete_checkitemB
Delete a checkitem from a checklist.

Args:
    checklist_id (str): The ID of the checklist containing the item
    checkitem_id (str): The ID of the checkitem to delete

Returns:
    Dict: The response from the delete operation

Inputs: checklist_id (required), checkitem_id (required).

delete_checklistB
Delete a checklist.

Args:
    checklist_id (str): The ID of the checklist to delete

Returns:
    Dict: The response from the delete operation

Inputs: checklist_id (required).

delete_listB

Archives a list.

Args:
    list_id (str): The ID of the list to close.

Returns:
    TrelloList: The archived list object.

Inputs: list_id (required).

get_boardA

Retrieves a specific board by its ID.

Args:
    board_id (str): The ID of the board to retrieve.

Returns:
    TrelloBoard: The board object containing board details.

Inputs: board_id (required).

get_board_labelsA

Retrieves all labels for a specific board.

Args:
    board_id (str): The ID of the board whose labels to retrieve.

Returns:
    List[TrelloLabel]: A list of label objects for the board.

Inputs: board_id (required).

get_boardsA

Retrieves all boards for the authenticated user.

Returns:
    List[TrelloBoard]: A list of board objects.

Inputs: no named parameters.

get_cardA

Retrieves a specific card by its ID.

Args:
    card_id (str): The ID of the card to retrieve.

Returns:
    TrelloCard: The card object containing card details.

Inputs: card_id (required).

get_card_checklistsA
Get all checklists for a specific card.

Args:
    card_id (str): The ID of the card to get checklists for

Returns:
    List[Dict]: List of checklists on the card

Inputs: card_id (required).

get_cardsB

Retrieves all cards in a given list.

Args:
    list_id (str): The ID of the list whose cards to retrieve.

Returns:
    List[TrelloCard]: A list of card objects.

Inputs: list_id (required).

get_checklistB
Get a specific checklist by ID.

Args:
    checklist_id (str): The ID of the checklist to retrieve

Returns:
    Dict: The checklist data

Inputs: checklist_id (required).

get_listB

Retrieves a specific list by its ID.

Args:
    list_id (str): The ID of the list to retrieve.

Returns:
    TrelloList: The list object containing list details.

Inputs: list_id (required).

get_listsA

Retrieves all lists on a given board.

Args:
    board_id (str): The ID of the board whose lists to retrieve.

Returns:
    List[TrelloList]: A list of list objects.

Inputs: board_id (required).

update_cardC

Updates a card's attributes.

Args:
    card_id (str): The ID of the card to update.
    **kwargs: Keyword arguments representing the attributes to update on the card.

Returns:
    TrelloCard: The updated card object.

Inputs: card_id (required), payload (required).

update_checkitemB
Update a checkitem in a checklist.

Args:
    checklist_id (str): The ID of the checklist containing the item
    checkitem_id (str): The ID of the checkitem to update
    name (Optional[str]): New name for the checkitem
    checked (Optional[bool]): New checked state
    pos (Optional[str]): New position for the item

Returns:
    Dict: The updated checkitem data

Inputs: checklist_id (required), checkitem_id (required), name, checked, +1 more.

update_checklistC
Update an existing checklist.

Args:
    checklist_id (str): The ID of the checklist to update
    name (Optional[str]): New name for the checklist
    pos (Optional[str]): New position for the checklist

Returns:
    Dict: The updated checklist data

Inputs: checklist_id (required), name, pos.

update_listB

Updates the name of a list.

Args:
    list_id (str): The ID of the list to update.
    name (str): The new name for the list.

Returns:
    TrelloList: The updated list object.

Inputs: list_id (required), name (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 22 tools

    Disambiguation5/5

    Each tool has a distinct purpose targeting specific Trello resources and actions, with clear boundaries (e.g., add_checkitem vs. update_checkitem, create_card vs. get_card). No tools appear to overlap or cause confusion in selection.

    Naming Consistency5/5

    All tools follow a consistent verb_noun naming pattern (e.g., create_board_label, get_card_checklists, update_list). The naming is uniform and predictable across all 22 tools, enhancing readability and usability.

    Tool Count4/5

    With 22 tools, the count is slightly high but reasonable for a comprehensive Trello integration covering boards, lists, cards, checklists, and labels. It includes CRUD operations for each resource, though it may feel heavy compared to simpler servers.

    Completeness5/5

    The tool set provides complete CRUD/lifecycle coverage for Trello's core domain, including boards, lists, cards, checklists, and labels. There are no obvious gaps, and agents can perform all essential operations without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers