NuGet
.NET MCP server that gives LLMs real NuGet API metadata to reduce hallucinations
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
Maintainer
Works with
Installation
Manual Installation
npx nugetmcpserverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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.
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"]
}
}
}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"]
}
}
}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"
}
}
}
}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.
NuGet Alternatives — Similar Developer Tools Servers
Looking for alternatives to NuGet? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up NuGet in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.