
GraphPulse C++
Built for AI agents tackling sprawling C++ refactors that blow past context windows. Parses repos with tree-sitter AST, builds a NetworkX dependency graph, then exposes MCP tools like get_callers, detect_cycles, and get_orphan_functions so your agent queries relationships instead of reading raw files. Ships with analyze_codebase for GitHub ingestion and generate_mermaid_graph for token-safe visual exports. Runs stdio locally or HTTP over Docker on Hugging Face Spaces. The author benchmarked it against LLVM's 67k files and reports 30x speedup over sequential parsing. Reach for this when you need accurate upstream/downstream tracing before touching legacy code that regex parsers can't handle.
- 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