
GraphPulse C++
Built for AI agents that need to refactor legacy C++ without blowing context windows. Uses tree-sitter AST parsing to build a NetworkX dependency graph, then exposes it through MCP tools like get_callers, detect_cycles, and get_orphan_functions. Instead of feeding raw source to your LLM, you query the graph: "which functions call calculate_risk?" gets you process_loan and assess_credit in structured JSON. Handles GitHub ingestion, local directories, or raw file uploads. Returns token-safe Mermaid diagrams inline or writes them to disk depending on stdio vs HTTP transport. Tested against LLVM's 67k file codebase with incremental updates under one second. Reach for this when you're modernizing tangled C++ and need agents to understand call chains without hallucinating dependencies.
- GitHub stars
- 5
- tools
- 10
- transport
- HTTP
- last updated
- Mar 10, 2026
Tools
10 toolsPublic tool metadata for what this MCP can expose to an agent.
analyze_codebaseUnified ingestion (repo URL, patch, raw files, or local dir)
Unified ingestion (repo URL, patch, raw files, or local dir)
No parameter schema in public metadata yet.
get_file_functionsList functions defined in a specific source file
List functions defined in a specific source file
No parameter schema in public metadata yet.
get_file_couplingCross‑file coupling report (file A → file B)
Cross‑file coupling report (file A → file B)
No parameter schema in public metadata yet.
get_callersFind upstream dependencies
Find upstream dependencies
No parameter schema in public metadata yet.
get_calleesFind downstream dependencies
Find downstream dependencies
No parameter schema in public metadata yet.
detect_cyclesIdentify circular dependencies
Identify circular dependencies
No parameter schema in public metadata yet.
get_orphan_functionsFind unused code
Find unused code
No parameter schema in public metadata yet.
generate_mermaid_graphReturn Mermaid diagram inline (token‑safe)
Return Mermaid diagram inline (token‑safe)
No parameter schema in public metadata yet.
send_feedbackSubmit feedback, bugs, or feature requests to Discord (with local fallback)
Submit feedback, bugs, or feature requests to Discord (with local fallback)
No parameter schema in public metadata yet.
export_ide_graphSave Mermaid `.md` file to local disk
Save Mermaid `.md` file to local disk
No parameter schema in public metadata yet.
Sponsors
Readme
LegacyGraph-MCP: Agentic C++ Modernization 🏗️
⚡ The Problem
Legacy C++ codebases are too large for LLM context windows, leading to:
- Lost Context – spaghetti code cannot be processed in one pass.
- Hallucinations – agents refactor without full dependency awareness.
- Parsing Gaps – regex‑based parsers miss macros and templates.
🛠️ The Solution
Details
- Repository
- github.com/rohityadav34980/legacygraph-mcp
- Website
- github.com/RohitYadav34980/LegacyGraph-MCP
- Category
- Developer Tools
- Transport
- HTTP