Trello MCP server

Integrates with Trello API to enable natural language management of boards, lists, and cards for streamlined project organization and task tracking without context switching.
Back to servers
Setup instructions
Provider
m0xai
Release date
Apr 03, 2025
Language
Python
Stats
32 stars

This MCP server enables seamless interaction with Trello boards, lists, and cards directly through Claude AI. It handles a wide range of Trello operations including reading board information, creating cards, managing lists, and handling checklists - all through natural language commands.

Installation

Prerequisites

  • Python 3.12 or higher
  • Claude for Desktop installed and running
  • Trello account and API credentials
  • uv package manager

Setting Up Trello API Credentials

  1. Go to Trello Apps Administration
  2. Create a new integration at New Power-Up or Integration
  3. Fill in your information (the Iframe connector URL can be left empty) and select the correct Workspace
  4. Click your app's icon and navigate to "API key" from the left sidebar
  5. Copy your "API key" and generate a Token by clicking the "token" link

Installing the Server

  1. Install uv if you haven't already:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. Clone the repository:

    git clone https://github.com/m0xai/trello-mcp-server.git
    cd trello-mcp-server
    
  3. Create a .env file using the example template:

    # Copy the example file
    cp .env.example .env
    
    # Edit the file to add your credentials
    TRELLO_API_KEY=your_api_key_here
    TRELLO_TOKEN=your_token_here
    
  4. Install dependencies and set up the server for Claude:

    uv run mcp install main.py
    
  5. Restart the Claude Desktop app

Server Modes

Claude App Mode (Default)

This mode integrates directly with the Claude Desktop application:

  1. Ensure USE_CLAUDE_APP=true in your .env file
  2. Run:
    uv run mcp install main.py
    
  3. Restart Claude Desktop

SSE Server Mode

For use with any MCP-compatible client:

  1. Set USE_CLAUDE_APP=false in your .env file
  2. Run:
    python main.py
    
  3. The server will be available at http://localhost:8000

Docker Mode

Run the server using Docker:

  1. Ensure Docker and Docker Compose are installed
  2. Configure your .env file
  3. Build and start the container:
    docker-compose up -d
    

Configuration Options

Configure the server using these 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 Server name Trello MCP Server
MCP_SERVER_HOST Host address (SSE mode) 0.0.0.0
MCP_SERVER_PORT Port (SSE mode) 8000
USE_CLAUDE_APP Use Claude app mode true

Client Integration

With Claude Desktop

  1. Run the server in Claude app mode
  2. Start or restart Claude Desktop
  3. Claude will automatically connect to your MCP server

With Cursor

  1. Run the server in SSE mode
  2. In Cursor, go to Settings > AI > Model Context Protocol
  3. Add a new server with URL http://localhost:8000

You can also add this to your Cursor settings JSON file:

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

Using the MCP Server

Once installed and connected to Claude, you can interact with your Trello boards using natural language commands such as:

  • "Show me all my boards"
  • "What lists are in board Project X?"
  • "Create a new card in list To-Do with title 'Finish documentation'"
  • "Update the description of card 'Backend refactoring'"
  • "Archive the list 'Completed tasks'"
  • "Add a checklist to card 'New feature implementation'"

Capabilities

The server supports various operations on Trello objects:

Board Operations

  • View all boards
  • Get specific board details

List Operations

  • View all lists in a board
  • Get list details
  • Create new lists
  • Update list names
  • Archive/delete lists

Card Operations

  • View all cards in a list
  • Get card details
  • Create new cards
  • Update card attributes
  • Delete cards

Checklist Operations

  • View checklists in a card
  • Create new checklists
  • Update checklists
  • Delete checklists
  • Manage checklist items

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 Desktop is running the latest version
  4. Check logs with uv run mcp dev main.py
  5. Verify uv is properly installed and in your PATH

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "trello" '{"command":"uv","args":["run","python","main.py"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "trello": {
            "command": "uv",
            "args": [
                "run",
                "python",
                "main.py"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "trello": {
            "command": "uv",
            "args": [
                "run",
                "python",
                "main.py"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later