NDepend MCP Server

v1.0.0Developer Toolsstable

A suite of MCP tools that provides in-depth workspace analysis, advanced code inspection, and automated code-fix capabilities for .NET projects, built on the NDepend API.

ndepend-mcp-servermcpai-integration
Share:
37
Stars
0
Downloads
0
Weekly
0/5

What is NDepend MCP Server?

NDepend MCP Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to suite of mcp tools that provides in-depth workspace analysis, advanced code inspection, and automated code-fix capabilities for .net projects, built on the ndepend api.

A suite of MCP tools that provides in-depth workspace analysis, advanced code inspection, and automated code-fix capabilities for .NET projects, built on the NDepend API.

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

Features

  • A suite of MCP tools that provides in-depth workspace analys

Use Cases

Analyze .NET workspaces with advanced code inspection and automated code fixes. Perform in-depth workspace analysis using NDepend API.
ndepend

Maintainer

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

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx ndepend-mcp-server

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 NDepend MCP Server

NDepend MCP Server is an open-source Model Context Protocol server that exposes NDepend's deep .NET code analysis capabilities directly to AI coding assistants like GitHub Copilot and Claude. It gives the AI structured, unbiased workspace data — dependency graphs, code metrics, Roslyn analyzer results, ReSharper inspections, quality gate status, and NDepend CQLinq queries — without sending raw source code to the LLM, keeping responses fast and token costs low. .NET developers and architects use it to ask natural-language questions about their codebase, automatically fix complex multi-file issues, generate custom code rules, and explore architectural dependencies.

Prerequisites

  • .NET 10.0 SDK installed (required to build the server)
  • NDepend redistributable downloaded from https://www.ndepend.com/download and extracted; VisualNDepend.exe run at least once to activate a license or start an evaluation
  • Visual Studio 2022+ or VS Code with GitHub Copilot (agent mode) or another MCP-compatible client
  • Git to clone the repository
1

Clone the repository and extract NDepend

Clone the NDepend MCP Server repo and place the NDepend redistributable files inside the artifacts/ndepend subdirectory as expected by the build.

git clone https://github.com/ndepend/NDepend.MCP.Server.git
# Then unzip the NDepend redistributable into:
# NDepend.MCP.Server/artifacts/ndepend/
2

Activate NDepend license

Run VisualNDepend.exe from the artifacts/ndepend directory to start a trial or enter a license key. This step is required before the server can analyze code.

.\artifacts\ndepend\VisualNDepend.exe
3

Build the solution

Open the solution file in Visual Studio or build from the command line with dotnet. The compiled binaries land in artifacts/bin/.

dotnet build NDepend.Mcp.Server.sln --configuration Debug
4

Register the server in your MCP client

Add the stdio server entry to your MCP configuration file. In VS Code, this is .vscode/mcp.json or the global mcp.json; in Visual Studio, it is .vs/mcp.json or .mcp.json at the solution root.

{
  "servers": {
    "NDepend.Mcp.Server": {
      "type": "stdio",
      "command": "C:\\path\\to\\NDepend.MCP.Server\\artifacts\\bin\\NDepend.Mcp.StdioServer\\Debug\\net10.0\\NDepend.Mcp.StdioServer.exe",
      "env": {}
    }
  }
}
5

Initialize analysis in the AI assistant

In a Copilot or Claude conversation, ask the assistant to initialize NDepend against your .NET solution. This is required before any other NDepend tools can run.

6

Run analysis and explore results

After initialization, ask natural-language questions about code quality, dependencies, or issues. NDepend generates and executes CQLinq queries on the fly to answer them.

NDepend MCP Server Examples

Client configuration

VS Code .vscode/mcp.json entry for the NDepend stdio server.

{
  "servers": {
    "NDepend.Mcp.Server": {
      "type": "stdio",
      "command": "C:\\repos\\NDepend.MCP.Server\\artifacts\\bin\\NDepend.Mcp.StdioServer\\Debug\\net10.0\\NDepend.Mcp.StdioServer.exe",
      "env": {}
    }
  }
}

Prompts to try

Natural language questions you can ask once the server is initialized.

- "Run NDepend analysis on my solution and give me a summary."
- "Which methods are both poorly maintainable and insufficiently tested?"
- "Show callers and callees for the OrderService class."
- "List the new issues introduced since the baseline."
- "Find Clean Architecture violations in this solution."
- "Which Roslyn Analyzer rules are failing with more than 5 issues?"

Troubleshooting NDepend MCP Server

Server fails to start or logs show 'license not found'

VisualNDepend.exe must be run at least once before the MCP server can operate. Navigate to artifacts/ndepend/ and launch VisualNDepend.exe to complete license activation, then restart the MCP server.

'REQUIRED FIRST STEP' error when calling any NDepend tool

The ndepend-initialize-from-solution tool must be called before any other tool. Ask your AI assistant to 'initialize NDepend from my solution file at <path>.sln' to trigger initialization.

Build fails with .NET version mismatch

The server requires .NET 10.0 SDK. Run 'dotnet --version' to check your installed version. Download and install .NET 10.0 SDK from https://dotnet.microsoft.com/download if needed.

Frequently Asked Questions about NDepend MCP Server

What is NDepend MCP Server?

NDepend MCP Server is a Model Context Protocol (MCP) server that suite of mcp tools that provides in-depth workspace analysis, advanced code inspection, and automated code-fix capabilities for .net projects, built on the ndepend api. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install NDepend MCP Server?

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

Which AI clients work with NDepend MCP Server?

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

Is NDepend MCP Server free to use?

Yes, NDepend MCP Server 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": { "ndepend-mcp-server": { "command": "npx", "args": ["-y", "ndepend-mcp-server"] } } }

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

Read the full setup guide →

Ready to use NDepend MCP Server?

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