Remote MCP Server with Azure Functions (Python)
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Remote MCP Server with Azure Functions (Python)create a QR code for https://azure.microsoft.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Getting Started with Remote MCP Servers using Azure Functions (Python)
This repo has a collection of samples to help you easily build and deploy a custom remote MCP server to the cloud using Azure Functions. You can clone/restore/run on your local machine with debugging, and azd up to have a server in the cloud in a couple minutes.
All sample MCP servers are configured with built-in authentication using Microsoft Entra as the identity provider.
You can also use API Management to secure the server, as well as network isolation using VNET.
If you're looking for samples in more languages check out the .NET/C# and Node.js/TypeScript versions.
Prerequisites
Python version 3.13 or higher
Azure Functions Core Tools >=
4.8.0Azure Developer CLI 1.23.x or above (for deployment)
Docker (for the Azurite storage emulator)
Visual Studio Code (recommended)
Below is the architecture diagram for the Remote MCP Server using Azure Functions:

Related MCP server: Azure MCP Blueprint
Samples in this repo
Each project README has instructions for running locally, connecting to the MCP server, deploying to the cloud, and more.
Project | Description | Getting Started |
FunctionsMcpTool | MCP Tools — snippet CRUD, QR code generation, structured metadata, batch operations | |
FunctionsMcpResources | MCP Resources — snippet resource template, server info resource | |
FunctionsMcpPrompts | MCP Prompts — code review checklist, summarize content, generate docs | |
McpWeatherApp | Weather App — MCP App demo with interactive UI |
Next Steps
Learn more about the Azure Functions MCP extension
Learn more about built-in MCP auth
Follow our blog posts on Azure SDK Blog and Tech Community for updates.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
- ZapierOAuthcom.zapier
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceA deployable MCP server for Cloudflare Workers or Azure Functions that provides example tools (time, echo, math), prompt templates for code assistance, and configuration resources. Enables AI assistants to interact with edge-deployed services through the Model Context Protocol.-
- AlicenseNot gradedqualityDmaintenanceDeploys a Model Context Protocol (MCP) server on Azure with industry-specific templates, sample data, and pre-configured tools for AI agents to query and manage resources.1MIT
- AlicenseNot gradedqualityDmaintenanceHosts MCP tools for weather queries and On-Behalf-Of flow, enabling Copilot to retrieve weather data and user info via Azure Functions.MIT
- FlicenseNot gradedqualityAmaintenanceEnables developers to build, run locally with debugging, and deploy to the cloud custom remote MCP endpoints hosted on Azure Functions, with built-in Microsoft Entra authentication. Sample projects demonstrate snippet CRUD and QR code tools, resource templates, prompt workflows, and an interactive weather demo UI.-