Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
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.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Automate workflows.
Transcend MCP Server — Workflows tools.
Same catalog task: Automate workflows.
GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more
Same catalog task: Automate workflows.
Paid cron for AI agents: we call your https URL on schedule, signed. No account, paid with x402.
Fetched from the repository for this visit.

NDepend.MCP.Server is now part of NDepend.AI, the NDepend initiative to fix .NET issues at scale with AI. NDepend drives your coding agent (Claude Code, Codex, GitHub Copilot, Junie) to fix hundreds of issues in a single run, then rebuilds, runs the tests, reviews each changed method and re-analyzes the code, so the progress is measured.
Watch the NDepend.AI video:
The NDepend.MCP.Server is a Model Context Protocol (MCP) server that delivers deep workspace analysis and advanced code inspection capabilities for .NET projects, powered by the NDepend API.
It turns NDepend's deep code insights into AI-powered actions:
Its key strengths are:
Since the project is open source, you’re free to adapt and extend the server with MCP tools that fit your workflow.
Watch this video featuring the NDepend MCP Server, including five complete demos and an in-depth guide to creating your own C# MCP Server:
Clone or download this repository into a local folder on your machine (referred to as %ndp-mcp-svr-dir%).
First get the NDepend zipped redistributable from: https://www.ndepend.com/download
Unzip it in %ndp-mcp-svr-dir%\artifacts\ndepend

REQUIRED: Run VisualNDepend.exe once to start your evaluation or register a license.
On Linux/macOS, run dotnet NDepend.Console.MultiOS.dll /regeval (or /reglic <key>) from the redistributable's net10.0 directory instead.
Then rebuild the solution %ndp-mcp-svr-dir%\NDepend.Mcp.Server.slnx (.NET 10.0 required)
DLLs and executables built can be found here:
%ndp-mcp-svr-dir%\artifacts\bin\NDepend.Mcp.StdioServer\Debug\net10.0\NDepend.Mcp.StdioServer.exe
%ndp-mcp-svr-dir%\artifacts\bin\NDepend.Mcp.HttpServer\Debug\net10.0\NDepend.Mcp.HttpServer.exe
The NDepend MCP Server is a stdio server: the coding agent launches it and talks to it over standard input/output. Every agent below needs the same two things: a server name and the command that starts the server.
Server name: use a name without dots, such as ndepend. Codex reads the name as a TOML key (a dot would split it), and the other agents derive their tool ids from it.
Command:
| OS | Command |
|---|---|
| Windows | %ndp-mcp-svr-dir%\artifacts\bin\NDepend.Mcp.StdioServer\Debug\net10.0\NDepend.Mcp.StdioServer.exe |
| Linux / macOS | dotnet %ndp-mcp-svr-dir%/artifacts/bin/NDepend.Mcp.StdioServer/Debug/net10.0/NDepend.Mcp.StdioServer.dll |
No .exe apphost is produced on Linux/macOS, so the server is launched through the dotnet host there. The same commands work with the pre-built server shipped in the NDepend redistributable's net10.0 directory (<ndepend-install>\net10.0\NDepend.Mcp.StdioServer.exe, or dotnet <ndepend-install>/net10.0/NDepend.Mcp.StdioServer.dll).
Optional arguments, appended after the command:
--load-ndproj-or-slnx <path> loads an NDepend project (.ndproj) or a solution (.slnx / .sln) at startup. Without it, the agent calls ndepend-initialize-from-solution first.--log-directory <dir> sets where the logs go (see Logs). Without it, logs go to a logs directory next to the server. When the directory cannot be created, the server falls back to the temp directory.Loading a project and running an analysis can take minutes on a large code base: raise the agent's MCP startup and tool-call timeouts where it has them (see Codex below).
From the command line (--scope user for every project, --scope project to share it through a .mcp.json at the repository root):
claude mcp add ndepend --scope user -- "%ndp-mcp-svr-dir%\artifacts\bin\NDepend.Mcp.StdioServer\Debug\net10.0\NDepend.Mcp.StdioServer.exe"
claude mcp add ndepend --scope user -- dotnet "%ndp-mcp-svr-dir%/artifacts/bin/NDepend.Mcp.StdioServer/Debug/net10.0/NDepend.Mcp.StdioServer.dll"
or in the repository's .mcp.json:
{
"mcpServers": {
"ndepend": {
"command": "dotnet",
"args": ["%ndp-mcp-svr-dir%/artifacts/bin/NDepend.Mcp.StdioServer/Debug/net10.0/NDepend.Mcp.StdioServer.dll"]
}
}
}
Check it with claude mcp list, or /mcp inside a session.
From the command line:
codex mcp add ndepend -- dotnet "%ndp-mcp-svr-dir%/artifacts/bin/NDepend.Mcp.StdioServer/Debug/net10.0/NDepend.Mcp.StdioServer.dll"
or in ~/.codex/config.toml. The timeouts matter here: Codex's defaults are shorter than a project load or an analysis.
[mcp_servers.ndepend]
command = "dotnet"
args = ["%ndp-mcp-svr-dir%/artifacts/bin/NDepend.Mcp.StdioServer/Debug/net10.0/NDepend.Mcp.StdioServer.dll"]
startup_timeout_sec = 300
tool_timeout_sec = 300
On Windows, command is the .exe path and args is empty (or holds the optional arguments). In TOML, write Windows paths with forward slashes or doubled backslashes.
Visual Studio 2026 and VS Code. Both IDEs can register the server from their menus (Visual Studio on the left, VS Code on the right):

