MCPify 0.0.2-preview

This is a prerelease version of MCPify.
There is a newer version of this package available.
See the version list below for details.
dotnet add package MCPify --version 0.0.2-preview
                    
NuGet\Install-Package MCPify -Version 0.0.2-preview
                    
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.2-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MCPify" Version="0.0.2-preview" />
                    
Directory.Packages.props
<PackageReference Include="MCPify" />
                    
Project file
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.2-preview
                    
#r "nuget: MCPify, 0.0.2-preview"
                    
#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.2-preview
                    
#: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.2-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MCPify&version=0.0.2-preview&prerelease
                    
Install as a Cake Tool

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 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on MCPify:

Repository Stars
erwinkramer/bank-api
The Bank API is a design reference project suitable to bootstrap development for a compliant and modern API.
Version Downloads Last Updated
0.0.14-preview 79 2/7/2026
0.0.13-preview 79 1/27/2026
0.0.12 661 1/24/2026
0.0.12-preview 69 1/23/2026
0.0.11-preview 80 1/18/2026
0.0.10-preview 65 1/18/2026
0.0.9-preview 94 1/16/2026
0.0.8 93 1/16/2026
0.0.8-preview 140 12/26/2025
0.0.7 197 12/23/2025
0.0.7-preview 98 12/20/2025
0.0.6-preview 135 12/13/2025
0.0.5-preview 181 12/7/2025
0.0.4 648 12/3/2025
0.0.4-preview 635 12/2/2025
0.0.3 638 12/3/2025
0.0.3-preview 155 11/24/2025
0.0.2 637 12/2/2025
0.0.2-preview 131 11/23/2025
0.0.1-preview 125 11/23/2025
Loading failed