
ProjGraph MCP Server
io.github.HandyS11由 GitHub 帳號 HandyS11 發布v1.2.0更新於 Oct 27, 2026
Analyze .NET solutions: Generate Mermaid graphs, ERDs, class diagrams, and project metrics.
概覽
本機 MCP 伺服器,分析 .NET 解決方案並產生 Mermaid 圖、ERD、類別圖與專案指標,供 AI 助理使用。
- 可以做什麼
- 為 .slnx、.sln 與 .csproj 檔案產生專案相依圖,可輸出 Mermaid 圖或 ASCII 樹狀圖
- 從 EF Core DbContext 或 ModelSnapshot 檔案產生實體關聯圖
- 為某個類別及其繼承與相依關係繪製類別圖
- 計算解決方案指標:專案數量、型別分布、相依深度與熱點專案
- 適用情境
- 適合在助理需要理解 .NET 程式碼庫架構時使用:梳理專案相依、記錄資料庫結構、探索類別階層,或快速取得解決方案的健康概況。
- 執行需求
- 以 .NET 工具(NuGet 上的 ProjGraph.Mcp)透過 stdio 在本機執行,通常以 dnx 啟動。需要 .NET 10.0 SDK 或更新版本。未宣告驗證、環境變數或標頭。助理需能存取要分析的解決方案、專案或原始碼檔案。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 ProjGraph MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
ProjGraph
.NET tool ecosystem for visualizing project dependencies, database schemas, and class hierarchies.
[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:
MCP Server
Configure your MCP client (e.g., GitHub Copilot, Claude) with the following settings:
Find the latest version number on NuGet
✨ 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
📝 Usage Examples
Analyze Project Dependencies
Generate Database Diagrams
Visualize Class Hierarchies
Analyze Solution Metrics
With AI Assistants
Once the MCP server is configured:
🔗 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
來源:README.md,提交 ffb4bc0
工具
0版本歷史
1- v1.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分