Jeff Kluge announces the preview of the NuGet MCP Server, highlighting its integration into AI-powered development workflows, advanced package management features, and support for Visual Studio, VS Code, and GitHub Copilot.

Announcing the NuGet MCP Server Preview: Real-Time NuGet Package Management with AI Integration

Jeff Kluge introduces the NuGet MCP Server in a new preview, extending Microsoft .NET development workflows with real-time NuGet package management leveraging AI. This server is designed to connect AI assistants and development environment tools like GitHub Copilot Coding Agent, Visual Studio, and VS Code, with live NuGet package information, advanced update logic, and automation capabilities.

What is an MCP Server?

The Model Context Protocol (MCP) is an open standard, enabling AI assistants to securely interface with external tools and data sources. MCP servers provide a bridge between AI-powered agents and services such as NuGet, making up-to-date information and management capabilities accessible via automated assistants.

Why a NuGet MCP Server?

With the constant evolution of the NuGet ecosystem, language models and code assistants can become outdated quickly. The NuGet MCP Server delivers:

  • Real-time package version discovery
  • Automated security vulnerability remediation (updating to the lowest compatible secure version)
  • Framework-aware package updating (ensuring updates don’t break projects)
  • Support for both public and private NuGet feeds
  • Integration with the NuGetSolver algorithm (for automatic dependency conflict resolution)

Getting Started

Prerequisites:

Installation:

  • Available as a NuGet package
  • Add the following configuration for the MCP client:
{
  "servers": {
    "nuget": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "NuGet.Mcp.Server",
        "--prerelease",
        "--yes"
      ]
    }
  }
}
  • To use a specific version:
{
  "servers": {
    "nuget": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "NuGet.Mcp.Server@0.2.0-preview",
        "--yes"
      ]
    }
  }
}

Current Capabilities of NuGet MCP Server

  • Package Version Discovery: Find latest available versions from any configured feed
  • Security Updates: Update insecure packages to the lowest fixed version, minimizing breaking changes
  • Version Updates: Update to highest compatible version considering project’s target frameworks
  • Integration with private feeds for broader package discovery

Integration with Development Tools

Visual Studio

VS Code

  • One-click install for insiders and stable builds
  • .vscode/mcp.json manual config support

GitHub Copilot Coding Agent

  • Automates package management in repositories
  • Requires .NET 10 SDK Preview 6+
  • Example workflow file for setup:
name: "Copilot Setup Steps"
on:
  workflow_dispatch:
  push:
    paths:
      - .github/workflows/copilot-setup-steps.yml
  pull_request:
    paths:
      - .github/workflows/copilot-setup-steps.yml
jobs:
  copilot-setup-steps:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:
      - name: Install .NET 10.x
        uses: actions/setup-dotnet@v4
        with:
          dotnet-version: |
            1. x
          dotnet-quality: preview
  • Configure MCP server in repository settings under Copilot -> Coding agent

Preview Status and Feedback

This is an early preview release. The team encourages feedback, feature requests, and bug reports via NuGet/Home GitHub Issues to help guide future development.


For more detailed guides, sample configurations, and additional information, refer to the linked documentation and blog posts cited throughout this announcement.

This post appeared first on “Microsoft .NET Blog”. Read the entire article here