Configuration reference
trello-mcp reads its runtime configuration from environment variables. Two
Trello credentials are always required. HTTP also requires a separate client
bearer token when the listener binds beyond loopback, including in Compose.
The application itself reads process.env and does not automatically load a
.env file. Docker Compose does read the repository’s .env file for Compose
interpolation, but it passes only the variables listed in the Compose service’s
environment section. See Loading environment variables
before choosing where to store a setting.
Where each setting applies
Section titled “Where each setting applies”The checked-in Compose files are designed for Streamable HTTP. Running them
with TRANSPORT=stdio leaves no MCP client attached, so let the MCP client
launch a direct child process or an attached docker run --rm -i container.
Both Compose files inherit the image health check: HTTP probes /healthz on
the configured address and PORT (default 3000). The probe reads only
TRANSPORT, HOST, and PORT. Stdio uses container process liveness
without opening an HTTP listener. The MCP client checks protocol responsiveness.
| Setting | Direct stdio | Direct Streamable HTTP | Current Docker Compose files |
|---|---|---|---|
TRELLO_API_KEY, TRELLO_TOKEN |
Required in the child-process environment. | Required in the server environment. | Required; Compose reads and forwards both. |
TRANSPORT |
Set to stdio. |
Set to http, or omit it for the default. |
Forwarded; keep the default http. |
PORT |
Not used; stdio opens no listener. | Sets the Node HTTP listener port. | Not forwarded; the container listener remains 3000. Use TRELLO_MCP_HOST_PORT for the host-side port. |
HOST |
No listener. | Sets the bind address (default 127.0.0.1). |
Fixed to 0.0.0.0 for port forwarding. |
MCP_AUTH_TOKEN |
Not used. | Required for non-loopback binds by default. | Required by default, even with host-loopback publication. |
MCP_ALLOWED_ORIGINS |
Not used. | Allows additional exact browser origins. | Forwarded. |
ALLOW_UNAUTHENTICATED_EXPOSURE |
Not used. | Permits a tokenless non-loopback bind when explicitly enabled. | Forwarded, default false. |
TRELLO_ATTACHMENT_UPLOAD_ROOT |
May point to an absolute path on the local machine. | May point to an absolute path on the server. | Not forwarded or mounted by the checked-in files. An override is required. |
TRELLO_ENABLED_TOOLS, TRELLO_DISABLED_TOOLS |
Set in the child’s environment. | Set once for all sessions. | Both forwarded when supplied. |
| Rate-limit and retry variables | Supported. | Supported. | Forwarded with their defaults. |
LOG_LEVEL |
Logs go to stderr to keep stdout protocol-only. | Startup records go to stderr. Runtime logs go to stdout. | Forwarded with the info default. |
TRELLO_MCP_HOST_BIND_IP, TRELLO_MCP_HOST_PORT, TRELLO_MCP_IMAGE_TAG, TRELLO_MCP_NETWORK |
Not used. | Not used. | Compose-only interpolation settings. |
Required Trello credentials
Section titled “Required Trello credentials”| Variable | Required | Description |
|---|---|---|
TRELLO_API_KEY |
Yes | The API key owned by the Trello app. |
TRELLO_TOKEN |
Yes | The token authorizing requests as a Trello member. Treat it like a password. |
Both values must be non-empty or startup fails configuration validation. Create
them with the Trello API key guide, then keep them in a
protected client configuration, process environment, secrets manager, or
ignored .env file. Never commit either value or include it in logs, URLs,
screenshots, issues, or pull requests.
For stdio, the MCP client starts trello-mcp, so the credentials belong in that
child process’s environment. For Streamable HTTP, the credentials stay on the
server; HTTP clients receive only the MCP endpoint and, when configured, the
separate bearer secret described below.
After connecting, use the read-only auth_whoami and auth_token_info tools to
confirm the configured member and token permissions before making a write.
Runtime and transport
Section titled “Runtime and transport”| Variable | Required | Default | Accepted values and behavior |
|---|---|---|---|
TRANSPORT |
No | http |
http starts the Streamable HTTP server. stdio connects over standard input/output and opens no network listener. |
HOST |
No | 127.0.0.1 |
Direct HTTP bind address. Use ::1 for IPv6 loopback or explicitly choose a wider address for remote clients. |
PORT |
No | 3000 |
Positive integer from 1 through 65535. Used only by the direct HTTP listener. |
LOG_LEVEL |
No | info |
trace, debug, info, warn, error, fatal, or silent. |
Invalid values stop startup rather than falling back silently. In stdio mode, structured logs are written to stderr so stdout remains available to the MCP protocol. The shared logger redacts configured credentials, authorization headers, and URL/query fields, but secrets should still never be supplied as ordinary prompt or tool input.
Direct stdio example
Section titled “Direct stdio example”Build the server first, then have the MCP client launch the compiled entrypoint with this environment:
TRANSPORT=stdioTRELLO_API_KEY=your-api-keyTRELLO_TOKEN=your-tokenLOG_LEVEL=infoUse the client-specific format in Set up your MCP client. Do not start a detached stdio process yourself; the MCP client owns its stdin and stdout streams.
Direct HTTP example
Section titled “Direct HTTP example”With a prepared .env file and Node.js 24:
node --env-file=.env dist/index.jsThe default endpoints are:
http://127.0.0.1:3000/mcphttp://127.0.0.1:3000/healthzhttp://127.0.0.1:3000/readyz/mcp is the only MCP route. Other non-health paths return 404.
HTTP authentication and exposure
Section titled “HTTP authentication and exposure”| Variable | Required | Default | Behavior |
|---|---|---|---|
MCP_AUTH_TOKEN |
Non-loopback HTTP by default | Unset | Every /mcp request must send Authorization: Bearer <token> when set. Empty or whitespace-only values count as unset. |
MCP_ALLOWED_ORIGINS |
No | Empty | Additional exact browser origins, separated by commas. Include the scheme, hostname and any non-default port, e.g. https://client.example.com,https://inspector.example.com:8443. |
ALLOW_UNAUTHENTICATED_EXPOSURE |
No | false |
Set true only to run a non-loopback listener without a token under another access-control layer. The server always enforces a configured token. |
The process validates the bind before starting HTTP. If a non-loopback bind is
refused, configure a token or choose a loopback HOST such as 127.0.0.1 or
::1. If a direct launch previously relied on the system default to accept remote
connections, set HOST explicitly to the intended interface. The guard applies to wildcard addresses (0.0.0.0 and ::), LAN IPs
and other non-loopback hosts.
Every HTTP method on /mcp accepts requests without an Origin header, as used
by native MCP clients. When a browser sends an origin, it must be HTTP(S) on
loopback (including localhost, 127.0.0.1 or [::1], on any port), or an
exact entry in MCP_ALLOWED_ORIGINS. Use the origin of the browser client.
For a trusted browser extension, add its exact extension origin as sent in the
Origin header. Omit paths, trailing slashes and wildcards. Other origins
receive HTTP 403 before MCP session handling.
For browser JavaScript, a same-origin reverse proxy can serve the client and
/mcp together. If the two origins differ, configure the proxy to handle CORS
preflight requests and return CORS response headers for the trusted client.
The server’s origin allowlist checks incoming requests.
MCP_AUTH_TOKEN is created by the operator. It is separate from
TRELLO_TOKEN, is not sent to Trello, and has no effect in stdio mode. Configure
the same value in an HTTP client’s supported bearer-header setting; the client
setup guide uses the client-side name TRELLO_MCP_BEARER_TOKEN to keep the two
sides of that boundary clear.
The bearer check does not protect GET /healthz or GET /readyz; those
endpoints remain unauthenticated for health checks. It also does not provide
TLS, user-specific authorization, token rotation, an IP allowlist, or a reverse
proxy. Keep local deployments bound or published to loopback. If the service
must be reachable across a network, terminate HTTPS and apply appropriate
access controls in front of it.
The checked-in Compose files bind to HOST=0.0.0.0 inside the container
and publish to 127.0.0.1 on the host by default. For LAN access, change
TRELLO_MCP_HOST_BIND_IP to the intended host interface and keep the token set.
Migration for tokenless Compose HTTP installations: Before upgrading,
generate a separate secret (for example, with openssl rand -hex 32), set it
as MCP_AUTH_TOKEN on the server, and configure the same bearer token in each
HTTP client. Deploy the updated Compose manifest, or set HOST=0.0.0.0 in
your custom service environment for Docker port forwarding. The new image
checks the container bind and requires a token
even when the host port is published only to loopback.
Tool selection
Section titled “Tool selection”Use the public names in the built-in tool catalog. With both variables unset, clients can discover and call every built-in tool.
| Variable | Effect |
|---|---|
TRELLO_ENABLED_TOOLS |
Start with only the named tools. Omit it to start with the full catalog. |
TRELLO_DISABLED_TOOLS |
Remove the named tools from that selection. It works alone and takes precedence over the enabled list. |
For a board-reading instance, set just the enabled list in the server environment:
TRELLO_ENABLED_TOOLS=board_lists,list_cards,card_getAdding TRELLO_DISABLED_TOOLS=card_get leaves board_lists and list_cards.
Alternatively, setting only TRELLO_DISABLED_TOOLS=card_delete exposes every
built-in tool except card_delete.
Separate names with commas. Names are case-sensitive. Surrounding whitespace
and duplicate names are ignored, and discovery keeps the order of the built-in
catalog. Both lists must contain only known names. Wildcards, aliases, blank
entries (including a trailing comma), and empty or whitespace-only values
fail validation and stop startup. Remove the variable entirely to unset it.
Disabling every selected tool is valid. For example, setting both variables
to board_lists starts a server that initializes normally and returns
{"tools":[]} from tools/list. The usual Trello credentials and HTTP
access controls are still required where applicable.
For Compose, put the assignments in the project’s .env file or export them
from the shell running Compose. Recreate the service with docker compose up -d
after changing them. Restart a direct server or relaunch its stdio child, then
reconnect the MCP client. Each instance uses one fixed selection across its
sessions. Run separate instances to give different workflows different tools.
Calling an excluded or unknown name returns a top-level JSON-RPC error with
code -32602 and message Tool not found before any Trello request.
For selected tools, input validation, Trello permission or API failures, and
the local attachment upload gate continue to report tool results with
isError: true.
Local attachment uploads
Section titled “Local attachment uploads”| Variable | Required | Default | Behavior |
|---|---|---|---|
TRELLO_ATTACHMENT_UPLOAD_ROOT |
No | Unset | Absolute server-side directory that enables card_attachment_upload. An empty or whitespace-only value leaves uploads disabled. |
This setting names a directory on the filesystem of the process running
trello-mcp; it is not a path on an HTTP client’s computer. At upload time, the
directory must exist and be readable. Relative tool filePath values resolve
inside it, while absolute values must still resolve inside it. The server
resolves symlinks, rejects directories and missing files, and refuses files
that escape the configured root.
For a direct stdio or HTTP process, set an absolute host path:
TRELLO_ATTACHMENT_UPLOAD_ROOT=/Users/you/trello-uploadsCurrent Compose limitation
Section titled “Current Compose limitation”The checked-in docker-compose.yml and
docker-compose.local.yml do not forward
TRELLO_ATTACHMENT_UPLOAD_ROOT and do not mount an upload directory. Adding
the variable to .env alone therefore does not enable local uploads in
Compose.
Add both a read-only mount and the container-side environment value with a
local override, for example docker-compose.attachments.yml:
services: trello-mcp: environment: TRELLO_ATTACHMENT_UPLOAD_ROOT: /uploads volumes: - ./trello-uploads:/uploads:roUse it with the published-image Compose file:
docker compose \ -f docker-compose.yml \ -f docker-compose.attachments.yml \ up -dFor a source-built image, replace the first file with
docker-compose.local.yml. The tool receives container paths such as
/uploads/example.pdf, not the corresponding host path. A read-only mount is
sufficient because trello-mcp reads the file and uploads its bytes to Trello.
Trello rate limiting and retries
Section titled “Trello rate limiting and retries”All five values below must be positive integers. An empty value uses the default; zero, negative, fractional, or non-numeric values fail startup.
| Variable | Default | Behavior |
|---|---|---|
TRELLO_RATE_LIMIT_CAPACITY |
100 |
Capacity configured for the local token-bucket pacing mechanism. |
TRELLO_RATE_LIMIT_REFILL_INTERVAL_MS |
10000 |
Milliseconds between full local bucket refills. |
TRELLO_RETRY_MAX_ATTEMPTS |
3 |
Total attempts, including the initial request, when Trello responds with HTTP 429. |
TRELLO_RETRY_BASE_DELAY_MS |
100 |
Base for exponential 429 backoff and its bounded jitter. |
TRELLO_RETRY_MAX_DELAY_MS |
2000 |
Maximum delay before any one 429 retry. |
The local bucket runs before each Trello request and is intended to pace this
server’s outbound work. It is not a strict distributed quota and does not
replace Trello’s server-side account or token limits, especially under
concurrent workloads. The retry policy applies to HTTP 429 responses; it does
not retry every network or server error.
Keep the defaults unless real workload evidence shows a need to tune them. First narrow broad workflows with smaller result limits, specific boards or lists, requested fields, search filters, and pagination. Lower the capacity for a shared token or deliberately gentler automation. Raising the capacity can make a broad workflow reach Trello’s server-side limit faster.
At LOG_LEVEL=debug, local bucket waits are logged as
trello rate limit wait. HTTP 429 retries are logged at warn level as
trello request rate limited; retrying. These records contain safe operational
metadata rather than credentials or request URLs.
Docker Compose settings
Section titled “Docker Compose settings”The default docker-compose.yml runs the published
image. docker-compose.local.yml builds the
current source as trello-mcp:local. Both keep the container’s HTTP listener
on port 3000 and publish it to a configurable host address and port.
| Variable | Default | Compose behavior |
|---|---|---|
TRELLO_MCP_HOST_BIND_IP |
127.0.0.1 |
Host interface used for the published container port. Compose-only. |
TRELLO_MCP_HOST_PORT |
3000 |
Host port mapped to container port 3000. Compose-only. |
TRELLO_MCP_IMAGE_TAG |
latest |
Tag appended to ghcr.io/enthouan/trello-mcp by docker-compose.yml. Not used by the local-build file. |
TRELLO_MCP_NETWORK |
trello-mcp_network |
Name of the Compose bridge network. Compose-only. |
Compose forwards TRELLO_ENABLED_TOOLS, TRELLO_DISABLED_TOOLS,
TRANSPORT, LOG_LEVEL, MCP_AUTH_TOKEN, MCP_ALLOWED_ORIGINS,
ALLOW_UNAUTHENTICATED_EXPOSURE, and all five rate-limit/retry variables.
Direct-run HOST and PORT settings in .env do not change the container’s
0.0.0.0:3000 listener. Use the host publication variables in the table above.
Published image tags
Section titled “Published image tags”| Tag | Update behavior | Recommendation |
|---|---|---|
latest |
Follows the current main branch image. |
Use only when intentionally tracking the newest main build. |
X.Y |
Follows the newest patch release in that minor line. | Useful for automatic patch updates. |
X.Y.Z |
Pins one exact release. | Recommended for reproducible deployments. |
sha-<commit> |
Pins the image built for one commit. | Useful for audit trails and debugging. |
In the Compose examples below, replace X.Y.Z with an exact published release
that includes these HTTP defaults. Use the local-build Compose file to try
changes ahead of a release.
TRELLO_MCP_HOST_BIND_IP=127.0.0.1TRELLO_MCP_HOST_PORT=3000TRELLO_MCP_IMAGE_TAG=X.Y.ZTRELLO_MCP_NETWORK=trello-mcp_networkThe published-image Compose file pulls ghcr.io/enthouan/trello-mcp:<tag>.
Loading environment variables
Section titled “Loading environment variables”Direct Node process
Section titled “Direct Node process”trello-mcp has no dotenv loader. Export variables in the parent shell, let an
MCP client pass them to its stdio child, use a process manager or secrets
provider, or use Node.js 24’s --env-file flag:
node --env-file=.env dist/index.jsRunning node dist/index.js, corepack pnpm start, or corepack pnpm dev
without exported variables does not read .env automatically.
Docker Compose
Section titled “Docker Compose”Docker Compose reads .env from the project directory for ${...}
interpolation. Start from the sanitized template:
cp .env.example .envSet the Trello credentials and MCP_AUTH_TOKEN, keep .env out of source
control, and then run the selected Compose file. A value in .env reaches the container only
when the Compose service explicitly includes it under environment (or an
override adds it). This distinction is why TRELLO_ATTACHMENT_UPLOAD_ROOT and
PORT behave differently from the variables that the checked-in files forward.
Minimal configuration by deployment
Section titled “Minimal configuration by deployment”MCP client launching a local stdio server
Section titled “MCP client launching a local stdio server”TRANSPORT=stdioTRELLO_API_KEY=your-api-keyTRELLO_TOKEN=your-tokenDirect Streamable HTTP server
Section titled “Direct Streamable HTTP server”TRANSPORT=httpHOST=127.0.0.1PORT=3000TRELLO_API_KEY=your-api-keyTRELLO_TOKEN=your-tokenMCP_AUTH_TOKEN=use-a-separate-strong-secretThe loopback example can run without a token. Configure a token before moving the listener to a wider interface.
Published image with Compose
Section titled “Published image with Compose”TRELLO_API_KEY=your-api-keyTRELLO_TOKEN=your-tokenTRANSPORT=httpMCP_AUTH_TOKEN=use-a-separate-strong-secretTRELLO_MCP_HOST_BIND_IP=127.0.0.1TRELLO_MCP_HOST_PORT=3000TRELLO_MCP_IMAGE_TAG=X.Y.ZContinue with Set up your MCP client, or compare the complete startup commands in the README quick start.