# Microsoft NuGet

> Microsoft NuGet is an MCP server for developer tools. Microsoft's NuGet server for package upgrades, vulnerability fixes and supply-chain checks. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** Windows, macOS, Linux, VS Code, CLI
- **Repository:** https://github.com/nuget/home/tree/HEAD/mcp
- **MCP Registry name:** com.microsoft/nuget
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-15

## About

The server reads your configured NuGet feeds for real-time package data, then plans work from a project's package graph and target frameworks. Its vulnerability planning is described as conservative and covers transitive dependencies.

Another capability reviews a repository's supply-chain posture, looking at Central Package Management, NuGet Audit, Package Source Mapping and NuGet.Config validity, and recommends hardening steps.

It needs .NET 10 Preview 6 or later because the dnx command downloads and runs it from nuget.org. It ships in-box with Visual Studio 2026, where it is enabled in the GitHub Copilot chat tools menu, and can be configured in Visual Studio 2022 (17.14 or later), VS Code and the GitHub Copilot coding agent.

## Features

- **Live feed data:** Uses your configured NuGet feeds.
- **Upgrade planning:** Plans upgrades from the package graph and target frameworks.
- **Vulnerability remediation:** Plans conservative fixes including transitive dependencies.
- **Supply-chain review:** Checks CPM, NuGet Audit, source mapping and NuGet.Config.
- **Visual Studio integration:** Ships in-box with Visual Studio 2026.

## Good for

- Fix a vulnerable package including transitive ones
- Plan a .NET upgrade
- Audit NuGet configuration
- Harden package source mapping
- Ask Copilot about package versions

## Install

### Claude Code (Terminal)

```sh
claude mcp add nuget -- dnx NuGet.Mcp.Server --yes
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "nuget": {
      "command": "dnx",
      "args": [
        "NuGet.Mcp.Server",
        "--yes"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "nuget": {
      "command": "dnx",
      "args": [
        "NuGet.Mcp.Server",
        "--yes"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "nuget": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "NuGet.Mcp.Server",
        "--yes"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "nuget": {
      "command": "dnx",
      "args": [
        "NuGet.Mcp.Server",
        "--yes"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "nuget": {
      "command": "dnx",
      "args": [
        "NuGet.Mcp.Server",
        "--yes"
      ]
    }
  }
}
```

## FAQ

### What do I need installed?

The .NET 10 Preview 6 SDK or later, for dnx.

### Is Microsoft NuGet built into Visual Studio?

Yes, in Visual Studio 2026; enable it in the Copilot tools menu.

### Which editors are covered?

Visual Studio, VS Code and the GitHub Copilot coding agent.

### How do I start Microsoft NuGet?

dnx NuGet.Mcp.Server --yes.

### How do I add Microsoft NuGet to Claude Code?

Run this command in your terminal: claude mcp add nuget -- dnx NuGet.Mcp.Server --yes

### What are the best alternatives to Microsoft NuGet?

The closest alternatives to Microsoft NuGet are Dependency Risk Audit, UNPKG, Dep Diff MCP, pinright and Keep Me Secure.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Dependency Risk Audit](https://ai-powered.com/mcp/dependency-risk-audit): Dependency Risk Audit is a freemium MCP server for developer tools.
- [UNPKG](https://ai-powered.com/mcp/unpkg): UNPKG is a free MCP server for security.
- [Dep Diff MCP](https://ai-powered.com/mcp/dep-diff-mcp): Dep Diff MCP is an open-source MCP server for developer tools.
- [pinright](https://ai-powered.com/mcp/pinright): pinright is an open-source MCP server for developer tools.
- [Keep Me Secure](https://ai-powered.com/mcp/keep-me-secure): Keep Me Secure is an open-source MCP server for security.
- [NPMScan](https://ai-powered.com/mcp/npmscan): NPMScan is a free MCP server for security.
- [Vdb](https://ai-powered.com/mcp/vdb): Vdb is a free MCP server for security.
- [GeekWala Dependency Scanner](https://ai-powered.com/mcp/geekwala-dependency-scanner): GeekWala Dependency Scanner is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/microsoft-nuget
