rohityadav34980 avatar

GraphPulse C++

rohityadav34980/legacygraph-mcp

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 tools

Public 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 🏗️

Python 3.11 MCP Protocol Docker Enabled Code Style: Black smithery badge

⚡ The Problem

Legacy C++ codebases are too large for LLM context windows, leading to:

  1. Lost Context – spaghetti code cannot be processed in one pass.
  2. Hallucinations – agents refactor without full dependency awareness.
  3. Parsing Gaps – regex‑based parsers miss macros and templates.

🛠️ The Solution


View the full README on GitHub

Details

Repository
github.com/rohityadav34980/legacygraph-mcp
Website
github.com/RohitYadav34980/LegacyGraph-MCP
Category
Developer Tools
Transport
HTTP

More from rohityadav34980

Related Developer Tools MCP servers

View all
1rohityadav34980 avatarGraphPulse C++rohityadav34980/legacygraph-mcpAnalyzes C++ codebases via AST parsing to build comprehensive, queryable dependency graphs for AI agents. Maps complex function relationships to identify upstre5stars
2muba00 avatarGitstandupmuba00/gitstandupGenerate daily standup notes from git commits across multiple repositories with AI summaries.5stars
3navapbc avatarRebarnavapbc/rebarEvent-sourced ticket tracker + Jira reconciler, exposed as a Python library, CLI, and MCP server.5stars
4glim-sh avatarglim.shglim-sh/glim-mcpGive your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.4stars
5bezata avatarkObsidianbezata/kobsidianFilesystem-first MCP for Obsidian — an LLM-maintained wiki inspired by Karpathy's LLM Wiki.3stars
6downatthebottomofthemolehole avatarMegalinterdownatthebottomofthemolehole/megalinter-mcpMCP server for running Ox Security MegaLinter via mega-linter-runner3stars