@delorenj/mcp-server-trello 0.3.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,16 +1,25 @@
1
- [![MseeP.ai Security Assessment Badge](https://mseep.net/pr/delorenj-mcp-server-trello-badge.png)](https://mseep.ai/app/delorenj-mcp-server-trello)
2
-
3
1
  # MCP Server Trello
4
- [![smithery badge](https://smithery.ai/badge/@modelcontextprotocol/mcp-server-trello)](https://smithery.ai/server/@modelcontextprotocol/mcp-server-trello)
5
2
 
6
- A Model Context Protocol (MCP) server that provides tools for interacting with Trello boards. This server enables seamless integration with Trello's API while handling rate limiting, type safety, and error handling automatically.
3
+ [![Verified on MseeP](https://mseep.ai/badge.svg)](https://mseep.ai/app/27359682-7632-4ba7-981d-7dfecadf1c4b)
7
4
 
8
5
  <a href="https://glama.ai/mcp/servers/klqkamy7wt"><img width="380" height="200" src="https://glama.ai/mcp/servers/klqkamy7wt/badge" alt="Server Trello MCP server" /></a>
9
6
 
7
+ A Model Context Protocol (MCP) server that provides tools for interacting with Trello boards. This server enables seamless integration with Trello's API while handling rate limiting, type safety, and error handling automatically.
8
+
10
9
  ## Changelog
11
10
 
11
+ ### 1.0.0
12
+
13
+ - Fixed MCP protocol compatibility by removing all console output that interfered with JSON-RPC communication
14
+ - Improved pnpx support - now works seamlessly with `pnpx @delorenj/mcp-server-trello`
15
+ - Updated installation docs to feature pnpx as the primary installation method
16
+ - Added mise installation instructions for convenient tool management
17
+ - Production-ready release with stable API
18
+
12
19
  ### 0.3.0
13
20
 
21
+ - Added multi-board support - all methods now accept optional `boardId` parameter (thanks @blackoutnet!)
22
+ - `TRELLO_BOARD_ID` environment variable is now optional and serves as default board
14
23
  - Added board and workspace management capabilities:
15
24
  - `list_boards` - List all boards the user has access to
16
25
  - `set_active_board` - Set the active board for future operations
@@ -19,7 +28,8 @@ A Model Context Protocol (MCP) server that provides tools for interacting with T
19
28
  - `list_boards_in_workspace` - List all boards in a specific workspace
20
29
  - `get_active_board_info` - Get information about the currently active board
21
30
  - Added persistent configuration storage to remember active board/workspace
22
- - Improved error handling for all new operations
31
+ - Improved error handling with MCP-specific error types
32
+ - Full backward compatibility maintained
23
33
 
24
34
  ### 0.2.1
25
35
 
@@ -55,26 +65,64 @@ A Model Context Protocol (MCP) server that provides tools for interacting with T
55
65
 
56
66
  ## Installation
57
67
 
58
- ### Docker Installation (Recommended)
68
+ ### Quick Start with pnpx (Recommended)
59
69
 
60
- The easiest way to run the server is using Docker:
70
+ The easiest way to use the Trello MCP server is with `pnpx`, which doesn't require a global install:
61
71
 
62
- 1. Clone the repository:
63
- ```bash
64
- git clone https://github.com/delorenj/mcp-server-trello
65
- cd mcp-server-trello
72
+ ```json
73
+ {
74
+ "mcpServers": {
75
+ "trello": {
76
+ "command": "pnpx",
77
+ "args": ["@delorenj/mcp-server-trello"],
78
+ "env": {
79
+ "TRELLO_API_KEY": "your-api-key",
80
+ "TRELLO_TOKEN": "your-token"
81
+ }
82
+ }
83
+ }
84
+ }
66
85
  ```
67
86
 
68
- 2. Copy the environment template and fill in your Trello credentials:
87
+ Or if you're using mise:
88
+
89
+ ```json
90
+ {
91
+ "mcpServers": {
92
+ "trello": {
93
+ "command": "mise",
94
+ "args": ["x", "--", "pnpx", "@delorenj/mcp-server-trello"],
95
+ "env": {
96
+ "TRELLO_API_KEY": "your-api-key",
97
+ "TRELLO_TOKEN": "your-token"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ ```
103
+
104
+ #### Don't have pnpm?
105
+
106
+ The simplest way to get `pnpm` (and thus `pnpx`) is through [mise](https://mise.jdx.dev/):
107
+
69
108
  ```bash
70
- cp .env.template .env
109
+ # Install mise (if you don't have it)
110
+ curl https://mise.run | sh
111
+
112
+ # Install pnpm with mise
113
+ mise install pnpm
71
114
  ```
72
115
 
73
- 3. Build and run with Docker Compose:
116
+ ### Installing via npm
117
+
118
+ If you prefer using npm directly:
119
+
74
120
  ```bash
75
- docker compose up --build
121
+ npm install -g @delorenj/mcp-server-trello
76
122
  ```
77
123
 
124
+ Then use `mcp-server-trello` as the command in your MCP configuration.
125
+
78
126
  ### Installing via Smithery
79
127
 
80
128
  To install Trello Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@modelcontextprotocol/mcp-server-trello):
@@ -83,9 +131,27 @@ To install Trello Server for Claude Desktop automatically via [Smithery](https:/
83
131
  npx -y @smithery/cli install @modelcontextprotocol/mcp-server-trello --client claude
84
132
  ```
85
133
 
86
- ### Manual Installation
134
+ ### Docker Installation
135
+
136
+ For containerized environments:
137
+
138
+ 1. Clone the repository:
139
+
140
+ ```bash
141
+ git clone https://github.com/delorenj/mcp-server-trello
142
+ cd mcp-server-trello
143
+ ```
144
+
145
+ 2. Copy the environment template and fill in your Trello credentials:
146
+
147
+ ```bash
148
+ cp .env.template .env
149
+ ```
150
+
151
+ 3. Build and run with Docker Compose:
152
+
87
153
  ```bash
88
- npm install @delorenj/mcp-server-trello
154
+ docker compose up --build
89
155
  ```
90
156
 
91
157
  ## Configuration
@@ -99,7 +165,7 @@ The server can be configured using environment variables. Create a `.env` file i
99
165
  TRELLO_API_KEY=your-api-key
100
166
  TRELLO_TOKEN=your-token
101
167
 
102
- # Required: Initial board ID (can be changed later using set_active_board)
168
+ # Optional (Deprecated): Default board ID (can be changed later using set_active_board)
103
169
  TRELLO_BOARD_ID=your-board-id
104
170
 
105
171
  # Optional: Initial workspace ID (can be changed later using set_active_workspace)
@@ -107,25 +173,32 @@ TRELLO_WORKSPACE_ID=your-workspace-id
107
173
  ```
108
174
 
109
175
  You can get these values from:
110
- - API Key: https://trello.com/app-key
176
+
177
+ - API Key: <https://trello.com/app-key>
111
178
  - Token: Generate using your API key
112
- - Board ID: Found in the board URL (e.g., https://trello.com/b/BOARD_ID/board-name)
179
+ - Board ID (optional, deprecated): Found in the board URL (e.g., <https://trello.com/b/BOARD_ID/board-name>)
113
180
  - Workspace ID: Found in workspace settings or using `list_workspaces` tool
114
181
 
115
182
  ### Board and Workspace Management
116
183
 
117
- Starting with version 0.3.0, the MCP server supports dynamic board and workspace selection:
184
+ Starting with version 0.3.0, the MCP server supports multiple ways to work with boards:
185
+
186
+ 1. **Multi-board support**: All methods now accept an optional `boardId` parameter
187
+ - Omit `TRELLO_BOARD_ID` and provide `boardId` in each API call
188
+ - Set `TRELLO_BOARD_ID` as default and optionally override with `boardId` parameter
118
189
 
119
- - The `TRELLO_BOARD_ID` in your `.env` file is used as the initial board ID when the server starts
120
- - You can change the active board at any time using the `set_active_board` tool
121
- - The selected board persists between server restarts (stored in `~/.trello-mcp/config.json`)
122
- - Similarly, you can set and persist an active workspace using `set_active_workspace`
190
+ 2. **Dynamic board selection**: Use workspace management tools
191
+ - The `TRELLO_BOARD_ID` in your `.env` file is used as the initial/default board ID
192
+ - You can change the active board at any time using the `set_active_board` tool
193
+ - The selected board persists between server restarts (stored in `~/.trello-mcp/config.json`)
194
+ - Similarly, you can set and persist an active workspace using `set_active_workspace`
123
195
 
124
- This allows you to work with multiple boards and workspaces without restarting the server or changing environment variables.
196
+ This allows you to work with multiple boards and workspaces without restarting the server.
125
197
 
126
198
  #### Example Workflow
127
199
 
128
200
  1. Start by listing available boards:
201
+
129
202
  ```typescript
130
203
  {
131
204
  name: 'list_boards',
@@ -134,6 +207,7 @@ This allows you to work with multiple boards and workspaces without restarting t
134
207
  ```
135
208
 
136
209
  2. Set your active board:
210
+
137
211
  ```typescript
138
212
  {
139
213
  name: 'set_active_board',
@@ -144,6 +218,7 @@ This allows you to work with multiple boards and workspaces without restarting t
144
218
  ```
145
219
 
146
220
  3. List workspaces if needed:
221
+
147
222
  ```typescript
148
223
  {
149
224
  name: 'list_workspaces',
@@ -152,6 +227,7 @@ This allows you to work with multiple boards and workspaces without restarting t
152
227
  ```
153
228
 
154
229
  4. Set active workspace if needed:
230
+
155
231
  ```typescript
156
232
  {
157
233
  name: 'set_active_workspace',
@@ -162,6 +238,7 @@ This allows you to work with multiple boards and workspaces without restarting t
162
238
  ```
163
239
 
164
240
  5. Check current active board info:
241
+
165
242
  ```typescript
166
243
  {
167
244
  name: 'get_active_board_info',
@@ -179,31 +256,35 @@ Fetch all cards from a specific list.
179
256
  {
180
257
  name: 'get_cards_by_list_id',
181
258
  arguments: {
182
- listId: string // ID of the Trello list
259
+ boardId?: string, // Optional: ID of the board (uses default if not provided)
260
+ listId: string // ID of the Trello list
183
261
  }
184
262
  }
185
263
  ```
186
264
 
187
265
  ### get_lists
188
266
 
189
- Retrieve all lists from the currently active board.
267
+ Retrieve all lists from a board.
190
268
 
191
269
  ```typescript
192
270
  {
193
271
  name: 'get_lists',
194
- arguments: {}
272
+ arguments: {
273
+ boardId?: string // Optional: ID of the board (uses default if not provided)
274
+ }
195
275
  }
196
276
  ```
197
277
 
198
278
  ### get_recent_activity
199
279
 
200
- Fetch recent activity on the currently active board.
280
+ Fetch recent activity on a board.
201
281
 
202
282
  ```typescript
203
283
  {
204
284
  name: 'get_recent_activity',
205
285
  arguments: {
206
- limit?: number // Optional: Number of activities to fetch (default: 10)
286
+ boardId?: string, // Optional: ID of the board (uses default if not provided)
287
+ limit?: number // Optional: Number of activities to fetch (default: 10)
207
288
  }
208
289
  }
209
290
  ```
@@ -216,6 +297,7 @@ Add a new card to a specified list.
216
297
  {
217
298
  name: 'add_card_to_list',
218
299
  arguments: {
300
+ boardId?: string, // Optional: ID of the board (uses default if not provided)
219
301
  listId: string, // ID of the list to add the card to
220
302
  name: string, // Name of the card
221
303
  description?: string, // Optional: Description of the card
@@ -233,6 +315,7 @@ Update an existing card's details.
233
315
  {
234
316
  name: 'update_card_details',
235
317
  arguments: {
318
+ boardId?: string, // Optional: ID of the board (uses default if not provided)
236
319
  cardId: string, // ID of the card to update
237
320
  name?: string, // Optional: New name for the card
238
321
  description?: string, // Optional: New description
@@ -250,20 +333,22 @@ Send a card to the archive.
250
333
  {
251
334
  name: 'archive_card',
252
335
  arguments: {
253
- cardId: string // ID of the card to archive
336
+ boardId?: string, // Optional: ID of the board (uses default if not provided)
337
+ cardId: string // ID of the card to archive
254
338
  }
255
339
  }
256
340
  ```
257
341
 
258
342
  ### add_list_to_board
259
343
 
260
- Add a new list to the currently active board.
344
+ Add a new list to a board.
261
345
 
262
346
  ```typescript
263
347
  {
264
348
  name: 'add_list_to_board',
265
349
  arguments: {
266
- name: string // Name of the new list
350
+ boardId?: string, // Optional: ID of the board (uses default if not provided)
351
+ name: string // Name of the new list
267
352
  }
268
353
  }
269
354
  ```
@@ -276,7 +361,8 @@ Send a list to the archive.
276
361
  {
277
362
  name: 'archive_list',
278
363
  arguments: {
279
- listId: string // ID of the list to archive
364
+ boardId?: string, // Optional: ID of the board (uses default if not provided)
365
+ listId: string // ID of the list to archive
280
366
  }
281
367
  }
282
368
  ```
@@ -300,8 +386,9 @@ Move a card to a different list.
300
386
  {
301
387
  name: 'move_card',
302
388
  arguments: {
303
- cardId: string, // ID of the card to move
304
- listId: string // ID of the target list
389
+ boardId?: string, // Optional: ID of the target board (uses default if not provided)
390
+ cardId: string, // ID of the card to move
391
+ listId: string // ID of the target list
305
392
  }
306
393
  }
307
394
  ```
@@ -314,9 +401,10 @@ Attach an image to a card directly from a URL.
314
401
  {
315
402
  name: 'attach_image_to_card',
316
403
  arguments: {
317
- cardId: string, // ID of the card to attach the image to
404
+ boardId?: string, // Optional: ID of the board (uses default if not provided)
405
+ cardId: string, // ID of the card to attach the image to
318
406
  imageUrl: string, // URL of the image to attach
319
- name?: string // Optional: Name for the attachment (defaults to "Image Attachment")
407
+ name?: string // Optional: Name for the attachment (defaults to "Image Attachment")
320
408
  }
321
409
  }
322
410
  ```
@@ -393,6 +481,70 @@ Get information about the currently active board.
393
481
  }
394
482
  ```
395
483
 
484
+ ## Integration Examples
485
+
486
+ ### 🎨 Pairing with Ideogram MCP Server
487
+
488
+ The Trello MCP server pairs beautifully with [@flowluap/ideogram-mcp-server](https://github.com/flowluap/ideogram-mcp-server) for AI-powered visual content creation. Generate images with Ideogram and attach them directly to your Trello cards!
489
+
490
+ ![Ideogram + Trello Integration Example](https://ss.delo.sh/hosted/20250717-0619.png)
491
+
492
+ #### Example Workflow
493
+
494
+ 1. **Generate an image with Ideogram:**
495
+ ```typescript
496
+ // Using ideogram-mcp-server
497
+ {
498
+ name: 'generate_image',
499
+ arguments: {
500
+ prompt: "A futuristic dashboard design with neon accents",
501
+ aspect_ratio: "16:9"
502
+ }
503
+ }
504
+ // Returns: { image_url: "https://..." }
505
+ ```
506
+
507
+ 2. **Attach the generated image to a Trello card:**
508
+ ```typescript
509
+ // Using trello-mcp-server
510
+ {
511
+ name: 'attach_image_to_card',
512
+ arguments: {
513
+ cardId: "your-card-id",
514
+ imageUrl: "https://...", // URL from Ideogram
515
+ name: "Dashboard Mockup v1"
516
+ }
517
+ }
518
+ ```
519
+
520
+ #### Setting up both servers
521
+
522
+ Add both servers to your Claude Desktop configuration:
523
+
524
+ ```json
525
+ {
526
+ "mcpServers": {
527
+ "trello": {
528
+ "command": "pnpx",
529
+ "args": ["@delorenj/mcp-server-trello"],
530
+ "env": {
531
+ "TRELLO_API_KEY": "your-trello-api-key",
532
+ "TRELLO_TOKEN": "your-trello-token"
533
+ }
534
+ },
535
+ "ideogram": {
536
+ "command": "pnpx",
537
+ "args": ["@flowluap/ideogram-mcp-server"],
538
+ "env": {
539
+ "IDEOGRAM_API_KEY": "your-ideogram-api-key"
540
+ }
541
+ }
542
+ }
543
+ }
544
+ ```
545
+
546
+ Now you can seamlessly create visual content and organize it in Trello, all within Claude!
547
+
396
548
  ## Rate Limiting
397
549
 
398
550
  The server implements a token bucket algorithm for rate limiting to comply with Trello's API limits:
@@ -440,7 +592,6 @@ npm install
440
592
  npm run build
441
593
  ```
442
594
 
443
-
444
595
  ## Running evals
445
596
 
446
597
  The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentation can be found [here](https://www.mcpevals.io/docs).
@@ -448,6 +599,7 @@ The evals package loads an mcp client that then runs the index.ts file, so there
448
599
  ```bash
449
600
  OPENAI_API_KEY=your-key npx mcp-eval src/evals/evals.ts src/index.ts
450
601
  ```
602
+
451
603
  ## Contributing
452
604
 
453
605
  Contributions are welcome!