Nabu.NET library converts ASP.NET Core Web APIs into MCP servers with one attribute
A new open-source library called Nabu.Mcp.AspNetCore allows developers to expose existing ASP.NET Core Web API endpoints as Model Context Protocol (MCP) tools by adding a single [McpTool] attribute. The library preserves the full ASP.NET Core middleware pipeline, meaning authentication, authorization, validation, and rate limiting remain fully enforced on every MCP call. Tool descriptions are automatically derived from XML documentation, while input schemas are generated from CLR types, reducing the need for manual configuration. Per-caller tool visibility is supported, so the tools/list response is filtered according to each caller's authorization policies. The package is MIT licensed, targets netstandard2.0 through net10.0, and is available on NuGet under the name Nabu.Mcp.AspNetCore.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in