Circular Code Dependency Detector

Circular Code Dependency Detector MCP Connector for Claude

A+

Identify import cycles and measure module interdependence in JavaScript, TypeScript, and Python projects.

3 tools Official Updated Oct 1, 2026 Official Vinkius Partner

This MCP server provides specialized tools to prevent runtime initialization errors caused by circular dependencies. Use scan_dependencies to build a dependency map of your project, detect_cycles to find exact loop paths like A -> B -> C -> A, and compute_coupling_metrics to identify critical bottleneck modules using in-degree and out-degree analysis.

javascripttypescriptpythondependency-graphcycle-detection

3 tools expose this connector's capabilities to your AI agent.

compute_coupling_metrics

Compute coupling metrics for a module

detect_cycles

Detect circular dependencies

scan_dependencies

Scan a directory for dependencies

See how to talk to your AI agent using Circular Code Dependency Detector.

Scan my current directory for dependencies and tell me if there are any cycles.

The scan completed successfully. No circular dependencies were detected in the current dependency map.

Check for cycles in this dependency map: {"src/index.ts": ["src/utils.ts"], "src/utils.ts": ["src/index.ts"]}

A cycle was detected: ['src/index.ts', 'src/utils.ts', 'src/index.ts'].

How coupled is the module 'auth_service.py'?

The module 'auth_service.py' has an in-degree of 5 and an out-degree of 2, indicating a moderate coupling level.

First, use the `scan_dependencies` tool on your project directory to generate a dependency map. Then, pass that map into `detect_cycles` to see all identified loops.

Related Connectors