nuget ProjGraph.McpstdioMITupdated 14d ago
.NET tool ecosystem for visualizing project dependencies, database schemas, and class hierarchies.
¿Qué puedes hacer con ProjGraph MCP Server?
ProjGraph
.NET tool ecosystem for visualizing project dependencies, database schemas, and class hierarchies.
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
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"]
}
}
}
✨ Key Features
- 📊 Multiple Output Formats: ASCII tree and Mermaid.js diagrams
- 🗄️ Entity Relationship Diagrams: Generate ERDs from EF Core
DbContextorModelSnapshotfiles - 🏗️ 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.csprojfiles - 🤖 AI Integration: MCP server for GitHub Copilot, Claude, and other AI assistants
- ⚡ Fast & Reliable: Efficient parsing and graph algorithms
🛠️ Development
Prerequisites
- .NET 10.0 SDK or later
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
# Control how EF Core owned types (OwnsOne/OwnsMany) are rendered:
# 'mirror' (default) inlines a table-split owned type onto its owner as EF names it;
# 'classic' gives every owned type its own entity box regardless of table mapping
projgraph erd ./Data/MyDbContext.cs --owned-mode classic
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
- CLI Package: ProjGraph.Cli on NuGet
- MCP Package: ProjGraph.Mcp on NuGet
📚 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
- Architecture Overview - Solution structure and design decisions
- Contributing Guide - How to contribute to the project
- Security Policy - Security reporting guidelines
Instalación
Añade ProjGraph MCP Server a tu cliente. Elige el que uses.
claude mcp add projgraph-mcp -- dnx ProjGraph.Mcp --yescodex mcp add projgraph-mcp -- dnx ProjGraph.Mcp --yesamp mcp add projgraph-mcp -- dnx ProjGraph.Mcp --yes{
"mcpServers": {
"projgraph-mcp": {
"command": "dnx",
"args": [
"ProjGraph.Mcp",
"--yes"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"projgraph-mcp": {
"command": "dnx",
"args": [
"ProjGraph.Mcp",
"--yes"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"projgraph-mcp","command":"dnx","args":["ProjGraph.Mcp","--yes"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"projgraph-mcp": {
"command": "dnx",
"args": [
"ProjGraph.Mcp",
"--yes"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"projgraph-mcp": {
"command": "dnx",
"args": [
"ProjGraph.Mcp",
"--yes"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"projgraph-mcp": {
"command": "dnx",
"args": [
"ProjGraph.Mcp",
"--yes"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"projgraph-mcp": {
"type": "local",
"command": "dnx",
"args": [
"ProjGraph.Mcp",
"--yes"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"projgraph-mcp": {
"command": {
"path": "dnx",
"args": [
"ProjGraph.Mcp",
"--yes"
]
}
}
}
}Add to your Zed `settings.json`.
dnx ProjGraph.Mcp --yesRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Puntuación
39 / 100
Incompleta
- Documentación25/25
- Mantenimiento25/25
- Confianza13/20
- Capacidad0/15
- Instalación12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 6 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Historial de versiones
| Versiones | Publicada |
|---|---|
| 1.1.0Última | 7 ago 2026 |
| 1.0.2 | 7 abr 2026 |
| 1.0.1 | 4 abr 2026 |
| 1.0.0 | 12 mar 2026 |
| 0.8.0 | 11 mar 2026 |
| 0.7.1 | 4 mar 2026 |
| 0.7.0 | 26 feb 2026 |
| 0.6.7 | 26 feb 2026 |