ProjGraph.Mcp 0.2.2

{
  "servers": {
    "ProjGraph.Mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": ["ProjGraph.Mcp@0.2.2", "--yes"]
    }
  }
}
                    
This package contains an MCP Server. The server can be used in VS Code by copying the generated JSON to your VS Code workspace's .vscode/mcp.json settings file.
dotnet tool install --global ProjGraph.Mcp --version 0.2.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local ProjGraph.Mcp --version 0.2.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ProjGraph.Mcp&version=0.2.2
                    
nuke :add-package ProjGraph.Mcp --version 0.2.2
                    

ProjGraph MCP Server

Model Context Protocol (MCP) server that enables AI assistants to analyze .NET solution architectures and generate Entity Relationship Diagrams.

Requirements

  • .NET 10.0 or later runtime

Available Tools

get_project_graph

Analyzes a solution or project file and returns the dependency graph as a Mermaid diagram.

Parameters:

  • path (string): Absolute path to .sln, .slnx, or .csproj file

Returns: Mermaid graph diagram code

Example prompts:

"Analyze the dependencies in ./MySolution.slnx"
"Show me the project structure"
"Are there any circular dependencies?"

get_erd

Generates a Mermaid Entity Relationship Diagram from an EF Core DbContext file.

Parameters:

  • path (string): Absolute path to DbContext .cs file
  • contextName (string, optional): Specific DbContext class name if multiple exist

Returns: Mermaid ERD diagram code

Features:

  • Detects entities, properties, and relationships
  • Shows primary keys, foreign keys, and constraints
  • Supports inheritance and base classes
  • Extracts MaxLength, Required, and other data annotations
  • Detects Fluent API shadow relationships
  • Handles many-to-many with join tables

Example prompts:

"Show me the database schema from ./Data/MyDbContext.cs"
"Generate an ERD for my DbContext"
"What are the entity relationships in my database?"

License

Licensed under the terms specified in the repository.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.2.2 26 1/20/2026
0.2.1 39 1/19/2026
0.2.0 45 1/16/2026
0.1.3 48 1/15/2026
0.1.2 45 1/14/2026
0.1.1 37 1/14/2026
0.1.0 39 1/14/2026