Microsoft.Azure.Functions.Worker.Extensions.Mcp
1.0.0-preview.1
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.Azure.Functions.Worker.Extensions.Mcp --version 1.0.0-preview.1
NuGet\Install-Package Microsoft.Azure.Functions.Worker.Extensions.Mcp -Version 1.0.0-preview.1
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Mcp" Version="1.0.0-preview.1" />
<PackageVersion Include="Microsoft.Azure.Functions.Worker.Extensions.Mcp" Version="1.0.0-preview.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Mcp" />
paket add Microsoft.Azure.Functions.Worker.Extensions.Mcp --version 1.0.0-preview.1
#r "nuget: Microsoft.Azure.Functions.Worker.Extensions.Mcp, 1.0.0-preview.1"
#:package Microsoft.Azure.Functions.Worker.Extensions.Mcp@1.0.0-preview.1
#addin nuget:?package=Microsoft.Azure.Functions.Worker.Extensions.Mcp&version=1.0.0-preview.1&prerelease
#tool nuget:?package=Microsoft.Azure.Functions.Worker.Extensions.Mcp&version=1.0.0-preview.1&prerelease
Microsoft.Azure.Functions.Worker.Extensions.Mcp
This package provides triggers and bindings to support exposing Azure Functions .NET isolated functions as a Model Context Protocol (MCP) server.
Example usage
The following is an example of how to use the MCP tool trigger in an Azure Functions application:
[Function(nameof(GetSnippet))]
public object GetSnippet(
[McpToolTrigger(GetSnippetToolName, GetSnippetToolDescription)] ToolInvocationContext context,
[BlobInput(BlobPath)] string snippetContent)
{
return snippetContent;
}
You can also bind to the MCP tool property arguments using the McpToolProperty input binding as follows:
[Function(nameof(SaveSnippet))]
[BlobOutput(BlobPath)]
public string SaveSnippet(
[McpToolTrigger(SaveSnippetToolName, SaveSnippetToolDescription)] ToolInvocationContext context,
[McpToolProperty(SnippetNamePropertyName, PropertyType, SnippetNamePropertyDescription)] string name,
[McpToolProperty(SnippetPropertyName, PropertyType, SnippetPropertyDescription)] string snippet)
{
return snippet;
}
The above example will automatically expose the name and snippet parameters as properties for the MCP tool.
Alternatively, you can define properties when creating your application as follows:
builder.EnableMcpToolMetadata();
// Define properties for the MCP tool:
builder.ConfigureMcpTool("SaveSnippet")
.WithProperty(SnippetNamePropertyName, PropertyType, SnippetNamePropertyDescription);
The above example demonstrates how the properties for the tool named SaveSnippet are defined.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Microsoft.Azure.Functions.Worker.Extensions.Mcp:
| Package | Downloads |
|---|---|
|
Microsoft.Agents.AI.Hosting.AzureFunctions
Provides durable agent hosting and orchestration support for Microsoft Agent Framework workloads. |
|
|
Microsoft.Azure.Functions.Worker.Extensions.Mcp.Sdk
SDK integration layer for Azure Functions MCP extension, providing access to ModelContextProtocol SDK models and APIs for .NET isolated functions. |
|
|
AzureFunctions.TestFramework.Mcp
McpToolTrigger, McpResourceTrigger, and McpPromptTrigger invocation support for the Azure Functions Test Framework. Enables triggering MCP-triggered functions in integration tests. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Microsoft.Azure.Functions.Worker.Extensions.Mcp:
| Repository | Stars |
|---|---|
|
Azure/azure-functions-dotnet-worker
Azure Functions out-of-process .NET language worker
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0-preview.1 | 365 | 4/3/2026 |
| 1.4.0 | 3,486 | 4/2/2026 |
| 1.3.0 | 4,130 | 3/11/2026 |
| 1.2.0-preview.1 | 820 | 1/30/2026 |
| 1.1.0 | 19,981 | 11/26/2025 |
| 1.0.0 | 86,743 | 10/9/2025 |
| 1.0.0-preview.7 | 9,028 | 8/28/2025 |
| 1.0.0-preview.6 | 10,776 | 5/16/2025 |
| 1.0.0-preview.5 | 1,731 | 5/12/2025 |
| 1.0.0-preview.4 | 443 | 5/9/2025 |
| 1.0.0-preview.3 | 267 | 5/8/2025 |
| 1.0.0-preview.2 | 2,362 | 4/6/2025 |
| 1.0.0-preview.1 | 436 | 4/4/2025 |