NuGet Context MCP Server

NuGet Context MCP Server

nuget-context-server•byplucked

A C# Model Context Protocol server that analyzes .NET solutions and projects and provides NuGet package information to LLMs and other development tools.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Analyzes .NET solution and project files to find NuGet dependencies and their latest available versions.
  • •Searches the configured NuGet feed for packages matching a term, with pagination and pre-release options.
  • •Lists available versions and retrieves the latest stable or pre-release version for a package ID.
  • •Caches NuGet feed results locally using SQLite for improved performance.

BEST FOR

  • •Giving AI agents context about NuGet package dependencies in .NET solutions and projects.
  • •Programmatically querying NuGet package metadata, versions, and dependency details from development tools.
  • •IDE extensions and other MCP clients that start the server and communicate over standard input/output.

ABOUT NUGET-CONTEXT-SERVER

NuGet Context MCP Server is cataloged as an MCP server attributed to plucked. A C# Model Context Protocol server that analyzes .NET solutions and projects and provides NuGet package information to LLMs and other development tools. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for NuGet Context MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which NuGet package details can the server retrieve?

It can retrieve detailed metadata such as description, authors, and URLs for a specific package ID and optional version.

How does the server communicate with MCP clients?

It is typically started by an MCP client and communicates over standard input/output (stdio).

上游原版 README

在 GitHub 查看同一版本原文

README.md · b4f92be22e20 · 采集于 2026-11-13 12:26:22 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

NuGet Context MCP Server

License: MIT smithery badge .NET Test

A C# application that functions as a Model Context Protocol (MCP) server, providing context about .NET project dependencies (NuGet packages) to Large Language Models (LLMs) or other development tools.

Overview

This server analyzes .NET solutions (.sln) and projects (.csproj) to extract NuGet package information. It interacts with NuGet feeds to fetch package details, versions, and metadata, caching results locally using SQLite for improved performance. These capabilities are exposed as tools via the Model Context Protocol (MCP), allowing AI agents or other tools to query NuGet information programmatically.

Features

The server exposes the following tools via MCP:

  • AnalyzeProjectDependencies: Analyzes a .sln or .csproj file to find NuGet dependencies and their latest available versions.
  • SearchNuGetPackages: Searches the configured NuGet feed for packages matching a search term, with options for pagination and including pre-release versions.
  • GetNuGetPackageVersions: Lists all available versions (stable or pre-release) for a specific package ID.
  • GetLatestNuGetPackageVersion: Gets the latest stable or pre-release version string for a specific package ID.
  • GetNuGetPackageDetails: Retrieves detailed metadata (description, authors, URLs, etc.) for a specific package ID and optional version.

Prerequisites

  • .NET 9 SDK (or later compatible version)

Installation & Build

  1. Clone the repository:
    git clone https://github.com/plucked/nuget-context-server
    cd nuget-context-server
    
  2. Build the server:
    dotnet build --configuration Release
    
    The main executable will be within the src/NuGetContextMcpServer.Host/bin/Release/net9.0/ directory (adjust path based on actual build output).

Testing

This project uses NUnit for unit and integration testing and Moq for mocking dependencies in unit tests.

To run all tests, navigate to the repository root and execute:

dotnet test

Note: Running the integration tests (NuGetContextMcpServer.Integration.Tests) requires Docker to be installed and running, as they may utilize test containers. You can download Docker Desktop from here.

The test projects are located in the tests/ directory:

  • NuGetContextMcpServer.Application.Tests: Unit tests for the application layer services.
  • NuGetContextMcpServer.Infrastructure.Tests: Unit tests for the infrastructure layer components (e.g., caching, parsing).
  • NuGetContextMcpServer.Integration.Tests: Integration tests that may interact with actual file systems or potentially external resources (though typically mocked or using local test assets).

Usage & Configuration

This server is designed to be run by an MCP client application (like an IDE extension). The client is responsible for starting the server process and communicating with it, typically via standard input/output (stdio).

Configuration:

The server uses appsettings.json (and environment-specific overrides like appsettings.Development.json) located in the src/NuGetContextMcpServer.Host directory for configuration:

  • NuGetSettings:
    • QueryFeedUrl: The URL of the NuGet v3 feed index (defaults to https://api.nuget.org/v3/index.json).
    • Username (optional): Username for authenticated feeds.
    • PasswordOrPat (optional): Password or Personal Access Token (PAT) for authenticated feeds.
  • CacheSettings:
    • DatabasePath: Path to the SQLite cache file (defaults to nuget_cache.db in the working directory).
    • DefaultExpirationMinutes: Default cache duration in minutes (defaults to 60).
  • Logging: Configured via Serilog settings in appsettings.json. Logs are written to a file by default.

Example MCP Client Configuration (using stdio):

An MCP client would typically need configuration similar to this (syntax may vary based on the client):

{
  "mcpServers": {
    "nuget-context": {
      "command": "dotnet",
      "args": [
        "watch",
        "run",
        "--non-interactive",
        "--project",
        "src/NuGetContextMcpServer.Host/NuGetContextMcpServer.Host.csproj",
        "--",
        "--transport", "stdio"
      ],
      "cwd": ".",
      "disabled": false
    }
  }
}
  • command: The executable to run (dotnet).
  • args: Arguments passed to the command. Uses dotnet watch run for development to automatically restart the server on file changes. The --transport stdio argument tells the server to use standard I/O for MCP communication. For production or non-watch scenarios, replace "watch" with "run" and remove "--non-interactive".
  • cwd: The working directory from which the command should be run (usually the repository root).

Architecture

The server uses a layered architecture built on the .NET Generic Host:

  • Host: Manages application lifetime, Dependency Injection (DI), configuration, logging, and MCP communication setup.
  • Application: Defines service interfaces and contains core application logic and MCP tool definitions.
  • Infrastructure: Provides concrete implementations for:
    • NuGet feed interaction (NuGet.Protocol).
    • Project/Solution parsing (Microsoft.Build).
    • Caching (Microsoft.Data.Sqlite).

Contributing

Contributions are welcome! Please refer to the contribution guidelines for more details.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for NuGet Context MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/nuget-context-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools