Troubleshooting
Start with the logs: docker compose logs starling-mcp. Configuration errors stop the server at startup with a clear message. Starling errors show up in the tool results the assistant sees, and you can usually ask it “what error did you get?”. To see what your token is allowed to do, ask the assistant to run starling_get_token_info.
The container keeps restarting
Section titled “The container keeps restarting”Run docker compose logs starling-mcp. The last line names the problem, for example:
| Message | Fix |
|---|---|
STARLING_ACCESS_TOKEN is required: … |
Set STARLING_ACCESS_TOKEN in .env. See Getting started. |
STARLING_ACCESS_TOKEN_… the holder name "…" must be 1 to 32 letters, digits or underscores |
Rename the variable, for example STARLING_ACCESS_TOKEN_BUSINESS. |
… the holder name "default" is reserved for STARLING_ACCESS_TOKEN |
Use STARLING_ACCESS_TOKEN for the default holder, and another name for the rest. |
STARLING_SHOW_IDENTIFIERS must be true or false, got "…" |
Fix the value. Booleans accept true/false, 1/0, yes/no and on/off. |
STARLING_YEAR_END must be a date as MM-DD, such as 04-05, got "…" |
Use the month and day your accounting year ends, such as 03-31. |
unknown toolset "x" in STARLING_TOOLSETS; valid: … |
Fix the typo. The message lists the valid names. |
MCP_TRANSPORT must be stdio or http, got "…" |
Fix the value. |
STARLING_API_URL must use https:// (http:// is only allowed for localhost), got … |
Use an https:// URL, or remove the variable to use the default. |
… must not contain a user name or password |
Remove user:password@ from the URL. The token goes in STARLING_ACCESS_TOKEN. |
MCP_AUTH_TOKEN must be at least 16 characters |
Use a longer token, for example from openssl rand -hex 32. |
MCP_AUTH_TOKEN is required for the http transport … |
Set MCP_AUTH_TOKEN, or MCP_ALLOW_UNAUTHENTICATED=true behind something else that authenticates. |
MCP_ALLOW_UNAUTHENTICATED=true needs MCP_ALLOWED_HOSTS |
Set MCP_ALLOWED_HOSTS to the host names clients use, or set MCP_AUTH_TOKEN instead. |
STARLING_CACHE_SECONDS must be a positive integer, got "…" |
Fix the value. The same applies to STARLING_TIMEOUT_MS and MCP_HTTP_PORT. |
STARLING_AUDIT_LOG: cannot write to … |
The folder must exist and be writable by the server. In Docker, mount a writable directory (the image runs as UID 65532). |
could not read STARLING_ACCESS_TOKEN_FILE (…) |
The secret file isn’t mounted where the variable points. |
The client can’t connect to the server
Section titled “The client can’t connect to the server”- Is it running?
curl http://<docker-host>:8080/healthshould return{"status":"ok"}. - Right host? The port is published on the machine running Docker. If Docker runs on another machine (for example with
DOCKER_HOST),localhostwon’t work. - Right path? The endpoint is
/mcp, so the URL ishttp://<docker-host>:8080/mcp. 401 Unauthorized: the client isn’t sendingAuthorization: Bearer <MCP_AUTH_TOKEN>, or the token doesn’t match. Watch for stray quotes or spaces in.env.403 Host … is not allowedor403 Origin … is not allowed: add the hostname the client uses toMCP_ALLOWED_HOSTS, or unset it. A browser-based client sends anOrigin; if its page is on a port other than 80 or 443, list it ashost:port.- The client expects SSE, or gets
405 Method not allowed: the server is stateless and only answersPOSTrequests, with JSON. Make sure the client is set to Streamable HTTP (often calledhttp), notsse. - stdio clients show nothing: check that the command has
-iand not-t, and thatMCP_TRANSPORT=stdiois set when using the image, which defaults to HTTP.
Token and scope errors
Section titled “Token and scope errors”Starling rejected the access token for holder "default": it may have expired or been revoked. Make a new one at developer.starlingbank.com.
Starling didn’t accept the token. Check you copied all of it (watch for spaces or quotes around it in .env), and that it hasn’t been deleted in the developer portal. Make a new one if needed.
The access token for holder "default" lacks a scope this needs (…). Add it to the token.
The token doesn’t have a scope the tool needs. Add the scope in the developer portal, or ignore it if you chose not to share that data: the other tools keep working. Getting started lists every read scope and what it is for. starling_get_token_info shows what the token has.
Starling refused access (HTTP 403): …
Starling turned the request down without naming a missing scope; the rest of the message is Starling’s own reason. If it names a scope, add it to the token. Otherwise the token can’t see what was asked for, such as an account or payee that belongs to someone else. Run starling_get_token_info to check the token’s scopes.
holder "default"'s token can pay-local:create, …. starling-mcp never uses these, but a read-only token is safer
This is a warning logged at start-up, and shown by starling_get_token_info. The token has scopes that can move money. starling-mcp never uses them, but make a read-only token and replace it.
holder "…": could not check the token's scopes: …
The start-up check couldn’t reach Starling or read the token’s details, so no warning could be given. The tools still work if the token does. Check the network, and that the token has no typo.
unknown holder "…": configured holders are default, business
You asked for a holder that isn’t configured. Add STARLING_ACCESS_TOKEN_<NAME> or use one of the names listed.
no account "…" for holder "…" or account name "…" is ambiguous
Use an account name or UID from starling_get_overview. If two accounts share a name, use the UID.
Starling is rate limiting requests; try again shortly.
You’ve hit Starling’s rate limit. starling-mcp retries a few times; if it still fails, wait a moment. Asking for very long periods many times in a row uses the allowance fastest. Raising STARLING_CACHE_SECONDS helps.
Missing or odd data
Section titled “Missing or odd data”- A recent payment is missing. The feed is cached for
STARLING_CACHE_SECONDS(300 by default). Lower it, or ask again in a few minutes. - A payment shows as pending. It hasn’t settled yet. Pending payments are counted and flagged, and the amount can change when it settles.
the period is too long: ask for at most 6 years at a time. Ask for a shorter period.the response is larger than … MiB; ask for a shorter period. Ask for a shorter period, or filter byaccount.- A transaction has no card details or attachments.
starling_get_transactionneeds thetransaction:readandattachment:readscopes, and says what is missing. Not every transaction has a Mastercard payment or an attachment. - Account numbers show as
••••1234. That’s deliberate. SetSTARLING_SHOW_IDENTIFIERS=trueto see them in the curated tools. - A business account is missing. It needs its own token, as
STARLING_ACCESS_TOKEN_BUSINESS(or another name). Then passholder: "business", or ask for the business account. accounting-year needs STARLING_YEAR_END. SetSTARLING_YEAR_ENDto the last day of your accounting year, such as03-31.
Totals look wrong
Section titled “Totals look wrong”Every insight result says what it left out. Check the excluded section first, then:
- Spending looks too high. Your payments to an account of your own elsewhere (an ISA, another bank) may be counted as spending. List it in
STARLING_OWN_ACCOUNTS. Look forsuspected_own_accountsin the result: it names counterparties that look like you. - Income looks too high or too low. Pay from your own company is owner pay, kept out of both spending and income and reported by
starling_owner_pay. If your company is at another bank, list it inSTARLING_COMPANY_ACCOUNTS. - Owner pay shows
unlabelled. The payment had no label from Starling (such as aDIRECTORS_WAGEScategory) and no recurring stream to take a kind from. Its amount is still counted. - The balance after “upcoming payments” is too high. That forecast covers the main balance only, and doesn’t include bills paid from spending Spaces. It starts from the effective balance, so pending card payments are taken off, but a pending payment that settles for more than it was authorised for is not.
- A subscription is missing from
starling_find_recurring. It needs at least 3 payments (2 for quarterly or annual). An annual payment at a merchant you also pay often only counts when the price is identical. A bill with very irregular amounts may not be recognised. - Payday is wrong.
starling_incomeinfers it from past payments. If there are only a few, or the pay date moves a lot, the next date is a guess. England and Wales bank holidays are known for 2020 to 2030. - Two currencies. Amounts in different currencies are never added together. Each has its own total.
- A total differs from a statement. Check the period (days are UK days), pending items and refunds (netted against spending). Use
starling_list_transactionsto see each row’s class and the reason for it.
Tools are missing
Section titled “Tools are missing”Tools are only registered when they’re allowed:
- Each tool’s toolset must be listed in
STARLING_TOOLSETS.allleaves outraw, sostarling_rest_getneedsall,raw. - Restart the container after changing
.envwithdocker compose up -d, and reconnect or restart your MCP client so it fetches the new tool list. - Check the first log line: it shows how many toolsets are loaded.
Still stuck?
Section titled “Still stuck?”Search the existing issues or open a bug report. Include the starling-mcp version (the first log line), the transport, the tool involved and the exact error. Remove your token, account numbers, sort codes, IBANs, account and transaction IDs, names and any real transactions first.