MCP Code Flow Analyzer

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.

Category
Visit Server

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 point
  • findCallers — Find all functions that call a given function
  • getProjectInfo — Get metadata about the project and analysis results
  • generateFlowDiagram — 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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured