Remote MCP 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 with Azure Functions (Python)Generate 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: Remote MCP with Azure Functions
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
Build, deploy, and host full-stack web apps from any MCP client. DB, auth, storage, cron included.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
1
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 gradedqualityDmaintenanceA quickstart template for building and deploying secure, remote MCP servers to the cloud using Azure Functions and Node.js/TypeScript. It features integrated blob storage for snippet management and supports advanced security options like OAuth and VNET isolation.MIT
- AlicenseNot gradedqualityDmaintenanceEnables GitHub Copilot to perform markdown review, dependency checking, and AI-powered code review through serverless Azure Functions, demonstrating educational and production MCP tool patterns.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