# NuGet MCP Server

> Microsoft's NuGet MCP server: fix vulnerable .NET packages, plan upgrades and review your NuGet supply-chain security.

The NuGet MCP server from Microsoft's NuGet team. It runs on your machine and uses your configured NuGet feeds for real-time package information, so your agent can fix vulnerable packages, upgrade dependencies and harden your repository's NuGet setup.

What you can do with it
- Fix known vulnerabilities in your NuGet dependencies, including transitive ones, with the smallest safe version changes
- Upgrade packages to the latest versions compatible with your project's target frameworks
- Update one or more packages to an exact version while keeping the dependency graph compatible
- Look up a package's latest version, and read its AGENTS.md context or README
- Review your NuGet supply-chain posture: Central Package Management, NuGet Audit, Package Source Mapping and NuGet.Config validity

How it connects
It needs the .NET 10 SDK or later, which adds the dnx command. Your agent starts it with dnx, which downloads the NuGet.Mcp.Server package from nuget.org and runs it; add @ and a version to the package name to pin one. It ships in-box with Visual Studio 2026, where you turn it on once in GitHub Copilot Chat's tools menu, and Microsoft documents setup for Visual Studio 2022 (17.14 or later), VS Code and the GitHub Copilot coding agent.

Good to know
- There's no sign-in: it works with the NuGet feeds you've already configured.
- It sends usage telemetry to Microsoft by default; set DOTNET_CLI_TELEMETRY_OPTOUT to true to turn that off.

- Type: Plugin
- Made by: Microsoft
- Category: Developer tools
- Formats: Local MCP
- Version: 1.4.16
- Website: https://learn.microsoft.com/nuget/concepts/nuget-mcp-server
- Source: https://github.com/NuGet/Home/tree/HEAD/mcp
- Page: https://pluginboard.ai/plugins/nuget-mcp-server

## Works with

- Claude
- GitHub Copilot
- Cursor
- Claude Code
- Codex
- Antigravity
- Gemini CLI
- OpenClaw
- OpenCode
- Hermes Agent

## Install

### Claude

Add to claude_desktop_config.json:

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

### GitHub Copilot

Add to VS Code: vscode:mcp/install?%7B%22name%22%3A%22nuget-mcp-server%22%2C%22command%22%3A%22dnx%22%2C%22args%22%3A%5B%22NuGet.Mcp.Server%401.4.16%22%2C%22--yes%22%5D%7D

Run in your terminal:

```shell
code --add-mcp '{"name":"nuget-mcp-server","command":"dnx","args":["NuGet.Mcp.Server@1.4.16","--yes"]}'
```

Copilot CLI:

```shell
copilot mcp add nuget-mcp-server -- dnx NuGet.Mcp.Server@1.4.16 --yes
```

### Cursor

Add to Cursor: cursor://anysphere.cursor-deeplink/mcp/install?name=nuget-mcp-server&config=eyJjb21tYW5kIjoiZG54IiwiYXJncyI6WyJOdUdldC5NY3AuU2VydmVyQDEuNC4xNiIsIi0teWVzIl19

Add to .cursor/mcp.json:

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

### Claude Code

Run in your terminal:

```shell
claude mcp add nuget-mcp-server -- dnx NuGet.Mcp.Server@1.4.16 --yes
```

### Codex

Run in your terminal:

```shell
codex mcp add nuget-mcp-server -- dnx NuGet.Mcp.Server@1.4.16 --yes
```

### Antigravity

Add to ~/.gemini/config/mcp_config.json:

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

### Gemini CLI

Run in your terminal:

```shell
gemini mcp add nuget-mcp-server dnx NuGet.Mcp.Server@1.4.16 --yes
```

### OpenClaw

In a terminal: Run openclaw mcp add nuget-mcp-server --command dnx, with --arg before each argument (NuGet.Mcp.Server@1.4.16 --yes) and --env NAME=value for each variable it needs.

### OpenCode

Run in your terminal:

```shell
opencode mcp add nuget-mcp-server -- dnx NuGet.Mcp.Server@1.4.16 --yes
```

### Hermes Agent

Add to ~/.hermes/config.yaml:

```json
{
  "mcp_servers": {
    "nuget-mcp-server": {
      "command": "dnx",
      "args": [
        "NuGet.Mcp.Server@1.4.16",
        "--yes"
      ]
    }
  }
}
```

---
From Pluginboard (https://pluginboard.ai).
