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
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package ProjGraph.Mcp --version 0.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.csprojfile
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.csfilecontextName(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 | Versions 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.