Troubleshoot your MCP server behind MCP Tower
To troubleshoot your MCP server behind MCP Tower, find the symptom you see below. Each section starts with what you see, then why, then what to do. Problems fall into three groups:
- Setup: the hostname is refused, the scan fails, the
TXTrecord isn’t found, or the hostname or certificate stays pending. - Agents and traffic: agents are blocked or get
404or502, your origin rejects MCP Tower, or OAuth fails. - Measure and Inspect: tool calls, overrides, widget events or link clicks don’t show.
If this page doesn’t answer your question, contact us.
The hostname is refused in Details
Section titled “The hostname is refused in Details”| Message | Fix |
|---|---|
| “Use a subdomain such as mcp.example.com: a domain’s apex cannot point at MCP Tower with a CNAME.” | Publish a subdomain, such as mcp.example.com. |
| “This hostname is already registered with MCP Tower.” | Another server, in your organization or another one, uses it. Remove that server first, or pick another hostname. |
| The public hostname is the same as the origin’s | Give your server a second name (mcp-origin.example.com) and enter that as the origin. See Add an MCP server. |
| “The hostname can’t change once it is connected. Delete this server to use another hostname.” | Only the path can change. Remove the server and add it again with the new hostname. |
The scan failed
Section titled “The scan failed”The Tools step says why. Fix the cause, then choose Scan again, or go back to Details to correct the origin URL.
| The step says | What to check |
|---|---|
| The origin’s hostname doesn’t resolve in DNS. | The origin URL’s spelling, and that its DNS record exists publicly. |
| Unable to connect to the MCP. | The server is running and reachable from the internet over HTTPS, and no firewall drops MCP Tower’s requests. |
| The server’s certificate isn’t valid. | The origin’s certificate is valid for its hostname and not expired, with the full chain. Self-signed certificates are refused. |
| The server didn’t answer in time. | Slow start-up or a slow tools/list. |
| The origin resolves to a private or reserved address, which MCP Tower doesn’t connect to. | The origin must have a public address. |
| The server answered with an unexpected HTTP status. | The URL is the MCP endpoint itself (often /mcp), and your server’s logs for the status it returned. |
| The URL answered, but not with MCP (JSON-RPC). | The URL points at the MCP endpoint, not a website or a health check. |
| The server only speaks the deprecated HTTP+SSE transport. MCP Tower supports Streamable HTTP. | Move the server to Streamable HTTP. |
| The server returned an MCP error while listing its tools. | Your server’s logs for the tools/list error. |
| The tool list is larger than MCP Tower reads (50 pages, 1,000 tools or 5 MB). | Split the server, or shorten its tool definitions. |
| The server refused the token from your sign-in. | Sign in again. Your server must accept tokens for the public URL; see Accept the public audience. |
| The scan was interrupted before it finished. Scan again. | Choose Scan again. |
The server requires authentication
Section titled “The server requires authentication”The Tools step says “Looks like the MCP server requires authentication to return the list of tools”. Choose Sign in to scan and sign in as you would in an agent. If your provider doesn’t let MCP Tower register itself, register a client with the redirect URI the step shows and enter its client id and secret. If signing in fails, the step lists the OAuth checks that failed; each one links to its page under OAuth checks. You can also continue without signing in.
The TXT record isn’t found
Section titled “The TXT record isn’t found”Connect keeps saying “Waiting for the TXT record on <domain>.” MCP Tower hasn’t found your
organization’s TXT record on that domain yet, so it hasn’t created the hostname. Check what the
world sees:
dig +short TXT example.comOne of the answers must be exactly "mcp-tower-verification=<token>", with the value Connect shows
(each domain has its own; Admins also find it in Organization settings, under Domains). Other TXT records on the
domain are fine. If it isn’t there:
- Put it on the domain, not the subdomain. For
mcp.example.com, the record goes onexample.com(@at most providers), not onmcp.example.com. Formcp.example.co.uk, it goes onexample.co.uk. A record on a subdomain, even one with its own DNS zone, doesn’t count. - Check the value. It must be the whole value,
mcp-tower-verification=followed by the token, with nothing added. Some providers append your domain to the name: enter@, notexample.com. - Wait a few minutes. DNS resolvers can remember that the record was missing for a few minutes after you add it. Leave Connect open: it checks every 30 seconds.
If Connect says “Couldn’t look up the TXT record. Check again in a minute.”, the lookup itself failed (for example, your domain’s DNS servers didn’t answer in time). Nothing is wrong with the record; choose Check a little later.
A hostname under a platform’s shared domain, such as foo.vercel.app, counts as its own domain
(foo.vercel.app). If you can’t add TXT records there, the hostname can’t connect: use a
subdomain of a domain you control instead.
The hostname or certificate stays pending
Section titled “The hostname or certificate stays pending”Connect shows two statuses, Hostname and Certificate. The server goes live only when both are active.
| Status | Cause and fix |
|---|---|
| Hostname: “Waiting for your DNS record.” | The CNAME to cname.mcptower.io isn’t visible yet. Check the record’s name: some providers append your domain, so mcp.example.com becomes mcp.example.com.example.com. Enter mcp instead. |
| Hostname: “The DNS record no longer points at MCP Tower.” | The CNAME was changed or removed. Put it back. |
| Hostname: “Cloudflare blocked this hostname. Contact support.” | Contact us. |
| Certificate: “Cloudflare issues the certificate once the DNS record is in place.” | Check the Certificate check block under the DNS records; see The certificate check fails. If your domain has CAA records, they must allow the certificate authorities Cloudflare uses. |
| Certificate: “The certificate is being issued.” or “The certificate is being deployed.” | Wait; Connect checks every 30 seconds. |
To see what the world sees, query the records from your computer:
dig +short CNAME mcp.example.comThe certificate check fails
Section titled “The certificate check fails”Connect’s Certificate check lists the URLs certificate authorities fetch to validate your
certificate, with MCP Tower’s result for each. A failure means something in front of MCP Tower
answers them instead of Cloudflare, usually on your own Cloudflare zone: a WAF or bot rule, a
redirect rule, or a Worker that runs on /.well-known/acme-challenge/. Fetch one of the URLs
yourself to see what answers:
curl -i http://mcp.example.com/.well-known/acme-challenge/<token>A redirect to https is fine. Any other redirect, a 403 or a challenge page is not: let
/.well-known/acme-challenge/ through, or wait. After about a minute of failed checks MCP Tower
switches the certificate to delegated validation, and Connect shows a second CNAME,
_acme-challenge.mcp.example.com → mcp.example.com.<id>.dcv.cloudflare.com. Add it exactly as
shown, then check it:
dig +short CNAME _acme-challenge.mcp.example.comIf your DNS provider refuses the CNAME, a TXT record at _acme-challenge.mcp.example.com is in
the way (an earlier certificate of yours may have left it, for example on your own Cloudflare zone):
delete it, then add the CNAME. If your domain has CAA records, they must allow the certificate
authorities Cloudflare uses.
Another record already uses the hostname
Section titled “Another record already uses the hostname”A CNAME can’t share its name with any other record. If your public hostname has an A, AAAA,
or other record, remove it before you add the CNAME. If that record points at your MCP server
today, move the server to an origin hostname first, so agents keep working
(how).
Agents and traffic
Section titled “Agents and traffic”Agents are blocked before they reach MCP Tower
Section titled “Agents are blocked before they reach MCP Tower”Agents fail to connect, get a challenge page, or the certificate stays pending, and your domain is
on Cloudflare with the CNAME proxied (orange cloud).
Your zone’s own Cloudflare rules run first, then MCP Tower’s. Your WAF, bot protection (such as Bot Fight Mode) and redirect rules then apply to agent traffic, which comes from servers and looks automated. Either:
- let AI agents through those rules for your public hostname, and let
/.well-known/acme-challenge/through so the certificate can be issued and renewed; or - in your Cloudflare dashboard, DNS, Records, open the record and set its proxy status to DNS only. Your zone’s rules no longer apply to it.
Agents get 404 Not found
Section titled “Agents get 404 Not found”The middleware doesn’t serve this hostname. Either the server isn’t live yet (finish Connect), an
Admin turned it off, its payment grace period ended, or it was removed. Check the server’s status
in the servers list. Paths under /_mcptower/ also answer 404 unless they are MCP Tower’s
own links.
Agents get 502 Bad gateway
Section titled “Agents get 502 Bad gateway”The middleware couldn’t reach your origin: its DNS doesn’t resolve, the connection was refused, or its certificate isn’t valid. Check that the origin URL works from outside your network. These calls are recorded with their error class.
Your origin answers 401 or 403 to every request
Section titled “Your origin answers 401 or 403 to every request”The origin-secret check on your origin rejects MCP Tower’s own requests.
- Compare the header name exactly:
X-MCP-Tower-Origin-Secret. Header names are case-insensitive, but some frameworks expose them in a changed form (for examplex_mcp_tower_origin_secretorHTTP_X_MCP_TOWER_ORIGIN_SECRET). - Compare the whole value, with no surrounding spaces or quotes from copying.
- Check every path,
/.well-known/included: the secret is sent on every request. - If your server answers
401for missing user sign-in, keep that separate from the secret check, which should answer403. A401tells agents to start OAuth.
If you lost the secret, contact us: it is shown only until the server is connected.
Scans fail but agents work
Section titled “Scans fail but agents work”Scans come from MCP Tower’s application at 98.87.134.168, not through Cloudflare. If your origin
only accepts Cloudflare’s IP ranges, scans are refused. Check the origin secret instead of the
address. Scans identify themselves with User-Agent: MCP-Tower-Scanner/1 (+https://mcptower.com/docs/bot)
(MCP Tower’s bot).
Redirects or links point at the origin
Section titled “Redirects or links point at the origin”The middleware puts absolute URLs on your origin host on the public hostname, in Location headers
and in every MCP message it relays (see
Links to your origin host). A link can
still show your origin hostname when it is in an HTML page or a file, in a resource uri, or on a
path the public hostname can’t reach. For those, build URLs from X-Forwarded-Host, from a setting
such as PUBLIC_BASE_URL, or use relative URLs. When the public path differs from the origin path,
see Publish a different path.
OAuth fails behind MCP Tower
Section titled “OAuth fails behind MCP Tower”Agents request tokens for the public URL, so the token audience is https://mcp.example.com/….
Your authorization server and MCP server must accept it. See
Accept the public audience.
Measure and Inspect
Section titled “Measure and Inspect”No tool calls show in Measure
Section titled “No tool calls show in Measure”| Check | What to do |
|---|---|
| The agent uses the origin URL | Replace it with the public MCP URL everywhere: connectors, docs, catalog listings. |
| Measure says tracking is paused | An Admin or Editor chooses Resume tracking. |
| “Tool calls are not recorded.” | An Admin turns on Record tool calls from the notice. |
| The quota is reached | See below. |
| The calls came from Inspect | Calls you run in Inspect are not counted. |
| The range or filters exclude them | Widen the range, clear the filters. The newest minutes fill in shortly after the calls. |
The tool-call quota is reached
Section titled “The tool-call quota is reached”Measure says “This server reached its tool call limit. New calls are not recorded until the limit resets or grows.” Agents keep working: traffic still flows, only recording stops. See Billing and quota.
Agents don’t see an override or a new prompt
Section titled “Agents don’t see an override or a new prompt”After a save the field says “Applying…”, then “Live” once the middleware has it. Agents load tool and prompt lists when a conversation starts and keep them, so start a new conversation. Hosts cache widget HTML too: a changed widget resource reaches agents on their next read, often in a new conversation.
Widget events or link clicks are missing
Section titled “Widget events or link clicks are missing”Track widget interactions, Widget load pixels or Track links may be off. Measure names the switch on the chart it affects, and an Admin can turn it on from there. See Widgets and links.