The NuGet Search and Package Management MCP Server is a .NET-based implementation of the Model Context Protocol (MCP) designed to facilitate NuGet package search and management. This server provides tools for querying NuGet packages, retrieving package content, and accessing specific files within packages. It is part of the NetMcpServers collection, a series of MCP servers written in .NET.
The server includes a search tool that allows users to query NuGet packages using NuGet query syntax.
nuget_search
query
(Uses NuGet query syntax)nuget_sources
(optional, default is NuGet.org)allow_prerelease
(default: false)skip
(default: 0)take
(default: 30)Retrieve the content of a specific file within a NuGet package.
nuget_file_content
nuget://{packageId}/{version}{/filePath*}
Retrieve the entire content of a NuGet package as a zip file.
nuget_package
nuget://{packageId}/{version}
The server is configured to work with NuGet.org by default but allows for customization of NuGet sources through the nuget_sources
parameter. The server supports both stable and prerelease packages, with the ability to control the number of results returned and the starting point of the search.
To use the server, simply call the appropriate tool or resource template with the required parameters. For example, to search for a package:
var results = await nuget_search("query=Newtonsoft.Json");
To retrieve a specific file from a package:
var fileContent = await nuget_file_content("nuget://Newtonsoft.Json/13.0.1/LICENSE.md");
This project is part of the NetMcpServers collection, which includes various MCP servers written in .NET. It is licensed under the MIT license, making it free to use, modify, and distribute.
For more details, visit the GitHub repository.