This adds to the MCP JSON configuration file:
{
"inputs": [],
"servers": {
"ndepend": {
"type": "stdio",
"command": "%ndp-mcp-svr-dir%\\artifacts\\bin\\NDepend.Mcp.StdioServer\\Debug\\net10.0\\NDepend.Mcp.StdioServer.exe",
"env": {}
}
}
}
On Linux/macOS, use "command": "dotnet" and "args": ["<path to NDepend.Mcp.StdioServer.dll>"].
The configuration file can live here:
C:\Users\%usr%\AppData\Roaming\Code\User\mcp.json - Global configuration for all solutions
[SOLUTIONDIR]\.vs\mcp.json - Visual Studio only, solution-specific, user-specific
[SOLUTIONDIR]\.mcp.json - Solution-level, can be tracked in source control
[SOLUTIONDIR]\.vscode\mcp.json - Supports both VS Code and Visual Studio
If the same MCP server is listed in both a global and a solution-specific configuration file, Copilot treats them as separate servers, which can cause conflicts.
Copilot CLI. From the command line:
copilot mcp add ndepend -- dotnet "%ndp-mcp-svr-dir%/artifacts/bin/NDepend.Mcp.StdioServer/Debug/net10.0/NDepend.Mcp.StdioServer.dll"
This writes the user configuration ~/.copilot/mcp-config.json. A workspace can also declare it in .mcp.json or .github/mcp.json:
{
"mcpServers": {
"ndepend": {
"type": "local",
"command": "dotnet",
"args": ["%ndp-mcp-svr-dir%/artifacts/bin/NDepend.Mcp.StdioServer/Debug/net10.0/NDepend.Mcp.StdioServer.dll"],
"tools": ["*"]
}
}
}
Check it with copilot mcp list.
Junie reads mcp.json from ~/.junie/mcp/ (every project) and from .junie/mcp/ in the project (this project only):
{
"mcpServers": {
"ndepend": {
"command": "dotnet",
"args": ["%ndp-mcp-svr-dir%/artifacts/bin/NDepend.Mcp.StdioServer/Debug/net10.0/NDepend.Mcp.StdioServer.dll"]
}
}
}
The Junie CLI can also read additional folders with --mcp-location=<folder>.
NDepend.Mcp.HttpServer serves the same tools over Streamable HTTP, at http://localhost:3001/mcp by default (--port <n> to change it). Start it yourself, then register the URL:
claude mcp add --transport http ndepend http://localhost:3001/mcp
codex mcp add ndepend --url http://localhost:3001/mcp
copilot mcp add --transport http ndepend http://localhost:3001/mcp
or, in a Visual Studio / VS Code MCP JSON file:
{
"inputs": [],
"servers": {
"ndepend": {
"type": "http",
"url": "http://localhost:3001/mcp"
}
}
}
%ndp-mcp-svr-dir%\artifacts\logs
Once configured, you can ask questions like:
run ndepend analysis
give me analysis details
build an ndepend web report
list pairs of class that uses each other
which ctor that register to some events in a non disposable class
check for the SOLID open close principle
list methods that are both poorly maintainable and insufficiently tested
find Clean Architecture violations

