rohityadav34980 avatar

GraphPulse C++

rohityadav34980/legacygraph-mcp

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 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
1muba00 avatarGitstandupmuba00/gitstandupGenerate daily standup notes from git commits across multiple repositories with AI summaries.5stars
2navapbc avatarRebarnavapbc/rebarEvent-sourced ticket tracker + Jira reconciler, exposed as a Python library, CLI, and MCP server.5stars
3glim-sh avatarglim.shglim-sh/glim-mcpGive your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.4stars
4bezata avatarkObsidianbezata/kobsidianFilesystem-first MCP for Obsidian — an LLM-maintained wiki inspired by Karpathy's LLM Wiki.3stars
5downatthebottomofthemolehole avatarMegalinterdownatthebottomofthemolehole/megalinter-mcpMCP server for running Ox Security MegaLinter via mega-linter-runner3stars
6jordanburke avatarSsh Client Mcp Serverjordanburke/ssh-client-mcp-serverMCP server for executing shell commands on remote hosts via SSH.3stars