Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
HandyS11 avatar

ProjGraph MCP Server

  • 1 repo stars
  • Updated July 21, 2026
  • HandyS11/ProjGraph

ProjGraph is an MCP server that analyzes .NET solutions and generates Mermaid diagrams, ERDs, class diagrams, and project metrics.

About

ProjGraph is an MCP server aimed at developers maintaining.NET solutions who need fast, trustworthy diagrams without clicking through IDE plugins for every question. The agent points tools at your solution, and ProjGraph returns Mermaid graphs, entity-relationship views, class diagrams, and project metrics you can paste into READMEs, ADRs, or pull-request descriptions. It ships via NuGet as ProjGraph.Mcp using stdio, which fits local Claude Code and Cursor workflows on Windows-heavy.NET stacks. Canonical placement is Build → docs because the primary deliverable is documentation-grade visuals, though the same outputs support Ship code review and Operate iteration when onboarding or auditing legacy assemblies. Intermediate complexity assumes comfort with dotnet tooling and MCP registration. It is a structural analysis connector, not a deploy or test runner—pair it with your normal build and CI skills for end-to-end clarity.

  • Analyzes .NET solutions and emits Mermaid graphs for architecture views
  • Generates ERDs and class diagrams from solution structure
  • Surfaces project metrics alongside visual outputs for agent summaries
  • Distributed as NuGet package ProjGraph.Mcp with stdio transport
  • Version 1.0.2 with site handys11.github.io/ProjGraph and GitHub HandyS11/ProjGraph

ProjGraph MCP Server by the numbers

  • Data as of Jul 22, 2026 (Skillselion catalog sync)
claude mcp add ProjGraphMCPServer -- npx -y HandyS11/ProjGraph

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars1
Last updatedJuly 21, 2026
RepositoryHandyS11/ProjGraph

What it does

Turn a.NET solution on disk into Mermaid architecture graphs, ERDs, class diagrams, and metrics your agent can explain during refactors.

Who is it for?

Best when you're on multi-project.NET solutions and want diagram generation inside the agent instead of manual PlantUML upkeep.

Skip if: JavaScript-only monorepos, teams without.NET SDK installed, or shops that need runtime APM instead of static structure graphs.

What you get

You get agent-ready Mermaid and metrics from the live solution so documentation and review conversations stay aligned with the code.

  • Mermaid architecture graphs from solution analysis
  • ERD and class diagram outputs for documentation
  • Project metrics summaries agents can cite in review

By the numbers

  • Server version 1.0.2
  • 1 NuGet package (ProjGraph.Mcp) with stdio transport
  • Outputs include Mermaid graphs, ERDs, class diagrams, and project metrics per description
README.md

ProjGraph

.NET tool ecosystem for visualizing project dependencies, database schemas, and class hierarchies.

CI CD License

ProjGraph.Cli NuGet ProjGraph.Cli Downloads ProjGraph.Mcp NuGet ProjGraph.Mcp Downloads

ProjGraph is a .NET tool ecosystem for visualizing project dependencies, database schemas, and class hierarchies. It provides both a CLI for manual analysis and an MCP server for AI-assisted exploration of your codebase architecture.

🚀 Quick Start

CLI Tool

Install and use the command-line tool for immediate visualization:

# Install
dotnet tool install -g ProjGraph.Cli

# Visualize project dependencies
projgraph visualize ./MySolution.slnx

# Generate Entity Relationship Diagram (from DbContext or ModelSnapshot)
projgraph erd ./Data/MyDbContext.cs

# Generate Class Diagram for a class and its hierarchy
projgraph classdiagram ./Models/User.cs

# Compute key solution metrics (project counts, depth, hotspots)
projgraph stats ./MySolution.slnx

📖 Full CLI Documentation

MCP Server

Configure your MCP client (e.g., GitHub Copilot, Claude) with the following settings:

Find the latest version number on NuGet

