Remote MCP Servers using Azure Functions (Java)

June 2, 2026 ยท View on GitHub

A collection of samples for building and deploying remote MCP servers to Azure using Azure Functions (Java). Each sample runs locally with debugging and deploys to Azure with azd up.

All samples are configured with built-in authentication using Microsoft Entra as the identity provider. You can also use API Management to secure the server, or add network isolation with VNET.

If you're looking for samples in other languages, see: .NET/C# | Node.js/TypeScript | Python

Open in GitHub Codespaces

Prerequisites

Samples in this repo

ProjectPathDescription
FunctionsMcpToolsamples/FunctionsMcpTool/MCP tools, prompts, and structured content; includes blob storage tools, prompt templates, image content, and multi-content responses.
McpWeatherAppsamples/McpWeatherApp/MCP App with an interactive weather UI (MCP tool + resource + metadata).

Run locally

Each project has its own README with instructions for running locally, connecting to the MCP server, deploying to Azure, and more:

Next Steps