mcpField
G
Getting Started with Remote MCP Servers using Azure Functions (Java)

Getting Started with Remote MCP Servers using Azure Functions (Java)

Local
github.com/Azure-SamplesCloud & Infra2Updated 21w ago

About Getting Started with Remote MCP Servers using Azure Functions (Java)

A Java sample collection for building and deploying remote MCP servers with Azure Functions. It is aimed at developers and includes tool, prompt, structured-content, and interactive weather app examples.

Key features

  1. 01Java-based Azure Functions samples
  2. 02Local execution and debugging
  3. 03Deployment with `azd up`
  4. 04Microsoft Entra authentication
  5. 05Tool, prompt, and structured-content examples
  6. 06Interactive weather MCP App

Use cases

  1. 01Prototype a remote MCP server in Java
  2. 02Debug a sample locally before deployment
  3. 03Deploy MCP samples to Azure
  4. 04Explore tools, prompts, and MCP App resources

MCP support

The samples demonstrate remote MCP servers that expose tools, prompts, structured content, and an interactive weather app through MCP.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"remote-mcp-functions-java": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"\\"
]
}
}
}
Run commanddocker run -i --rm '\'

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
oci\

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Remote MCP Servers using Azure Functions (Java)

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.