dotnet-dependency-graph is a dotnet global tool and library that helps you analyze the dependencies of .NET SDK-style projects. The most notable difference to other tools providing such functionality is that dotnet-dependency-graph also includes transitive dependencies, thus creating a complete dependency graph.
In addition to printing and tracing dependencies from the command line, the tool can run as a Model Context Protocol (MCP) server (dependency-graph mcp), making the dependency graph available to AI agents. See the tool documentation for details.
This repository contains the dotnet global tool DependencyGraph.App and the core library DependencyGraph.Core.