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.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: copilot-studio-weather-mcp
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, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
AI-callable tools for API mocking, testing, monitoring, security, and automation.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- 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 gradedqualityCmaintenanceEnables users to retrieve weather alerts and detailed forecasts for any US location using the National Weather Service API via MCP tools, with deployment to Azure App Service for integration into Copilot Studio.-
- AlicenseNot gradedqualityCmaintenanceEnables exposing product capabilities to ChatGPT, Claude, and other MCP clients via a stateless Streamable HTTP endpoint with OAuth resource binding and structured-output helpers.MIT
- AlicenseNot gradedqualityBmaintenanceEnables an AI assistant to invoke local file operations, multi-engine web search, weather, system commands, developer utilities, and code execution over MCP, and includes a web dashboard for managing endpoints, testing tools, and viewing live logs.951 npm1MIT