{
  "servers": {
    "ProjGraph.Mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": ["ProjGraph.Mcp@x.x.x", "--yes"]
    }
  }
}

📖 Full MCP Documentation

✨ Key Features

  • 📊 Multiple Output Formats: ASCII tree and Mermaid.js diagrams
  • 🗄️ Entity Relationship Diagrams: Generate ERDs from EF Core DbContext or ModelSnapshot files
  • 🏗️ Class Hierarchies: Visualize class diagrams with inheritance and dependencies
  • 📈 Solution Metrics: Project counts, type breakdown, dependency depth, and hotspot detection
  • 📁 Modern .NET Support: Full support for .slnx, .sln, and .csproj files
  • 🤖 AI Integration: MCP server for GitHub Copilot, Claude, and other AI assistants
  • ⚡ Fast & Reliable: Efficient parsing and graph algorithms

🛠️ Development

Prerequisites

Run Locally

# CLI
dotnet run --project src/ProjGraph.Cli -- visualize ./ProjGraph.slnx

# Stats
dotnet run --project src/ProjGraph.Cli -- stats ./ProjGraph.slnx

# MCP Server
dotnet run --project src/ProjGraph.Mcp

📝 Usage Examples

Analyze Project Dependencies

# Tree format (default)
projgraph visualize ./MySolution.sln

# Mermaid format for documentation
projgraph visualize ./MySolution.slnx --format mermaid --output docs/dependencies.mmd

Generate Database Diagrams

# Generate ERD from DbContext
projgraph erd ./Data/MyDbContext.cs

# Generate ERD from ModelSnapshot (leveraging migrations)
projgraph erd ./Migrations/MyDbContextModelSnapshot.cs

# Output to Markdown for documentation
projgraph erd ./Data/MyDbContext.cs --output docs/database-schema.md

Visualize Class Hierarchies

# Generate diagram for a class and its inheritance and dependencies
projgraph classdiagram ./Models/Admin.cs -i -d

# Control discovery depth (default: 1)
projgraph classdiagram ./Models/Admin.cs -i -d --depth 5

Analyze Solution Metrics

# Display project counts, depth stats, and hotspot projects
projgraph stats ./MySolution.slnx

# Show top 10 most-referenced projects
projgraph stats ./MySolution.slnx --top 10

With AI Assistants

Once the MCP server is configured:

You: "Analyze the dependencies in my solution"
AI: [Generate the architecture diagram]

You: "Generate a class diagram for the User class"
AI: [Generates the class hierarchy]

You: "Show me the entity relationships in my DbContext"
AI: [Generates the database schema]

You: "Give me a health summary of my solution"
AI: [Returns project counts, depth stats, and hotspot projects]

🔗 Links

📚 Samples & Showcase

Explore live examples of ProjGraph's capabilities in the Samples Showcase. Available samples include:

  • E-commerce ERD: Complex database model with inheritance and hierarchies.
  • Design Patterns: Deep class diagrams showing pattern implementation.
  • Modular Architecture: Project dependency visualization for modern solutions.
  • Simple Hierarchy: Easy entry-level examples for new users.
  • Solution Metrics: Architectural health summary with project counts, depth, and hotspots.

📚 Documentation

Recommended MCP Servers

How it compares

.NET-focused diagram MCP server, not a generic Git skill or cloud deploy integration.

FAQ

Who is ProjGraph for?

Developers and small teams on.NET who use Claude Code or Cursor and need ERDs, class diagrams, and Mermaid architecture from the actual solution.

When should I use ProjGraph?

Use before refactors, when writing onboarding docs, during PR review of solution structure, or when an agent needs metrics-backed explanations of project layout.

How do I add ProjGraph to my agent?

Install ProjGraph.Mcp from NuGet, configure stdio MCP in your client, ensure dotnet can load the solution path you specify, then invoke analysis tools from agent chat.

Developer Toolsbackenddocsdevops

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.