MCPify 0.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MCPify --version 0.0.1
NuGet\Install-Package MCPify -Version 0.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MCPify" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MCPify" Version="0.0.1" />
<PackageReference Include="MCPify" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MCPify --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MCPify, 0.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MCPify@0.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MCPify&version=0.0.1
#tool nuget:?package=MCPify&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MCPify
MCPify is a NuGet package that dynamically loads OpenAPI/Swagger specifications at runtime and exposes each API operation as a tool in an MCP (Model Context Protocol) server.
Features
- Dynamic MCP Tools: Automatically converts OpenAPI operations into MCP tools
- OpenAPI Version Support: Supports OpenAPI v2, v3.x, and v3.1+
- Extensible Architecture: Provider-based design for easy customization
- ASP.NET Core Integration: Minimal and idiomatic integration with ASP.NET Core
Installation
dotnet add package MCPify
Quick Start
using MCPify.Hosting;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddMcpify(
swaggerUrl: "https://petstore.swagger.io/v2/swagger.json",
apiBaseUrl: "https://petstore.swagger.io/v2",
options =>
{
options.ToolPrefix = "petstore_";
// options.Filter = op => op.Route.Contains("/pet");
});
var app = builder.Build();
app.MapMcpifyEndpoint();
app.Run();
Running the Sample
A complete sample application is included in the Sample/ directory:
cd Sample
dotnet run
Then connect your MCP client to http://localhost:5000/sse
See Sample/README.md for more details.
Configuration Options
McpifyOptions
- ToolPrefix: Optional prefix for all generated tool names
- Filter: Optional filter to include only specific operations
- ProviderOverride: Custom OpenAPI provider implementation
- SchemaGeneratorOverride: Custom JSON Schema generator implementation
Architecture
MCPify follows a clean, layered architecture:
- Core: Configuration and data models
- OpenApi: OpenAPI document parsing and operation extraction
- Schema: JSON Schema generation for MCP tool definitions
- Tools: MCP tool implementations that proxy to REST APIs
- Hosting: ASP.NET Core integration extensions
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Microsoft.OpenApi.Readers (>= 1.6.28)
- ModelContextProtocol (>= 0.4.0-preview.3)
- ModelContextProtocol.AspNetCore (>= 0.4.0-preview.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.8-preview | 91 | 12/26/2025 |
| 0.0.7 | 160 | 12/23/2025 |
| 0.0.7-preview | 73 | 12/20/2025 |
| 0.0.6-preview | 110 | 12/13/2025 |
| 0.0.5-preview | 157 | 12/7/2025 |
| 0.0.4 | 622 | 12/3/2025 |
| 0.0.4-preview | 609 | 12/2/2025 |
| 0.0.3 | 614 | 12/3/2025 |
| 0.0.3-preview | 131 | 11/24/2025 |
| 0.0.2 | 615 | 12/2/2025 |
| 0.0.2-preview | 107 | 11/23/2025 |
| 0.0.1 | 113 | 11/23/2025 |
| 0.0.1-preview | 101 | 11/23/2025 |