NuGet

v1.0.0Developer Toolsstable

.NET MCP server that gives LLMs real NuGet API metadata to reduce hallucinations

ai-toolsdeveloper-toolmcpmcp-servernuget
Share:
18
Stars
0
Downloads
0
Weekly
0/5

What is NuGet?

NuGet is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to .net mcp server that gives llms real nuget api metadata to reduce hallucinations

.NET MCP server that gives LLMs real NuGet API metadata to reduce hallucinations

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • .NET MCP server that gives LLMs real NuGet API metadata to r

Use Cases

Query NuGet package metadata to reduce LLM hallucinations. Get accurate package information and dependency data. Search and analyze .NET packages programmatically.
DimonSmart

Maintainer

LicenseNOASSERTION
Languagec#
Versionv1.0.0
UpdatedApr 9, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx nugetmcpserver

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use NuGet

NuGetMcpServer is a .NET MCP server that gives AI assistants real-time access to the NuGet package registry, exposing 12 tools for searching packages, inspecting public APIs, comparing versions, and reading type definitions. By grounding LLM suggestions in actual NuGet metadata — real class names, interface definitions, and method signatures — it significantly reduces hallucinations when working with .NET libraries. It runs via the dnx tool runner or Docker and connects to any MCP-compatible client.

Prerequisites

  • .NET SDK installed (for dnx tool runner method)
  • Docker installed (for the Docker method, no .NET SDK needed)
  • An MCP-enabled client such as VS Code with GitHub Copilot, Claude Desktop, or Cursor
  • Optional: NUGET_SOURCES environment variable for private NuGet feeds
1

Choose your installation method: dnx or Docker

NuGetMcpServer supports two primary run methods. The dnx method requires .NET SDK; the Docker method requires only Docker. Pick whichever matches your environment.

2

Configure with dnx (recommended for .NET developers)

Add the server to your MCP configuration using dnx. Replace <version> with the latest release number from the GitHub releases page.

{
  "servers": {
    "nuget": {
      "type": "stdio",
      "command": "dnx",
      "args": ["DimonSmart.NugetMcpServer@<version>", "--yes"]
    }
  }
}
3

Configure with Docker

If you prefer Docker, configure your MCP client to run the published container image. This requires no .NET SDK on the host.

{
  "mcpServers": {
    "nuget": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/dimonsmart/nugetmcpserver:latest"]
    }
  }
}
4

Optional: configure private NuGet feeds

If your project uses private NuGet feeds, set the NUGET_SOURCES environment variable in your config. Separate multiple sources with semicolons.

{
  "mcpServers": {
    "nuget": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/dimonsmart/nugetmcpserver:latest"],
      "env": {
        "NUGET_SOURCES": "https://pkgs.dev.azure.com/myorg/_packaging/myfeed/nuget/v3/index.json"
      }
    }
  }
}
5

Restart your MCP client and verify tools appear

Restart your client. The server exposes 12 tools including search_packages, get_package_info, list_interfaces, get_class_or_record_or_struct_definition, compare_package_versions, and more.

NuGet Examples

Client configuration

Docker-based configuration for claude_desktop_config.json — no .NET SDK required on the host machine.

{
  "mcpServers": {
    "nuget": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/dimonsmart/nugetmcpserver:latest"]
    }
  }
}

Prompts to try

Example prompts that leverage the real NuGet API to prevent hallucinated method names or package versions.

- "Search NuGet for the latest version of Dapper and show me its public API"
- "What interfaces does the Newtonsoft.Json 13.0.3 package expose?"
- "Compare Dapper 2.0.0 and Dapper 2.1.0 — what breaking changes are there?"
- "List all classes in the AutoMapper 12.0.1 package"
- "Show me the definition of IMapper from AutoMapper"

Troubleshooting NuGet

dnx command not found

Install the dnx tool runner via 'dotnet tool install -g dnx' or ensure your .NET SDK is on the PATH. Alternatively, switch to the Docker method which has no .NET SDK dependency.

Private feed packages are not found

Set the NUGET_SOURCES environment variable in your MCP config to include your private feed URL. For Azure DevOps feeds, use the NuGet v3 index URL and ensure your machine has valid credentials configured in nuget.config.

Docker image fails to pull or run

Run 'docker pull ghcr.io/dimonsmart/nugetmcpserver:latest' manually to check connectivity to GitHub Container Registry. Ensure Docker is running and your user has permission to run containers.

Frequently Asked Questions about NuGet

What is NuGet?

NuGet is a Model Context Protocol (MCP) server that .net mcp server that gives llms real nuget api metadata to reduce hallucinations It connects AI assistants to external tools and data sources through a standardized interface.

How do I install NuGet?

Follow the installation instructions on the NuGet GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with NuGet?

NuGet works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is NuGet free to use?

Yes, NuGet is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "nugetmcpserver": { "command": "npx", "args": ["-y", "nugetmcpserver"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use NuGet?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides