MCPify 0.0.3-preview
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
<PackageReference Include="MCPify" Version="0.0.3-preview" />
<PackageVersion Include="MCPify" Version="0.0.3-preview" />
<PackageReference Include="MCPify" />
paket add MCPify --version 0.0.3-preview
#r "nuget: MCPify, 0.0.3-preview"
#:package MCPify@0.0.3-preview
#addin nuget:?package=MCPify&version=0.0.3-preview&prerelease
#tool nuget:?package=MCPify&version=0.0.3-preview&prerelease
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:
- Loads the Swagger Petstore OpenAPI specification from
https://petstore.swagger.io/v2/swagger.json - Dynamically generates MCP tools for each API operation
- 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 storepetstore_updatePet- Update an existing petpetstore_findPetsByStatus- Finds pets by statuspetstore_findPetsByTags- Finds pets by tagspetstore_getPetById- Find pet by IDpetstore_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 | 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. |
-
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.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 |