Sandbox
@Azure-Samples/remote-mcp-functions-python

Remote MCP server samples for Azure Functions

This repo shows how to build a remote MCP server on Azure Functions with Python. The samples cover MCP tools, resources, prompts, and a demo app, and the infrastructure files let you deploy the server to Azure with `azd up`. It also includes local development support through VS Code, a dev container, and Azure Functions tooling, so you can test the server before deploying it.

126 stars83 forksPythonUpdated 3mo ago
Who it's for

Builders who want a sample Azure Functions setup for remote MCP servers.

What it delivers

You can start from working MCP server samples instead of assembling the Azure Functions and deployment pieces yourself.

What it does

MCP tool sample

`src/FunctionsMcpTool` shows tool endpoints for snippet CRUD, QR code generation, structured metadata, and batch operations.

MCP resource sample

`src/FunctionsMcpResources` shows resource templates and a server info resource.

MCP prompt sample

`src/FunctionsMcpPrompts` shows prompts for code review checklists, content summaries, and doc generation.

Weather app demo

`src/McpWeatherApp` is a sample MCP app with an interactive UI.

Azure deployment infrastructure

`infra/main.bicep` and `infra/main.parameters.json` define the Azure resources needed for deployment.

Local development setup

`.devcontainer` and `.vscode` files support running, debugging, and working in Codespaces or VS Code.

README

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.

Open in GitHub Codespaces

Prerequisites

Below is the architecture diagram for the Remote MCP Server using Azure Functions:

Architecture Diagram

Samples in this repo

Each project README has instructions for running locally, connecting to the MCP server, deploying to the cloud, and more.

ProjectDescriptionGetting Started
FunctionsMcpToolMCP Tools — snippet CRUD, QR code generation, structured metadata, batch operationsREADME
FunctionsMcpResourcesMCP Resources — snippet resource template, server info resourceREADME
FunctionsMcpPromptsMCP Prompts — code review checklist, summarize content, generate docsREADME
McpWeatherAppWeather App — MCP App demo with interactive UIREADME

Next Steps

Files in the repo

Repository payload11 top-level entries
  • .devcontainer
  • .github
  • .vscode
  • infra
  • media
  • src
  • .gitignore
  • architecture-diagram.drawio
  • LICENSE.md
  • pyproject.toml
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More templates

CopilotKit/
OpenBot

Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.

4.6k
Donchitos/
Claude-Code-Game-Studios

Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination system mirroring real studio hierarchy.

25k

A self-organizing Obsidian vault that gives AI coding agents persistent memory. Claude Code, Codex CLI, Gemini CLI.

4.6k
idavidov13/
agentic-playwright

Production-grade Playwright + TypeScript Scaffold for Agentic Testing. Harness for all major AI coding agents baked in.

163
gavishap/
omnia-vault

Omnia Vault - the all-in-one project brain: an Obsidian LLM wiki, Graphify code graphs, a living plan that triages new videos against itself, and a Claude Code ⇄ Codex relay. Everything your project knows, in one clonable vault.

60

🎬 Tạo video "so sánh kiến thức" ngắn tự động — HyperFrames + AI voice, 1 template nhiều chủ đề.

169