Remote MCP servers on Azure Functions: early preview notes
Azure Functions can now host MCP servers built with the official SDKs on the Flex Consumption plan. What the early preview offers, its limits and how I would try it.

On 18 August the Azure Functions team announced an early preview of hosting bring your own remote MCP servers on Azure Functions. If you have already built a Model Context Protocol server with one of the official MCP SDKs, you can now run it on Functions with very little change, and get serverless scaling and billing without rewriting it.
This matters because MCP is quickly becoming the standard way for agents to call tools. Building an MCP server is easy. Hosting it properly, with authentication, scaling and monitoring, is the part that takes time.
What was announced
The key points from the announcement:
- Official MCP SDKs are supported for Python, Node.js and .NET. You keep your existing server code.
- A one line change to how the server starts, plus a small configuration file, is enough to run it on Functions.
- Flex Consumption plan only during this early preview.
- Stateless servers over streamable HTTP. Servers that need to keep session state between requests are not supported.
- Function keys secure the endpoint by default, and you can put Azure API Management in front for richer policies and authentication.
- Local testing with
func startusing Azure Functions Core Tools, and deployment withazd upusing the Azure Developer CLI. - Samples for each language are published as Azure-Samples repositories (mcp-sdk-functions-hosting-python, -node and -dotnet).
This sits alongside the existing Functions MCP extension, which lets you write MCP tools as functions using triggers and bindings. The extension supports server sent events today, with streamable HTTP support coming soon. So you now have two routes: write tools the Functions way with the extension, or bring an SDK based server as it is.

What it means for organisations
Hosting MCP servers gets simpler. Many teams I work with have built MCP servers on a laptop for GitHub Copilot or Claude, and then stalled when they needed to share them. Functions gives a familiar, managed place to run them, with scale to zero and pay per use.
Security needs more than a function key. A function key is a shared secret. That is fine for a proof of concept, but for anything that reaches business data I would want API Management in front, with Microsoft Entra ID authentication and rate limiting, so you know who is calling which tool.
Stateless design is a constraint to plan for. Most simple tool servers are stateless already. If yours relies on in memory session state, it needs to move that state into a store such as Azure Cosmos DB or Redis, or wait for later support.
This is an early preview. Behaviour, configuration and supported plans may change before general availability. I would not put a production agent on it yet, but it is a good time to learn the pattern.
What I would do now
- Clone the sample for your language and run it locally with
func start, then deploy it withazd upto a development subscription. - Move one existing internal MCP server onto Functions and connect it to GitHub Copilot in VS Code or a test Copilot Studio agent.
- Put API Management in front early, even in testing, so your security pattern is ready when you need it.
- Check that your server is stateless, and plan changes if it is not.
- Decide between the extension and the SDK route for new work. I would lean towards the SDK route for portability, and the extension where you want Functions triggers and bindings.


