NuGet.Mcp.Server 1.0.0

Prefix Reserved
{
  "inputs": [],
  "servers": {
    "NuGet.Mcp.Server": {
      "type": "stdio",
      "command": "dnx",
      "args": ["NuGet.Mcp.Server@", "--yes"],
      "env": {}
    }
  }
}
                    
This package contains an MCP Server. The server can be used in VS Code by copying the generated JSON to your VS Code workspace's .vscode/mcp.json settings file.
dotnet tool install --global NuGet.Mcp.Server --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local NuGet.Mcp.Server --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=NuGet.Mcp.Server&version=1.0.0
                    
nuke :add-package NuGet.Mcp.Server --version 1.0.0
                    

NuGet MCP Server

Contains an Model Context Protocol (MCP) server for NuGet, enabling advanced tooling and automation scenarios for NuGet package management.

Capabilities

  • Uses your configured NuGet feeds to get real time information about packages.
  • Provides the ability to update packages with known vulnerabilities, including transitive dependencies.
  • Provides advanced tooling for updating packages which provides the best updates based on a projects unique package graph and target frameworks.

Requirements

To run the MCP server, you must have .NET 10 Preview 6 or later installed. This version of .NET adds a command, dnx, which is used to download, install, and run the MCP server from nuget.org.

To verify your .NET version, run the following command in your terminal:

dotnet --info

Remote GitHub MCP Server

Install in VS Code Install in VS Code Insiders

Configuration

To configure the MCP server for use with Visual Studio or VS Code, use the following snippet and include it in your mcp.json:

{
  "servers": {
    "nuget": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "NuGet.Mcp.Server",
        "--source",
        "https://api.nuget.org/v3/index.json",
        "--prerelease",
        "--yes"
      ]
    }
  }
}

NOTE: The --prerelease flag is required to use the MCP server from NuGet.org, as it is currently in preview and will cause new versions to be downloaded automatically. If you'd like to use a specific version of the MCP server, you can specify it with the --version argument, like so:

{
  "servers": {
    "nuget": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "NuGet.Mcp.Server",
        "--source",
        "https://api.nuget.org/v3/index.json",
        "--version",
        "0.1.0-preview",
        "--yes"
      ]
    }
  }
}

When configured this way, you will need to update the version as new release become available.

GitHub Copilot

You can also configure the MCP Server to work with GitHub Copilot as a Coding Agent in your repositories.

First, you need to add the MCP Server configuration in your Copilot Coding Agent:

{ 
  "mcpServers": {
    "NuGet": {
      "type": "local",
      "command": "dnx",
      "args": ["NuGet.Mcp.Server", "--yes"],
      "tools": ["*"],
      "env": {}
    }
  } 
}

This will make all the MCP Server tools available, if you want specific tools you can list them in the "tools" parameter array.

You will also need to make sure Copilot installs .NET 10 Preview 6 or higher in order to have the command dnx and install the MCP Server.

.github/workflows/copilot-setup-steps.yml

name: "Copilot Setup Steps"

# Automatically run the setup steps when they are changed to allow for easy validation, and
# allow manual testing through the repository's "Actions" tab
on:
  workflow_dispatch:
  push:
    paths:
      - .github/workflows/copilot-setup-steps.yml
  pull_request:
    paths:
      - .github/workflows/copilot-setup-steps.yml

jobs:
  # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
  copilot-setup-steps:
    runs-on: ubuntu-latest

    # Set the permissions to the lowest permissions possible needed for your steps.
    # Copilot will be given its own token for its operations.
    permissions:
      # If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
      contents: read

    # You can define any steps you want, and they will run before the agent starts.
    # If you do not check out your code, Copilot will do this for you.
    steps:
      - name: Install .NET 10.x
        uses: actions/setup-dotnet@v5
        with:
          dotnet-version: |
            10.x
          dotnet-quality: preview

      - name: dotnet --info
        run: dotnet --info

The format of the configuration file can differ for different environments. Below is a table with a link to documentation on how to configure it.

| Environment | Documentation | |-------------|--------------| | Visual Studio | File locations for automatic discovery of MCP configuration | | VS Code | MCP configuration in VS Code | | GitHub Copilot Coding Agent | Setting up MCP servers in a repository

Currently Supported Tools

  • get-nuget-solver: Fix all your package vulnerable version by updating your packages (direct and transitive) to the best compatible non-vulnerable version.
  • get-nuget-solver-latest-versions: Fix all your package vulnerable version by updating your packages (direct and transitive) to the latest compatible non-vulnerable version.
  • get-latest-package-version: Gets the latest version of a NuGet package.
  • get-package-readme: Gets the README for a NuGet package and returns it as markdown.
  • update-package: Updates installed packages to the specified version if compatible with the project configuration. It will also install/update packages needed to complete the operation.

Support

If you experience an issue with the NuGet MCP server or have any other feedback, please open an issue on the NuGet GitHub repository. Please provide the requested information in the issue template so that we can better understand and address your issue or suggestion.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 78 10/7/2025
0.1.4-preview 22,603 9/3/2025