MCP Server API Fails on Higher Tiers in Azure APIM: "Client connection was unexpectedly closed"

M., Sai Kiran 0 Reputation points
2025-07-03T07:08:39.97+00:00

I'm exposing a REST API as an MCP server using Azure API Management. It works fine on the Basic tier — the tools are fetched correctly, and both GET and POST MCP calls succeed. However, when I use the same setup on Standard or Premium tiers, it fails. The client can't fetch the tools, and APIM logs show the below error:

"reason":"ClientConnectionFailure","message":"Client connection was unexpectedly closed.","section":"outbound".

The backend API is accessible directly and has no firewall or certificate issues. Why does this happen only on higher tiers, and how can I fix or debug this behavior?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,452 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.