New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@ebowwa/dependency-graph-mcp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ebowwa/dependency-graph-mcp

MCP server for dependency graph analysis and visualization in monorepos

latest
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

@ebowwa/dependency-graph-mcp

MCP server for dependency graph analysis and visualization in monorepos.

Features

  • Build complete dependency graphs from package.json and TypeScript/JavaScript imports
  • Visualize dependencies in multiple formats (JSON, Mermaid, DOT, tree)
  • Impact analysis - see what breaks when you change a package
  • Find circular dependencies - detect problematic dependency cycles
  • Identify unused code - find packages with no dependents
  • Package info - detailed information about specific packages

Installation

bun add @ebowwa/dependency-graph-mcp
# or
npm install @ebowwa/dependency-graph-mcp

MCP Tools

dependency_graph

Build a complete dependency graph of the monorepo.

{
  "includeDevDependencies": false,
  "analyzeImports": true,
  "excludePatterns": ["^@types/", "^@eslint/"],
  "format": "mermaid"
}

Formats:

  • json - Raw JSON output
  • mermaid - Mermaid diagram for documentation
  • dot - Graphviz DOT format
  • tree - ASCII tree visualization

impact_analysis

Analyze the impact of changing a specific package.

{
  "package": "@ebowwa/terminal",
  "includeTransitive": true,
  "format": "tree"
}

find_circular

Find circular dependencies in the monorepo.

{
  "maxDepth": 10
}

unused_code

Find potentially unused packages (no dependents).

{
  "includeExternal": false
}

package_info

Get detailed information about a specific package.

{
  "package": "@ebowwa/ssh"
}

Usage with Claude Code

Add to your MCP config:

{
  "mcpServers": {
    "dependency-graph": {
      "command": "bun",
      "args": ["/path/to/MCP/packages/dependency-graph/src/index.ts"],
      "cwd": "/path/to/codespaces"
    }
  }
}

Examples

Visualize the monorepo dependency graph

dependency_graph(format="mermaid")

What depends on @ebowwa/ssh?

impact_analysis(package="@ebowwa/ssh", format="tree")

Find circular dependencies

find_circular()

Find unused packages

unused_code()

Architecture

The server:

  • Discovers all package.json files in the monorepo
  • Parses dependencies from package.json
  • Analyzes TypeScript/JavaScript imports
  • Builds a bidirectional dependency graph
  • Supports queries for impact analysis and visualization

License

MIT

Keywords

mcp

FAQs

Package last updated on 20 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts