Public
Custom MCP server connecting Claude to Trello API
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
A custom Model Context Protocol server that connects Claude to the Trello API. Deployed on Val Town as an HTTP endpoint using the Streamable HTTP transport.
-
Go to https://trello.com/power-ups/admin and create a Power-Up (or use the API key section)
-
Copy your API Key
-
Generate a token by visiting this URL in your browser (replace
YOUR_API_KEY):https://trello.com/1/authorize?expiration=30days&name=TrelloMCP&scope=read,write&response_type=token&key=YOUR_API_KEY
Add these two secrets to the val:
TRELLO_API_KEYβ your Trello API keyTRELLO_TOKENβ your Trello token
π Add TRELLO_API_KEY here: https://www.val.town/x/jc_marketing/trello-mcp/environment-variables?key=TRELLO_API_KEY π Add TRELLO_TOKEN here: https://www.val.town/x/jc_marketing/trello-mcp/environment-variables?key=TRELLO_TOKEN
{ "mcpServers": { "trello": { "url": "https://trello-mcp.val.run" } } }
Add the MCP server URL to your Claude configuration:
https://trello-mcp.val.run
| Tool | Description |
|---|---|
get_boards | List all Trello boards |
get_lists | Get lists (columns) on a board |
get_cards | Get cards on a board or in a list |
get_card | Get details of a specific card |
create_card | Create a new card |
update_card | Update card name, description, due date, or move to another list |
archive_card | Archive (close) a card |
add_comment | Add a comment to a card |
get_comments | Get all comments on a card |
get_labels | Get labels on a board |
add_label | Add a label to a card |
get_my_info | Get authenticated user info |
Claude ββPOST JSON-RPCβββΊ main.ts (MCP HTTP handler)
β
βββ tools.ts (12 tool definitions)
β β
β βββ trello.ts (Trello REST API client)
β β
β βββ api.trello.com/2
β
βββ JSON-RPC 2.0 response
main.tsβ HTTP endpoint implementing MCP Streamable HTTP transport (JSON-RPC 2.0)trello.tsβ Trello REST API wrapper with auth via environment variablestools.tsβ 12 MCP tool definitions with JSON Schema input validation
Once connected, you can ask Claude things like:
- "Show me all my Trello boards"
- "Create a card called 'Review PR' in the To Do list on my Sprint board"
- "Move the 'Bug fix' card to the Done list"
- "Add a comment to the deployment card saying 'Deployed to staging'"
- "What labels are on my Marketing board?"