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.Appresource 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).RegistrationStateafter 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/inspectorCTRL 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
SSESet the URL to your running API Management SSE endpoint displayed after
azd upand Connect:https://<apim-servicename-from-azd-output>.azure-api.net/mcp/sseList 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
MCP web research server (give Claude real-time info from the web)
Basic Memory is a knowledge management system that allows you to build a persistent semantic graph from conversations...
A Model Context Protocol (MCP) server for Kubernetes that enables AI assistants like Claude, Cursor, and others to...
AI-powered local MCP server for terminal commands, surgical file editing, process management, and intelligent codebase exploration. FastMCP-powered, file...
MCP server for Unreal Engine 5
Browser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Model Context Protocol (MCP) server for Alpaca trading API
A Model Context Protocol (MCP) server for interacting with the Hetzner Cloud API. This server allows language models...