which callers and callees for this class
show a call graph of this method

which new issue in files named like Period
fix the first one
which code sprawl related issues

which complex method poorly covered by tests
list less maintainable methods
which quality gate fail
which quality gate got fixed since the baseline
which Roslyn Analyzer fail?
which ndepend rule fail with more than 5 issues
which class is related to Authentification
which source file changed since the baseline
describe changes in the third one
show diff for the 5 last
ndepend-initialize-from-solution: Initialize the NDepend analysis session with a .NET solution file. If an NDepend project (.ndproj file) is attached to the solution, use it. Else create an NDepend project side-by-side with the solution and analyze it.
Use when:
ndepend-run-analysis: Run the NDepend analysis on the initialized workspace and update all session data (dependencies, issues, metrics, etc...). Returns analysis data loaded (snapshot date, baseline snapshot date, .ndar analysis result file...).
Use when:
ndepend-run-analysis-build-report: Run the NDepend analysis, update all session data, and build a web report, open it in the browser.
Use when:
ndepend-search-code-metrics: Collect and analyze code metrics for quality assessment.
Use when:
Also use for code search when:
ndepend-list-dependencies: Collect and present dependencies for code elements with comprehensive context. Also generate a HTML SVG diagram of the required dependency.
Use when:
ndepend-list-issues: List issues scoped by user's request with comprehensive details.
Use when:
ndepend-get-issue-details-to-fix-it: Retrieve comprehensive diagnostic information for a specific issue.
Use when:
ndepend-list-all-rules-summary: Return hierarchical categorized summary of all rules in the current project, with each the number of issues found.
Use when:
ndepend-list-rules-detailed or ndepend-list-issuesfilterRuleCategories and filterRuleIds before calling ndepend-list-rules-detailed or ndepend-list-issuesndepend-list-rules-detailed: Return paginated list of rules with descriptions and fix guidance.
Use when:
ndepend-list-all-rules-summary to get detailed infondepend-list-quality-gates-status: Return status of each quality gate to assess code quality standards.
Use when:
ndepend-get-sources: Retrieve source code as raw text from NDepend.
Use when:
ndepend-diff-sources: Invokes NDepend's diff action to compare a source file's current content against its baseline using the configured source compare tool.
Use when:
ndepend-gen-code-query-and-rule: Provide prompts to the LLM to make it an expert in code queries and rule generation. The LLM first identifies the code querying features it needs based on the user’s request, then it calls this tool to obtain a prompt for each feature choosen.
Use when:
Available code query kind prompts:
code-query-list: Returns collection of code elements with propertiescode-rule: Quality rule identifying violationsquality-gate: Quality criterion with WARN/FAIL thresholdsquerying-issue-rule: Selects issues and rulestrend-metric: Scalar value stored over time to plot chartcode-query-scalar: Returns single numeric valueAvailable features prompts:
code-query-essential (ALWAYS REQUIRED)line-of-code, maintainability, complexity, coverage, commentusage-dependency, parent-children-relationship, inheritance-and-base-class, interfacesolid-principles, clean-architecture, encapsulation-and-visibility, state-mutabilitydiff-since-baseline, naming, attribute, source-file-declarationevent-pattern, constructor-instantiationndepend-run-code-query-or-rule: Compile and execute code query or rule against the session's analysis result and baseline.
Use when:
Also use to check whether a generated query compiles (parameters compileOnly set to True). If the query fails to compile, an McpException is thrown containing the compilation errors in its message, allowing the LLM to correct them.
Windows, Linux or MacOS
.NET 10.0 or higher
ModelContextProtocol NuGet package (loaded at build time)
NDepend version 2026.1.3 or upper redistributable (evaluation or license)
This project is open source, but it relies on the NDepend.API, which requires a separate license (either a free evaluation or a paid license) to use.
Contributions are welcome! Please feel free to submit pull requests or open issues.
This project is open source under the MIT License. It depends on the proprietary NDepend.API (https://www.ndepend.com/) which must be obtained separately (evaluation or license). No rights to the NDepend API are granted by this project.
Loading reviews...
GitHub checked 136h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.