Flowslens CLI
MCP server by Kishan-Jaiswar Verified · npm:@flowslens
Flowslens traces a user action in a React, Next.js, NestJS or Express app from the UI through API calls to database queries. It is aimed at developers who need to understand or safely change an unfamiliar codebase.
Install Flowslens CLI
Built from the published package, never by AI.
claude mcp add flowslens-cli -- npx -y @flowslens/cliRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"flowslens-cli": {
"args": [
"-y",
"@flowslens/cli"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"flowslens-cli": {
"args": [
"-y",
"@flowslens/cli"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"flowslens-cli": {
"args": [
"-y",
"@flowslens/cli"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add flowslens-cli -- npx -y @flowslens/cli{
"mcpServers": {
"flowslens-cli": {
"args": [
"-y",
"@flowslens/cli"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add flowslens-cli npx -y @flowslens/cliGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the flowslens-cli block.
About
Flowslens is a free, local, open-source CLI and dashboard for full-stack JavaScript and TypeScript projects. It maps each button, form and page load in a React or Next.js app through its API calls to the NestJS, Express or Next.js route that answers. It then follows the services called and the Mongoose, MongoDB or Prisma queries run, and flowcharts the decisions along the way.
The tool also explains the database schema and which code reads and writes each collection. It can show what an edit would break before a commit, run impact analysis before a refactor, and find unused files, exports, dependencies and API endpoints. It can also write features and the database up as Markdown with Mermaid diagrams. The project is aimed at developers joining an unfamiliar codebase or reviewing pull requests.
Written from the project's README and checked against it.
Tools it gives your assistant
flowShows the execution path of one user action, from the UI down to database operations.scanScans a project directory and builds the graph of its frontend, backend and database code.serveStarts the Flowslens dashboard in the browser for a scanned project.stackReports which stack a project is built with and which parts are not read yet.initDetects the project layout and writes a flowlens.config.json file.traceMerges a runtime trace file into a scan so flow evidence can be confirmed.
What you need
- Node.js 18.18 or newer
- Windows, macOS or Linux
Try asking
- Trace what happens in the database when the order form is submitted
- Show me the risk factors for the checkout flow in my project
- Run a stack check on this project and tell me what is not supported
Good to know
- Vue, Svelte, TypeORM, GraphQL and raw SQL are not read yet.
- The Mongoose tracing plugin is still driven by fakes in tests.
- Runtime tracing is proven for HTTP and method spans.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Flowslens CLI
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Flowslens CLI: common questions
What does Flowslens trace?
It traces a user action from a React or Next.js UI through API calls, backend routes and services, down to Mongoose, MongoDB or Prisma queries. It also flowcharts decisions along the way.
Does Flowslens need a database connection?
The source says it can visualize a MongoDB or Prisma schema as an ER-style diagram with no database connection. Runtime tracing requires a running server and a trace file.
Which frameworks are supported?
The source says it reads React, Next.js, NestJS, Express, Mongoose, the MongoDB driver and Prisma. Vue, Svelte, TypeORM, GraphQL and raw SQL are not read yet.
How do I install Flowslens CLI?
In Claude Code run claude mcp add flowslens-cli -- npx -y @flowslens/cli. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Flowslens CLI the official server?
Flowslens CLI is published by npm:@flowslens from its verified domain in the official MCP Registry.
Is Flowslens CLI free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Flowslens CLI safe to use?
It scores 70 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Flowslens CLI?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Flowslens CLI work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
