MCP ExplorerExplorer

Azure Functions Mcp Extension

@Azureon 5 days ago
2 MIT
FreeCommunity
AI Systems
Model Context Protocol extension for Azure Functions.

Overview

What is Azure Functions Mcp Extension

The Azure Functions MCP extension is a preview extension that enables Azure Functions applications to operate as scalable remote servers for the Model Context Protocol (MCP). It allows functions to efficiently handle requests from clients such as AI agents.

Use cases

This extension is particularly useful for defining tools that AI agents can leverage during their operations. It facilitates the creation of scalable applications capable of executing specific tasks defined through the MCP.

How to use

To start using the Azure Functions MCP extension, developers can refer to sample projects available in various programming languages, including C#, Python, TypeScript, and Java. The extension’s behavior can be configured through the host.json file, where developers can specify details like instructions, server name, and version.

Key features

Key features of the Azure Functions MCP extension include support for all programming stacks, integration with the isolated worker model for .NET, and a dedicated MCP tool trigger to enable task definition for AI client interactions.

Where to use

The Azure Functions MCP extension is ideal for applications requiring remote server capabilities for model context management, particularly in environments involving AI agents or tools that need to perform specific tasks dynamically.

Content

Build Status

Azure Functions MCP extension (Preview)

This repository contains an extension of Azure Functions to enable support for Model Context Protocol (MCP). Using this extension, an Azure Functions application can act as a scalable remote MCP server. The extension includes an MCP tool trigger to help you define tools that can be used by clients such as AI agents to perform defined tasks during their operation.

In addition to the host extension which supports all stacks, this repository also includes an integration for Functions projects using .NET on the isolated worker model.

Instructions

[!IMPORTANT]
The Azure Functions MCP extension is currently in preview. You can expect changes to the trigger and binding APIs prior to the extension becoming generally available.
You should avoid using preview extensions in production apps.

To get started with the extension, please see the following samples:

Language (Stack) Repo Location
C# (.NET) remote-mcp-functions-dotnet
Python remote-mcp-functions-python
TypeScript (Node.js) remote-mcp-functions-typescript
Java remote-mcp-functions-java

Additional information can also be found in the Azure Functions documentation.

Configuration

You can configure the extension behavior using the host.json file. The following is an example of the configurable settings:

{
  "version": "2.0",
  "extensions": {
    "mcp": {
      "instructions": "Some test instructions on how to use the server",
      "serverName": "TestServer",
      "serverVersion": "2.0.0"
    }
  }
}

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct.
For more information see the Code of Conduct FAQ or
contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
Microsoft’s Trademark & Brand Guidelines.
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party’s policies.

Tools

No tools

Comments