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
Prerequisites
- JDK 17 (or newer)
- Apache Maven
- Azure Functions Core Tools v4 >=
4.0.7030 - Azure Developer CLI (for deployment)
- Visual Studio Code + Azure Functions extension (recommended)
Samples in this repo
| Project | Path | Description |
|---|---|---|
| FunctionsMcpTool | samples/FunctionsMcpTool/ | MCP tools, prompts, and structured content; includes blob storage tools, prompt templates, image content, and multi-content responses. |
| McpWeatherApp | samples/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
- 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.