Skip to main content
Glama



Why vibe-map

When AI edits code without dependency context, regressions follow. vibe-map scans your repository, builds a dependency graph, and surfaces change risk before you refactor.

  • Detect high-risk hub files that many modules depend on.

  • Find safe leaf files to modify first.

  • Estimate blast radius for any planned change.

  • Expose the same analysis through CLI and MCP tools.

Related MCP server: code-rag-mcp

Try it now

npx vibe-map-mcp scan .

Useful follow-ups:

npx vibe-map-mcp impact src/lib/auth.ts -m "Switching to Prisma"
npx vibe-map-mcp explain src/lib/auth.ts
npx vibe-map-mcp safe .
npx vibe-map-mcp structure .

Command guide

Icon

Command

What it does

scan [path]

Maps source files and builds dependency graph data.

impact <file> [-d depth] [-m message]

Shows direct and indirect impact before edits.

explain <file>

Summarizes purpose, imports/exports, and dependents.

safe [path] [-c category]

Ranks files by safety score for low-risk edits.

structure [path]

Detects framework and high-level architecture signals.

MCP setup

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "vibe-map": {
      "command": "npx",
      "args": ["-y", "vibe-map-mcp"]
    }
  }
}

Claude Code

claude mcp add vibe-map -- npx -y vibe-map-mcp

Windsurf (~/.codeium/windsurf/mcp_config.json)

{
  "mcpServers": {
    "vibe-map": {
      "command": "npx",
      "args": ["-y", "vibe-map-mcp"]
    }
  }
}

CLI flags

--json
--no-cache
--force-rescan
--strict
-d, --depth <n>
-m, --message <msg>
-c, --category <category>

How it works

  1. Scans .ts, .tsx, .js, .jsx, and .py files.

  2. Parses imports/exports (AST for TS/JS, regex fallback for Python).

  3. Resolves paths and builds a dependency graph.

  4. Scores file risk and returns tool-specific insights.

  5. Caches results in .vibemap/ for faster repeat runs.

Development

npm ci
npm run build
npx tsc --noEmit
npm test

Node.js >=18 is required.

License

MIT

Available Tools

5 tools
check_impactA

Before modifying a file, check what other files will be affected. Shows the blast radius of a change.

Inputs: file_path (required), depth, root_path, change_description.

explain_fileB

Provides a plain English explanation of what a specific file does, its role in the project, what it exports, what depends on it, and what it depends on.

Inputs: file_path (required), root_path.

find_safe_filesB

Returns a ranked list of files that are safe to modify — files with few or no dependents that will not break other parts of the codebase.

Inputs: category, root_path.

get_structureA

Returns a high-level overview of the project architecture — what frameworks/libraries are used, how the project is organized, and the main entry points.

Inputs: root_path.

map_codebaseC

Scans the entire codebase and builds a dependency map showing how all files are connected through imports/exports.

Inputs: root_path, use_cache, force_rescan, exclude_patterns, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool has a distinct primary action (explain a file, map the whole codebase, check blast radius, summarize architecture, rank safe files). explain_file vs get_structure and check_impact vs find_safe_files touch adjacent concerns (dependency graph), but the descriptions clearly separate per-file from project-level and per-file blast radius from a ranked safe-file list.

    Naming Consistency5/5

    All five tools follow a clean verb_noun pattern (explain_file, map_codebase, check_impact, get_structure, find_safe_files), with no mixing of conventions or casing styles.

    Tool Count5/5

    Five tools is well-scoped for a codebase-analysis server; each one covers a distinct analytical need with no filler or redundant endpoints.

    Completeness4/5

    The surface covers the core lifecycle: architecture overview, per-file explanation, dependency map, change impact, and safe-file discovery. Minor gaps exist, such as locating a file by name/symbol or querying reverse dependents of a specific file, but agents can work around these via the existing tools.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Analyzes repositories, explains architecture, calculates change impact, and enforces guardrails for AI Agents like Claude Code, Cursor, and Codex via MCP tools.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to perform hybrid semantic and lexical code search across multiple repositories, retrieve symbol definitions and call hierarchies, and manage repository relations through MCP tools.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to query a repository's living, versioned knowledge graph through 11 MCP tools, so they can search code, inspect node, file and community context, trace paths between routes and tables, run impact analysis, and review what changed between versions.
      3
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI coding agents to compile repositories into high-signal, cache-pinned context and to query dependency centrality, blast radius, AST skeletons, circular dependencies, hotspots, and auto-generated agent rules through MCP tools.
      7
      1
      MIT