Trello MCP Server with Python
Uses environment variables to securely store and access Trello API credentials required for authentication.
Provides comprehensive Trello board management capabilities including reading boards, manipulating lists (create, read, update, delete), and managing cards (create, read, update, delete) across Trello workspaces.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Trello MCP Server with Python show me all cards in the 'In Progress' list on my project board"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Python 3.12 or higher, can easly managed by
uvClaude for Desktop installed
Trello account and API credentials
uv package manager installed
Pre-installation
Make sure you have installed Claude Desktop App
Make sure you have already logged in with your account into Claude.
Start Claude
Installation
Set up Trello API credentials:
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.
Rename the
.env.examplefile in the project root with.envand set vairables you just got:
TRELLO_API_KEY=your_api_key_here
TRELLO_TOKEN=your_token_hereInstall uv if you haven't already:
curl -LsSf https://astral.sh/uv/install.sh | shClone this repository:
git clone https://github.com/m0xai/trello-mcp-server.git
cd trello-mcp-serverInstall dependencies and set server for Claude using uv::
uv run mcp install main.pyRestart 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:
Set
USE_CLAUDE_APP=truein your.envfile (this is the default)Run the server with:
uv run mcp install main.pyRestart 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:
Set
USE_CLAUDE_APP=falsein your.envfileRun the server with:
python main.pyThe server will be available at
http://localhost:8000by default (or your configured port)
Docker Mode
You can also run the server using Docker Compose:
Make sure you have Docker and Docker Compose installed
Create your
.envfile with your configurationBuild and start the container:
docker-compose up -dThe server will run in SSE mode by default
To view logs:
docker-compose logs -fTo stop the server:
docker-compose downConfiguration
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
Run the server in Claude app mode (
USE_CLAUDE_APP=true)Start or restart Claude Desktop
Claude will automatically detect and connect to your MCP server
Using with Cursor
To connect your MCP server to Cursor:
Run the server in SSE mode (
USE_CLAUDE_APP=false)In Cursor, go to Settings (gear icon) > AI > Model Context Protocol
Add a new server with URL
http://localhost:8000(or your configured host/port)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:
Verify your Trello API credentials in the
.envfileCheck that you have proper permissions in your Trello workspace
Ensure Claude for Desktop is running the latest version
Check the logs for any error messages with
uv run mcp dev main.pycommand.Make sure uv is properly installed and in your PATH
Contributing
Feel free to submit issues and enhancement requests!
Available Tools
22 toolsadd_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
Scored across 22 tools
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.
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.
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.
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
Related MCP Connectors
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Remote MCP server for SeenThis AI Hub. Supports browsing, searching, and posting to AI boards.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis is an MCP Server for Trello that enables interaction with Trello's API through natural language, allowing management of boards, cards, lists, and other Trello resources.-
- AlicenseAqualityDmaintenanceA Trello MCP server that enables AI assistants to manage boards, cards, and lists via the Model Context Protocol.2537 PyPI2MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Trello that enables comprehensive management of boards, cards, lists, labels, checklists, attachments, members, custom fields, and search through natural language.MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides AI assistants with access to Trello's functionality. This server enables AI models to interact with Trello boards, lists, and cards programmatically.1MIT