Set up trello-mcp
This is the one canonical setup document. A single fetch of it is enough to install, register, verify, update, roll back and remove trello-mcp. Variables and credential details live in configuration; tool behavior lives in tools.
For an AI agent
Follow these steps in order. Resolve every path on the machine you are setting up; do not copy a username or path from an example.
- Install the binary (Install section) and resolve its absolute executable path.
- Register it with the user's client (Clients section). Prefer user scope; use project scope only when asked.
- Substitute the concrete absolute path into the installer's auth command, then stop and ask the human to run it themselves in a private terminal. Do not rely on PATH, shell variables, the working directory or a new shell. Browser consent and API-key creation are human-only.
- Never run bare
trello-mcp author the absolute-path form in a terminal you capture, and never ask for, read, print or paste an API key, token, authorization link or credential file. - Ask the human to use the individual trello Reconnect action in
/mcpor fully restart the client. Until a fresh configured server starts, onlyserver_healthis exposed. - Verify local configuration with
server_health, then actual Trello access withworkspace_find {}(Verify section). CLI users may also use the printed absolute-path status command; it does not describe Desktop extension credentials.
The same request as one paste-to-agent line:
Set up trello-mcp by following https://raw.githubusercontent.com/avhn/trello-mcp/main/docs/setup.md; ask me to run its printed absolute-path auth command myself in a private terminal, then reconnect. Never capture authentication output.
Install
Linux, macOS, or Windows with a POSIX shell such as Git Bash. The installer verifies the SHA-256 checksum and installs to ~/.local/bin (change it with INSTALL_DIR):
curl -fsSL https://raw.githubusercontent.com/avhn/trello-mcp/main/install.sh | sh
Windows PowerShell 5.1 or PowerShell 7 installs trello-mcp.exe to %LOCALAPPDATA%\Programs\trello-mcp and adds only that directory to the user PATH:
irm https://raw.githubusercontent.com/avhn/trello-mcp/main/install.ps1 | iex
- Supported binaries: Linux, macOS and Windows on amd64 and arm64. The POSIX installer on Windows supports amd64 only; use PowerShell for Windows ARM64.
- The POSIX installer needs
curl,tar(orunzipfor Windows archives) andsha256sumorshasum. - Both installers fail closed. A missing release, missing asset, unsupported platform or failed checksum stops the install; nothing is built from source and a pinned version never becomes latest.
- Both accept
--helpand-h(PowerShell also-Help), and reject unknown arguments, before doing any work.
irm | iex cannot pass arguments; for PowerShell help run:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/avhn/trello-mcp/main/install.ps1))) -Help
Neither installer reads credentials or edits client configuration. Building from source is a separate manual choice and needs Go 1.26 or newer. It installs to GOBIN, or the first GOPATH entry plus bin:
go install github.com/avhn/trello-mcp/cmd/trello-mcp@latest
For source installs on Linux/macOS, resolve the executable from Go's install settings, not PATH:
trello_mcp="$(go env GOBIN)"; if [ -z "$trello_mcp" ]; then trello_mcp="$(go env GOPATH)"; trello_mcp="${trello_mcp%%:*}/bin"; fi; trello_mcp="$trello_mcp/trello-mcp"; printf '%s\n' "$trello_mcp"
"$trello_mcp" --version
"$trello_mcp" auth status
For Windows PowerShell source installs:
$bin = go env GOBIN; if (-not $bin) { $gopath = (go env GOPATH) -split [IO.Path]::PathSeparator; $bin = Join-Path $gopath[0] 'bin' }; $trelloMcp = Join-Path $bin 'trello-mcp.exe'; $trelloMcp
& $trelloMcp --version
& $trelloMcp auth status
Substitute the printed absolute path into client configuration, not the shell variable or a different PATH executable. Source users run human-only auth privately with the same resolved executable, and use it for lifecycle commands below. Installer users do not need Go and should prefer the installer's printed commands.
The installer prints quoted, concrete absolute-path commands for auth (optionally --read-only), status, logout, version and Claude Code registration; PowerShell prefixes the auth, status, logout and version commands with &, passes the quoted path as an argument in the registration line, and doubles every single-quote character in the path (including typographic quotes). Hand them to the human as printed. Use the printed path if the command is not on PATH. In the snippets below, replace /absolute/path/to/trello-mcp with that path. In JSON and TOML double every backslash on Windows, for example C:\\Users\\you\\AppData\\Local\\Programs\\trello-mcp\\trello-mcp.exe.
Connect Trello
This step belongs to the human, in a private terminal that no agent captures. Run the installer's absolute-path command so it does not depend on PATH:
"/absolute/path/to/trello-mcp" auth
- Create an API key at Trello Power-Up administration when prompted, approve the Trello authorization link, then paste the token at the hidden prompt. The link contains the API key, so keep it private.
- Claude Desktop users who install the extension enter the key and token in the extension settings instead and do not run this command (see the Claude Desktop extension section).
- Write access is the default. Use the printed absolute-path auth command with
--read-onlyfor a read-only token. - Credentials are validated and saved to
~/.secrets/.trello-mcp.secret(%USERPROFILE%\.secrets\.trello-mcp.secreton Windows). Client snippets never need credentials. - Use the individual trello Reconnect action in
/mcp, or fully quit and restart the client, afterward. Until a fresh configured server starts it exposes onlyserver_health.
Variables, precedence, permissions and troubleshooting are in configuration.
Clients
| Client | Platform and scope | Where | Reload |
|---|---|---|---|
| Claude Code | Linux, macOS, Windows; local, project, user | claude mcp add | /mcp |
| Claude Desktop | macOS, Windows, Linux beta; user | claude_desktop_config.json | Quit and reopen |
| Codex CLI and desktop | Linux, macOS, Windows; user, trusted project | ~/.codex/config.toml | /mcp, or Restart |
| ChatGPT desktop | Local MCP only; user | ~/.codex/config.toml | Restart |
| OpenCode | Linux, macOS, Windows; user, project | opencode.json | Restart |
| Cursor | Linux, macOS, Windows; user, project | mcp.json | MCP Logs panel |
| VS Code | Linux, macOS, Windows; personal, workspace | ~/.copilot/mcp-config.json | MCP: List Servers |
Every snippet uses saved credentials and leaves writes enabled. Merge entries into existing files instead of overwriting them. ChatGPT in a browser cannot start a local stdio server.
Claude Code
User scope makes the server available in all your projects. Replace the path first:
claude mcp add --scope user --transport stdio trello -- "/absolute/path/to/trello-mcp"
On Windows quote the real path, for example "C:\Users\you\AppData\Local\Programs\trello-mcp\trello-mcp.exe". Use --scope local (this project only, the default) or --scope project (shared through .mcp.json) only when you want that narrower scope. Check with claude mcp list and /mcp; after authentication use the trello server's individual Reconnect action in /mcp, which refreshes its tool list; /mcp reconnect all retries failed or auth-needed servers, and a full restart also works.
Claude Desktop
This is the CLI binary path; the packaged extension is described in the next section. Merge into the user configuration file, then quit and reopen Claude Desktop:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux: Anthropic offers a beta Linux build for Ubuntu 22.04+ and Debian 12+ on x64 and arm64. Use Settings > Developer > Edit Config; no path is assumed.
{
"mcpServers": {
"trello": {
"command": "/absolute/path/to/trello-mcp"
}
}
}
Codex CLI and desktop
Codex CLI, the Codex desktop app and the IDE extension read the same user file, ~/.codex/config.toml. A trusted project may also use .codex/config.toml. Merge this table and restart Codex:
[mcp_servers.trello]
command = "/absolute/path/to/trello-mcp"
Or run:
codex mcp add trello -- "/absolute/path/to/trello-mcp"
Check with codex mcp list or /mcp.
ChatGPT desktop
The ChatGPT desktop app shares ~/.codex/config.toml with Codex for local MCP servers, so the Codex entry above is the only configuration. Restart the app after saving. Alternatively use the app's MCP settings: add a STDIO server with the same command.
OpenCode
Use ~/.config/opencode/opencode.json for all projects, or opencode.json in a project root. Merge this entry and restart OpenCode:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"trello": {
"type": "local",
"command": ["/absolute/path/to/trello-mcp"],
"enabled": true
}
}
}
Cursor
Use ~/.cursor/mcp.json for all projects, or .cursor/mcp.json in a project. Merge this entry, then confirm the server in the MCP Logs output panel:
{
"mcpServers": {
"trello": {
"command": "/absolute/path/to/trello-mcp"
}
}
}
VS Code
Prefer the personal file ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json when that variable is set); it keeps a machine-specific path out of repositories. Merge, do not overwrite:
{"mcpServers":{"trello":{"command":"/absolute/path/to/trello-mcp"}}}
- Copilot CLI shares this file when it uses the same configuration home.
- A workspace-root
.mcp.jsonuses the same shape for intentionally shared configuration. Claude Code also reads it, so if trello is already registered throughclaude mcp add, check for duplicates instead of adding a second entry. - Existing
.vscode/mcp.jsonand user-profile files (MCP: Open User Configuration) remain supported for compatibility, with the olderserversroot; keep working entries.
Use MCP: List Servers to start, stop, restart or show output.
Claude Desktop extension
Download trello-mcp_desktop.mcpb from the latest release; check SHA-256 against that release's checksums.txt before installing. It supports macOS and Windows amd64; Windows on Arm is not claimed. Linux Desktop is itself a beta (CPU-specific bundles).
- Install via Settings > Extensions > Advanced settings > Extension Developer > Install Extension.
- Create your personal API key at Trello Power-Up administration.
- In your browser, replace
YOUR_KEYbelow with that key, open the URL and approve access; for read-only, replacescope=read,writewithscope=read. - Paste key and token into masked fields; save and restart the extension, then ask Claude to run
workspace_find {}.
https://trello.com/1/authorize?key=YOUR_KEY&scope=read,write&expiration=30days&name=trello-mcp&response_type=token
Never share your key, token or personalized authorization URL in chat, logs or agent-captured commands. No shared application key is provided.
Tokens expire after 30 days: repeat step 3 for a new token, replace the token in settings and restart. Uninstalling does not revoke tokens; revoke them in your Trello account's authorized applications.
Read-only and workspace settings restrict this server, not token permissions. See configuration and Verify below.
Optional read-oriented profile
This profile registers ten tools: discovery, reading, local board selection and diagnostics. It omits every write tool. board_use still changes the local default board, so it is not wholly read-only. It is measured in the README benchmark.
TRELLO_TOOLS=workspace_find,board_find,board_use,list_find,card_find,card_get,comment_find,checklist_get,checklist_items,server_health
Place the variable in the client's native environment setting, never in a shell export the client cannot see:
| Client | Setting |
|---|---|
| Claude Code | --env TRELLO_TOOLS=... --transport stdio before the server name |
| Claude Desktop, Cursor, VS Code | "env": {"TRELLO_TOOLS": "..."} beside command |
| Codex CLI, desktop and ChatGPT desktop | [mcp_servers.trello.env] table with TRELLO_TOOLS = "..." |
| OpenCode | "environment": {"TRELLO_TOOLS": "..."} beside command |
claude mcp add --scope user --env TRELLO_TOOLS=workspace_find,board_find,board_use,list_find,card_find,card_get,comment_find,checklist_get,checklist_items,server_health --transport stdio trello -- "/absolute/path/to/trello-mcp"
[mcp_servers.trello]
command = "/absolute/path/to/trello-mcp"
[mcp_servers.trello.env]
TRELLO_TOOLS = "workspace_find,board_find,board_use,list_find,card_find,card_get,comment_find,checklist_get,checklist_items,server_health"
--env is variadic: an option such as --transport must separate its values from the server name, or trello can be consumed as another environment value.
For a read-only token, use the printed auth command with --read-only. TRELLO_READ_ONLY=1 only hides this server's write and transfer tools; token permissions stay unchanged.
Verify
- Credentials must be present before health metadata or policy fields exist; every unconfigured detail returns the same four-field setup response. Call
server_health {}for local configuration presence and credential source.ok: truedoes not validate authentication. Basic and detailed modes reportcredentialSourceasenv,fileornone, never a path or secret. Configured responses includeaccess: "unverified; call workspace_find". - Call
server_healthwithdetail: "metadata"for the installed version (configured servers only). CLI users may also use the printed absolute-path version andtrello-mcp auth statuscommands; status describes that CLI invocation's credentials, not Desktop's environment. - Call
server_healthwithdetail: "policy"(configured servers only) for effective workspace restrictions, read-only state and tool availability. Its best-effort workspace labels do not validate authentication. - Call
workspace_find {}to verify a real Trello read. Emptyitemsstill proves the read worked, not that a workspace selector matches. A configured server that gets 401 or 403 is not missing setup. A 401 can mean an expired or revoked token, a missing scope (especially write) or no access to that object, so it is not proof of an invalid token. Ifworkspace_find {}succeeds, the token is valid for that read; check object access or write scope. A 403 points to object access, permissions or token scopes. Network and rate-limit errors differ. If renewal is needed, the human privately reruns the printed auth command (with--filefor a client-setTRELLO_MCP_CREDENTIALSfile; update or repoint one naming~/.secrets.env), updates Desktop settings, or updates client-set env credentials. - If a custom profile omits
workspace_find, use a permitted existing upstream read such asboard_find. A health-only profile cannot verify access: change the profile and reconnect if appropriate, never bypass restrictions. Desktop extension users need no CLI auth/status or credential copying.
Configured basic response (the source may instead be file):
{"ok":true,"credentialSource":"env","access":"unverified; call workspace_find"}
Health does not become an enduring validation after a successful read; access verification is a separate observation each time.
Update, roll back and uninstall
Update
- Stop every client that runs trello-mcp.
- For CLI installs repeat your install method with the same destination: the installer command above, or the source install command. For Desktop extensions verify the newer bundle checksum, install it manually and check settings using supported controls.
- CLI users run the printed absolute-path version command, for example
"/absolute/path/to/trello-mcp" --version; source users use"$trello_mcp" --versionor& $trelloMcp --version. Desktop users use health metadata, which needs configured credentials. - Use the individual trello Reconnect action, restart the extension or fully restart the client, then repeat Verify, including the actual upstream read.
Updating from v0.4.x? Read upgrading from v0.4.x for the summary URL migration and the explicit versioned go install fallback when release assets are missing.
Roll back
Name an exact known release. A pinned version that is missing fails instead of falling back to latest:
curl -fsSL https://raw.githubusercontent.com/avhn/trello-mcp/main/install.sh | TRELLO_MCP_VERSION=v0.4.2 sh
& { $hadPin = Test-Path Env:TRELLO_MCP_VERSION; $oldPin = $env:TRELLO_MCP_VERSION; try { $env:TRELLO_MCP_VERSION = 'v0.4.2'; irm https://raw.githubusercontent.com/avhn/trello-mcp/main/install.ps1 | iex } finally { if ($hadPin) { $env:TRELLO_MCP_VERSION = $oldPin } else { Remove-Item Env:TRELLO_MCP_VERSION -ErrorAction SilentlyContinue } } }
The PowerShell scriptblock restores an existing version pin even if installation throws, and removes only a temporary pin. For a Go install use:
go install github.com/avhn/trello-mcp/cmd/trello-mcp@v0.4.2
Then check the version with the resolved absolute path and reconnect. For Desktop, manually install a known earlier bundle after checking its release checksum; verify settings and access again, without assuming settings migrate backward.
Uninstall
For a CLI install:
- Optionally run the printed quoted absolute-path logout command first, or the resolved source command below. It removes only the three Trello keys from the saved file, not environment credentials and not the token at Trello.
- Remove the registration using the command below, or delete the
trelloentry from each client file above and restart that client. - Delete the exact binary you installed, for example
rm "$HOME/.local/bin/trello-mcp", ortrello-mcp.exein the Windows install directory. - On Windows remove only the PATH entry the installer added, in your user environment variables. Leave the machine PATH alone.
- Optional cleanup: the selection file
trello-mcp/state.jsonunder your user configuration directory (XDG_CONFIG_HOMEwhen set) the upload staging directorytrello-mcp/uploadsbeside it (orTRELLO_UPLOAD_DIR), and the download directorytrello-mcpunder your temporary directory, orTRELLO_DOWNLOAD_DIR.
"/absolute/path/to/trello-mcp" auth logout
# Source install, using the resolved variable from Install:
"$trello_mcp" auth logout
& 'C:\absolute\path\to\trello-mcp.exe' auth logout
# Source install, using the resolved variable from Install:
& $trelloMcp auth logout
claude mcp remove trello --scope user
For a Desktop extension, remove or disable it using supported controls in Settings > Extensions. Manage any retained sensitive settings there using supported controls and revoke Trello access separately. Uninstall does not promise deletion of secure-storage entries or revocation. Do not inspect or delete keychain/credential databases, and do not use CLI logout as Desktop cleanup.
Revoke access
Logout and deleting files do not revoke authorization at Trello. Revoke the token in your Trello account's authorized applications. Credentials set through client environment variables must be removed from that client's configuration. Never delete the shared ~/.secrets directory or ~/.secrets.env; other tools use them.
Canonical source: raw setup.md for agents, setup.md on GitHub.