Getting Started with Remote MCP Servers using Azure Functions (Python)
# Add to your Claude Code skills
git clone https://github.com/Azure-Samples/remote-mcp-functions-pythonThis is a quickstart template to easily build and deploy a custom remote MCP server to the cloud using Azure Functions with Python. You can clone/restore/run on your local machine with debugging, and azd up to have it in the cloud in a couple minutes. The MCP server is secured by design using keys and HTTPS, and allows more options for OAuth using built-in auth and/or API Management as well as network isolation using VNET.
If you're looking for this sample in more languages check out the .NET/C# and Node.js/TypeScript versions.
Below is the architecture diagram for the Remote MCP Server using Azure Functions:

4.0.7030No comments yet. Be the first to share your thoughts!
An Azure Storage Emulator is needed for this particular sample because we will save and get snippets from blob storage.
Start Azurite
docker run -p 10000:10000 -p 10001:10001 -p 10002:10002 \
mcr.microsoft.com/azure-storage/azurite
Note if you use Azurite coming from VS Code extension you need to run
Azurite: Startnow or you will see errors.
Change to the src folder in a new terminal window:
cd src
Install Python dependencies:
pip install -r requirements.txt
Note it is a best practice to create a Virtual Environment before doing the
pip installto avoid dependency issues/collisions, or if you are running in CodeSpaces. See Python Environments in VS Code for more information.
Start the Functions host locally:
func start
Note by default this will use the webhooks route:
/runtime/webhooks/mcp. Later we will...