MCP Code Flow Analyzer
An MCP server that analyzes and traces business code flows across your codebase, enabling developers to quickly understand the complete execution path of features from frontend to backend to database.
README
MCP Code Flow Analyzer
An MCP (Model Context Protocol) server for analyzing and tracing business code flows across your codebase. Helps developers quickly understand the complete execution path of features from frontend to backend to database.
Features
- Business Flow Tracing: Follow function calls from entry points through the entire codebase
- Multi-Language Support: TypeScript, JavaScript
- Smart Symbol Extraction: Automatically identifies functions, classes, variables, and imports
- Call Graph Analysis: Builds and traverses function call relationships
- Clickable Links: Generate VSCode and GitHub links for quick navigation
- Flexible Configuration: YAML-based project configuration
Installation
npm install
npm run build
Usage
1. Configure Your Project
Create a .flowanalysis.yaml file:
version: '1.0'
project:
name: "my-project"
languages: [typescript]
rootPath: "."
sourceConfig:
include: ["src/**/*.ts"]
exclude: ["**/*.test.ts", "node_modules/**"]
analysisConfig:
maxCallDepth: 10
crossFileAnalysis: true
linkConfig:
vscode: { enabled: true }
github:
enabled: true
repository: "https://github.com/owner/repo"
2. Configure in VSCode
{
"modelContextProtocol": {
"servers": {
"code-flow-analyzer": {
"command": "node",
"args": ["/path/to/mcp-server/dist/index.js"],
"env": { "PROJECT_ROOT": "${workspaceFolder}" }
}
}
}
}
MCP Tools
traceBusinessFlow— Trace the complete execution path from an entry pointfindCallers— Find all functions that call a given functiongetProjectInfo— Get metadata about the project and analysis resultsgenerateFlowDiagram— Generate a Mermaid call graph diagram
Architecture
MCP Server (index.ts)
├── Project Config Manager
├── Code Analysis Manager
│ ├── Parser Factory
│ │ ├── TypeScript Parser
│ └── Symbol Table
├── Call Graph Analyzer
└── Link Generators
├── VSCode Link Generator
└── GitHub Link Generator
Development
npm run build # Build
npm run typecheck # Type check
npm run start # Run server
npm run dev # Build + run
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.