Trello API key
trello-mcp needs two credentials from Trello: TRELLO_API_KEY identifies the
app you register, and TRELLO_TOKEN authorizes access as a Trello member. You
create both on Trello’s website; this project does not create, refresh, or
revoke them for you.
Before you begin
Section titled “Before you begin”- Sign in to the Trello account that the server should use.
- Decide whether that account should be your everyday member or a dedicated automation member with access only to selected boards and Workspaces.
- To create or manage the app, the signed-in member must be an admin of the Workspace that owns it or an app collaborator. App-management access is separate from the Trello account access granted by the token.
- Have a local ignored
.envfile, MCP client configuration, or secrets manager ready. Do not paste credentials into this website, chat, screenshots, issues, or pull requests.
Create the credentials
Section titled “Create the credentials”Open Trello App Admin Portal
-
Open Trello’s App Admin Portal.
Sign in, then open trello.com/apps/admin. On a first visit, Trello may ask you to complete its Joint Development Agreement before you can create an app.
-
Create or select an app.
Select an existing app you control, or choose New and complete Trello’s required name, Workspace, contact, and author fields. The iframe connector URL applies only to apps using Power-Up capabilities;
trello-mcpdoes not need those capabilities or a connector URL.For this server, the app record exists to own the API key. You do not need to publish it in Trello’s Power-Up directory or enable it on a board.
-
Generate the API key.
Open the app’s API Key tab and select Generate a new API Key. Copy the displayed key into your local secret storage as
TRELLO_API_KEY. -
Authorize a token for the correct Trello member.
On the same API Key page, select the Token link near the key. Trello will show the member, requested permissions, and access duration. Confirm that the correct account is shown, review the permissions, and choose Allow only if they match the access you intend to give the server.
If an app admin generated the key for a separate automation member, complete this authorization screen while signed in as that automation member. The token represents the member that approves this screen, not the app admin who generated the key.
-
Copy the token into local secret storage.
After authorization, Trello redirects to a page containing the token. Store it as
TRELLO_TOKEN. Do not put the key or token in a command URL, shell history, source file, screenshot, or public report. -
Configure trello-mcp with placeholders replaced locally.
In the repository’s ignored
.envfile:TRELLO_API_KEY=your-api-keyTRELLO_TOKEN=your-tokenFor local
stdio, the same two environment variables can instead live in a protected MCP client configuration. Continue with Set up your MCP client after creating the credentials. -
Verify without changing Trello data.
Start the server and connect your MCP client. Call the read-only
auth_whoamitool to confirm the member, thenauth_token_infoto inspect the token owner, expiration, and permissions. Do not use a write tool as the first connectivity test.
Know which value is which
Section titled “Know which value is which”| Setting | Issued by | Purpose | Handling |
|---|---|---|---|
TRELLO_API_KEY | Trello App Admin Portal | Identifies the app making Trello REST API requests. Trello documents the key as publicly accessible and says it does not grant account access by itself. | Keep it in local configuration with the token, and do not include it in public troubleshooting material. |
TRELLO_TOKEN | Trello authorization screen | Authorizes requests as the consenting Trello member, within the granted scope and that member’s visibility. | Secret. Treat it like a password. Never commit, log, screenshot, or share it. |
MCP_AUTH_TOKEN | You, optionally | Protects this project’s Streamable HTTP /mcp endpoint. It is not sent to Trello and is unrelated to Trello authorization. | Use a separate strong secret and HTTPS whenever HTTP is exposed beyond loopback. |
Revoke or replace a token
Section titled “Revoke or replace a token”If a token is exposed, no longer needed, or tied to the wrong member:
- Open your Trello account settings.
- Find the Applications section and revoke the relevant authorization.
- Return to the app’s API Key tab and use the Token link to authorize a replacement.
- Replace
TRELLO_TOKENwherever the server is configured, restart the process, and runauth_whoamiagain.
Revoking a Trello token does not replace the separate MCP_AUTH_TOKEN. Rotate
that value independently if the HTTP bearer secret is exposed.
Troubleshooting
Section titled “Troubleshooting”There is no API Key tab
Section titled “There is no API Key tab”Confirm that you selected an app you administer and that your Trello member is a Workspace admin or an app collaborator. If the portal is asking for Power-Up implementation details, return to Basic Information; this server needs the app record and API key, not enabled Power-Up capabilities.
Trello will not create or authorize a token
Section titled “Trello will not create or authorize a token”Confirm the active Trello account and review any organization restrictions on API token creation. Managed-account policies can be outside this project’s control; ask the Trello or organization administrator when the authorization screen is blocked.
trello-mcp reports invalid credentials
Section titled “trello-mcp reports invalid credentials”- Remove accidental whitespace or quotation marks from the stored values.
- Confirm the token was authorized from the same app/API key you configured.
- Restart the server after changing its environment.
- Run
auth_whoamiandauth_token_infoagain before attempting any write.
Official Trello references
Section titled “Official Trello references”- Get started with Trello’s REST API covers the account-level key and token flow.
- App Admin Portal guide documents current app fields and the API Key tab.
- Trello REST API introduction explains API keys, member tokens, authorization, and requests.
- Revoke a Trello token explains how to remove an application’s access from account settings.
- Trello developer changelog is the source to check if Trello changes this authorization flow.