{"id":2378,"date":"2025-08-14T17:18:43","date_gmt":"2025-08-14T17:18:43","guid":{"rendered":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/2025\/08\/14\/announcing-the-nuget-mcp-server-preview\/"},"modified":"2025-08-14T17:18:43","modified_gmt":"2025-08-14T17:18:43","slug":"announcing-the-nuget-mcp-server-preview","status":"publish","type":"post","link":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/2025\/08\/14\/announcing-the-nuget-mcp-server-preview\/","title":{"rendered":"Announcing the NuGet MCP Server Preview"},"content":{"rendered":"<p>Last month, we announced support for <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/mcp-server-dotnet-nuget-quickstart\/\">building custom MCP servers with .NET and publishing them to NuGet<\/a>.<br \/>\nBuilding on that foundation, today we\u2019re announcing the official NuGet MCP Server, which enables you to integrate real-time NuGet package information and management tools directly into your AI-powered development workflow.<\/p>\n<h2>What is an MCP Server?<\/h2>\n<p>The <a href=\"https:\/\/modelcontextprotocol.io\/docs\/getting-started\/intro\">Model Context Protocol<\/a> (MCP) is an open standard that enables AI assistants to securely connect to external data sources and tools.<br \/>\nMCP servers act as bridges between AI assistants and various services, allowing for seamless integration and enhanced functionality.<\/p>\n<p>Since the NuGet package ecosystem is always evolving, large language models (LLMs) get out-of-date over time and there is a need for something that assists them in getting information in realtime.<br \/>\nThe NuGet MCP server provides LLMs with information about new and updated packages that have been published after the models as well as tools to complete package management tasks.<br \/>\nIt also can connect to the feeds you have configured including private feeds, allowing for a more complete view of your packages.  The NuGet MCP server utilizes an <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/introducing-nugetsolver-a-powerful-tool-for-resolving-nuget-dependency-conflicts-in-visual-studio\/\">algorithm called NuGetSolver<\/a> which was developed in collaboration with Microsoft Research which simplifies the process by automatically resolving NuGet dependency conflicts in your projects.<\/p>\n<h2>Getting Started<\/h2>\n<p>The NuGet MCP server is available as a <a href=\"https:\/\/www.nuget.org\/packages\/NuGet.Mcp.Server\">NuGet package<\/a> with the <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/mcp-server-dotnet-nuget-quickstart\/\">new functionality<\/a> in the .NET ecosystem for implementing and releasing MCP servers.<\/p>\n<h3>Prerequisites<\/h3>\n<p>Before you can use the NuGet MCP server, you will need to have <strong>.NET 10 Preview 6<\/strong> installed on your system.<br \/>\nYou can download it from the <a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet\/10.0\">official .NET download page<\/a>.<\/p>\n<h3>Configuration<\/h3>\n<p>To configure the NuGet MCP server, add the following configuration to your MCP client:<\/p>\n<p>{<br \/>\n  &#8220;servers&#8221;: {<br \/>\n    &#8220;nuget&#8221;: {<br \/>\n      &#8220;type&#8221;: &#8220;stdio&#8221;,<br \/>\n      &#8220;command&#8221;: &#8220;dnx&#8221;,<br \/>\n      &#8220;args&#8221;: [<br \/>\n        &#8220;NuGet.Mcp.Server&#8221;,<br \/>\n        &#8220;&#8211;prerelease&#8221;,<br \/>\n        &#8220;&#8211;yes&#8221;<br \/>\n      ]<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p><strong>Note<\/strong>: The MCP server on NuGet.org is in preview, so you\u2019ll need to use the \u2013prerelease flag to install it. This ensures you automatically get the latest preview versions as they\u2019re released.<\/p>\n<h4>Using a Specific Version<\/h4>\n<p>If you prefer to use a specific version of the MCP server instead of automatically updating to the latest preview, you can specify the version exact version:<\/p>\n<p>{<br \/>\n  &#8220;servers&#8221;: {<br \/>\n    &#8220;nuget&#8221;: {<br \/>\n      &#8220;type&#8221;: &#8220;stdio&#8221;,<br \/>\n      &#8220;command&#8221;: &#8220;dnx&#8221;,<br \/>\n      &#8220;args&#8221;: [<br \/>\n        &#8220;NuGet.Mcp.Server@0.2.0-preview&#8221;,<br \/>\n        &#8220;&#8211;yes&#8221;<br \/>\n      ]<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<h2>Current Capabilities<\/h2>\n<p>The NuGet MCP server currently supports the following functionality:<\/p>\n<p><strong>Package Version Discovery<\/strong>: Determine the latest version of a package available on your configured feeds<br \/>\n<strong>Security Updates<\/strong>: Update package vulnerabilities to the lowest compatible version that resolves security issues. This functionality will only update you to the lowest version that resolves the security issues, increasing the likelihood that the update will not break your project.<br \/>\n<strong>Version Updates<\/strong>: Update package versions to the highest compatible version with your project\u2019s target framework. Most tooling today that updates NuGet packages does not take into account a project\u2019s target framework, which can causes updates to fail.<\/p>\n<h2>Integration with Development Tools<\/h2>\n<h3>Visual Studio<\/h3>\n<p>To add the NuGet MCP server to Visual Studio, add the following to your .mcp.json file next to a solution or at %UserProfile%.mcp.json:<\/p>\n<p>{<br \/>\n  &#8220;servers&#8221;: {<br \/>\n    &#8220;nuget&#8221;: {<br \/>\n      &#8220;type&#8221;: &#8220;stdio&#8221;,<br \/>\n      &#8220;command&#8221;: &#8220;dnx&#8221;,<br \/>\n      &#8220;args&#8221;: [<br \/>\n        &#8220;NuGet.Mcp.Server&#8221;,<br \/>\n        &#8220;&#8211;prerelease&#8221;,<br \/>\n        &#8220;&#8211;yes&#8221;<br \/>\n      ]<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>There are several places that Visual Studio looks for MCP server configurations, see <a href=\"https:\/\/learn.microsoft.com\/visualstudio\/ide\/mcp-servers?view=vs-2022#file-locations-for-automatic-discovery-of-mcp-configuration\">File locations for automatic discovery of MCP configuration<\/a> for more information.<\/p>\n<p>When configured properly, the NuGet MCP server will automatically start and should look like this:<\/p>\n\n<h3>VS Code<\/h3>\n<p>The easiest way to add MCP servers to VS Code is to click one of the links below for your particular installation:<\/p>\n<p><a href=\"https:\/\/insiders.vscode.dev\/redirect\/mcp\/install?name=nuget&amp;config=%7B%22type%22%3A%20%22stdio%22%2C%22command%22%3A%20%22dnx%22%2C%22args%22%3A%20%5B%22NuGet.Mcp.Server%22%2C%22--prerelease%22%2C%22--yes%22%5D%7D\"><\/a> <a href=\"https:\/\/insiders.vscode.dev\/redirect\/mcp\/install?name=nuget&amp;config=%7B%22type%22%3A%20%22stdio%22%2C%22command%22%3A%20%22dnx%22%2C%22args%22%3A%20%5B%22NuGet.Mcp.Server%22%2C%22--prerelease%22%2C%22--yes%22%5D%7D&amp;quality=insiders\"><\/a><\/p>\n<p>Altneratively, you can manually add the NuGet MCP server to your VS Code by adding the the following snippet to your .vscode\/mcp.json file:<\/p>\n<p>{<br \/>\n  &#8220;servers&#8221;: {<br \/>\n    &#8220;nuget&#8221;: {<br \/>\n      &#8220;type&#8221;: &#8220;stdio&#8221;,<br \/>\n      &#8220;command&#8221;: &#8220;dnx&#8221;,<br \/>\n      &#8220;args&#8221;: [<br \/>\n        &#8220;NuGet.Mcp.Server&#8221;,<br \/>\n        &#8220;&#8211;prerelease&#8221;,<br \/>\n        &#8220;&#8211;yes&#8221;<br \/>\n      ]<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>When configured properly, the NuGet MCP server will automatically start and should look like this:<\/p>\n\n<h3>GitHub Coding Agent<\/h3>\n<p>The <a href=\"https:\/\/docs.github.com\/copilot\/concepts\/coding-agent\/coding-agent\">GitHub Coding Agent<\/a> can utilize the NuGet MCP server to assist with dependency management in your repositories, making it easier to maintain and update your projects\u2019 package references.<br \/>\nSince the NuGet MCP server requires .NET 10 SDK Preview 6 or greater, you\u2019ll need to add the following file to your repository:<\/p>\n<p>.github\/workflows\/copilot-setup-steps.yml<\/p>\n<p>name: &#8220;Copilot Setup Steps&#8221;<\/p>\n<p>on:<br \/>\n  workflow_dispatch:<br \/>\n  push:<br \/>\n    paths:<br \/>\n      &#8211; .github\/workflows\/copilot-setup-steps.yml<br \/>\n  pull_request:<br \/>\n    paths:<br \/>\n      &#8211; .github\/workflows\/copilot-setup-steps.yml<\/p>\n<p>jobs:<br \/>\n  # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.<br \/>\n  copilot-setup-steps:<br \/>\n    runs-on: ubuntu-latest<\/p>\n<p>    permissions:<br \/>\n      contents: read<\/p>\n<p>    steps:<br \/>\n      &#8211; name: Install .NET 10.x<br \/>\n        uses: actions\/setup-dotnet@v4<br \/>\n        with:<br \/>\n          dotnet-version: |<br \/>\n            10.x<br \/>\n          dotnet-quality: preview<\/p>\n<p>See <a href=\"https:\/\/docs.github.com\/copilot\/how-tos\/use-copilot-agents\/coding-agent\/customize-the-agent-environment\">Customizing the development environment for Copilot coding agent<\/a> for more information.<\/p>\n<p>To configure the NuGet MCP server, visit Settings -&gt; Copilot -&gt; Coding agent in your repository and add this to your \u201cMCP Configuration\u201d<\/p>\n<p>{<br \/>\n  &#8220;mcpServers&#8221;: {<br \/>\n    &#8220;nuget&#8221;: {<br \/>\n      &#8220;command&#8221;: &#8220;dnx&#8221;,<br \/>\n      &#8220;args&#8221;: [<br \/>\n        &#8220;NuGet.Mcp.Server&#8221;,<br \/>\n        &#8220;&#8211;prerelease&#8221;,<br \/>\n        &#8220;&#8211;yes&#8221;<br \/>\n      ],<br \/>\n      &#8220;tools&#8221;: [&#8220;*&#8221;],<br \/>\n      &#8220;type&#8221;: &#8220;local&#8221;<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>The configuration page should look like this:<\/p>\n\n<h2>Preview Status and Feedback<\/h2>\n<p>Note: This is a preview release of the NuGet MCP server. We\u2019re actively building new features and improvements, and we\u2019d love your feedback on how to make it more valuable to you.<br \/>\nYour input will ensure the tool evolves to better meet the needs of the .NET development community.<\/p>\n<p>Please file an issue on <a href=\"https:\/\/github.com\/NuGet\/Home\/issues\/new?template=MCPSERVER.yml\">NuGet\/Home<\/a> with your thoughts, suggestions, or any issues you encounter.<\/p>\n<p>The post <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/nuget-mcp-server-preview\/\">Announcing the NuGet MCP Server Preview<\/a> appeared first on <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\">.NET Blog<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Last month, we announced support for building custom MCP servers with .NET and publishing them to NuGet. Building on that [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7],"tags":[],"class_list":["post-2378","post","type-post","status-publish","format-standard","hentry","category-dotnet"],"_links":{"self":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/posts\/2378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/comments?post=2378"}],"version-history":[{"count":0,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/posts\/2378\/revisions"}],"wp:attachment":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/media?parent=2378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/categories?post=2378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/tags?post=2378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}