MCPify 0.0.3-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.3-preview
                    
NuGet\Install-Package MCPify -Version 0.0.3-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.3-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MCPify" Version="0.0.3-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.3-preview
                    
#r "nuget: MCPify, 0.0.3-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.3-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.3-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MCPify&version=0.0.3-preview&prerelease
                    
Install as a Cake Tool

MCPify Sample Application

This sample demonstrates how to use MCPify to expose the Swagger Petstore API as an MCP server.

What This Does

This application:

  1. Loads the Swagger Petstore OpenAPI specification from https://petstore.swagger.io/v2/swagger.json
  2. Dynamically generates MCP tools for each API operation
  3. Exposes an MCP server with HTTP transport (SSE) endpoints

Running the Sample

To start the server, run the following command in the Sample directory:

cd Sample
dotnet run

The application will start and listen on HTTP port 5000:

  • URL: http://localhost:5000

MCP Endpoints

Once running, the following endpoints are available:

  • /sse - Server-Sent Events endpoint for MCP communication
  • /messages - HTTP messages endpoint for MCP communication
  • /status - Simple status page to verify the server is running

Connecting an MCP Client

You can connect any MCP client to this server using the SSE endpoint.

Connection URL:

http://localhost:5000/sse

Example: Claude Desktop

Add the following to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "petstore": {
      "url": "http://localhost:5000/sse"
    }
  }
}

Example: VS Code MCP Extension

If you are using a generic MCP extension for VS Code, add this to your configuration file:

{
  "servers": {
    "pets-http-sse": {
      "url": "http://localhost:5000/sse",
      "type": "http"
    }
  },
  "inputs": []
}

Available Tools

All Petstore API operations are exposed as MCP tools. By default, they are prefixed with petstore_:

  • petstore_addPet - Add a new pet to the store
  • petstore_updatePet - Update an existing pet
  • petstore_findPetsByStatus - Finds pets by status
  • petstore_findPetsByTags - Finds pets by tags
  • petstore_getPetById - Find pet by ID
  • petstore_deletePet - Deletes a pet
  • And many more...

Customization

Filtering Operations

You can filter which operations to expose by uncommenting and modifying the filter in Program.cs:

options.Filter = op => op.Route.Contains("/pet");

Changing the Prefix

Modify the ToolPrefix option in Program.cs:

options.ToolPrefix = "myapi_";

Using a Different API

Replace the swaggerUrl and apiBaseUrl with any OpenAPI/Swagger specification:

builder.Services.AddMcpify(
    swaggerUrl: "[https://your-api.com/swagger.json](https://your-api.com/swagger.json)",
    apiBaseUrl: "[https://your-api.com/api](https://your-api.com/api)",
    options => { /* ... */ });

Learn More

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

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.11-preview 47 1/18/2026
0.0.10-preview 35 1/18/2026
0.0.9-preview 46 1/16/2026
0.0.8 58 1/16/2026
0.0.8-preview 115 12/26/2025
0.0.7 170 12/23/2025
0.0.7-preview 78 12/20/2025
0.0.6-preview 114 12/13/2025
0.0.5-preview 161 12/7/2025
0.0.4 626 12/3/2025
0.0.4-preview 612 12/2/2025
0.0.3 619 12/3/2025
0.0.3-preview 134 11/24/2025
0.0.2 618 12/2/2025
0.0.2-preview 110 11/23/2025
0.0.1 116 11/23/2025
0.0.1-preview 103 11/23/2025