Secure Remote MCP Servers using Azure API Management (Experimental)
Azure API Management acts as the AI Gateway for MCP servers.
This sample implements the latest MCP Authorization specification
This is a sequence diagram to understand the flow.
Deploy Remote MCP Server to Azure
Register
Microsoft.App
resource provider.- If you are using Azure CLI, run
az provider register --namespace Microsoft.App --wait
. - If you are using Azure PowerShell, run
Register-AzResourceProvider -ProviderNamespace Microsoft.App
. Then run(Get-AzResourceProvider -ProviderNamespace Microsoft.App).RegistrationState
after some time to check if the registration is complete.
- If you are using Azure CLI, run
Run this azd command to provision the api management service, function app(with code) and all other required Azure resources
azd up
MCP Inspector
In a new terminal window, install and run MCP Inspector
npx @modelcontextprotocol/inspector
CTRL click to load the MCP Inspector web app from the URL displayed by the app (e.g. http://127.0.0.1:6274/#resources)
Set the transport type to
SSE
Set the URL to your running API Management SSE endpoint displayed after
azd up
and Connect:https://<apim-servicename-from-azd-output>.azure-api.net/mcp/sse
List Tools. Click on a tool and Run Tool.
Secure Remote MCP Server
Project Details
- Azure-Samples/remote-mcp-apim-functions-python
- MIT License
- Last Updated: 4/16/2025
Recomended MCP Servers
Monorepo providing 1) OpenAPI to MCP Tool generator 2) Exposing all of Twilio's API as MCP Tools
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Make LLM can control your PC or Server with ssh or terminal.
MCP Implementation for HubSpot
Un-official Serper Google search server for Cline and other MCP clients
A system monitoring tool that exposes system metrics via the Model Context Protocol (MCP). This tool allows LLMs...
A Model Context Protocol (MCP) server enabling LLMs to query, analyze, and interact with Prometheus databases through predefined...