Depwire MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add depwire -- npx -y depwire-cli mcp
README.md

Code dependency graph and AI context engine for your codebase.

Depwire

Depwire - Arc diagram visualization of the Hono framework

See how your code connects. Give AI tools full codebase context.

โญ If Depwire helps you, please star the repo โ€” it helps this open-source project grow into an enterprise tool.

Depwire analyzes codebases to build a cross-reference graph showing how every file, function, and import connects. It provides:

  • ๐ŸŽจ Beautiful arc diagram visualization โ€” Interactive Harrison Bible-style graphic
  • ๐Ÿค– MCP server for AI tools โ€” Cursor, Claude Desktop get full dependency context
  • ๐Ÿ“Š Dependency health score โ€” 0-100 score across 6 dimensions (coupling, cohesion, circular deps, god files, orphans & dead code, depth)
  • ๐Ÿ“„ Auto-generated documentation โ€” 13 comprehensive documents: architecture, conventions, dependencies, onboarding, file catalog, API surface, error patterns, test coverage, git history, full snapshot, TODO/FIXME inventory, health report, and dead code analysis
  • ๐Ÿ” Impact analysis โ€” "What breaks if I rename this function?" answered precisely
  • ๐Ÿงน Dead code detection โ€” Find symbols that are defined but never referenced, categorized by confidence level
  • ๐Ÿ‘€ Live updates โ€” Graph stays current as you edit code
  • ๐ŸŒ Multi-language โ€” TypeScript, JavaScript, Python, Go, Rust, and C

Why Depwire?

AI coding tools are flying blind. Every time Claude, Cursor, or Copilot touches your code, it's guessing about dependencies, imports, and impact. The result: broken refactors, hallucinated imports, and wasted tokens re-scanning files it already saw.

Lost context = lost money + lost time + bad code.

Depwire parsed the entire Hono framework โ€” 305 files, 5,636 symbols, 1,565 dependency edges โ€” in 2.3 seconds.

Depwire fixes this by giving AI tools a complete dependency graph of your codebase โ€” not a fuzzy embedding, not a keyword search, but a deterministic, tree-sitter-parsed map of every symbol and connection.

Stop Losing Context

  • No more "start from scratch" chats โ€” Depwire is the shared knowledge layer that every AI session inherits. New chat? Your AI already knows the architecture.
  • Stop burning tokens โ€” AI tools query the graph instead of scanning hundreds of files blindly
  • One command, every AI tool โ€” Claude Desktop, Cursor, VS Code, any MCP-compatible tool gets the same complete picture

Ship Better Code

  • Impact analysis for any change โ€” renaming a function, moving a file, upgrading a dependency, deleting a module โ€” know the full blast radius before you touch anything
  • Refactor with confidence โ€” see every downstream consumer, every transitive dependency, 2-3 levels deep
  • Catch dead code โ€” find symbols nobody references anymore with confidence-based classification (high/medium/low)

Stay in Flow

  • Live graph, always current โ€” edit a file and the dependency map updates in real-time. No re-indexing, no waiting.
  • Works locally, stays private โ€” zero cloud accounts, zero data leaving your machine. Just npm install and go.

15 MCP Tools, Not Just Visualization

Depwire isn't just a pretty graph. It's a full context engine with 15 tools that AI assistants call autonomously โ€” architecture summaries, dependency tracing, symbol search, file context, health scores, dead code detection, temporal evolution, and more. The AI decides which tool to use based on your question.

Installation

Installation

npm install -g depwire-cli

Or use directly with npx:

npx depwire-cli --help

Quick Start

CLI Usage

# Auto-detects project root from current directory
depwire viz
depwire parse
depwire docs
depwire health
depwire dead-code
depwire temporal

# Or specify a directory explicitly
npx depwire-cli viz ./my-project
npx depwire-cli parse ./my-project
npx depwire-cli dead-code ./my-project
npx depwire-cli temporal ./my-project

# Temporal visualization options
npx depwire-cli temporal --commits 20 --strategy monthly --verbose --stats

# Exclude test files and node_modules
npx depwire-cli parse --e

Tools (5)

get_architecture_summaryProvides a high-level summary of the project architecture.
trace_dependenciesTraces dependencies for a specific file or symbol.
get_health_scoreReturns a 0-100 health score across 6 dimensions including coupling and cohesion.
find_dead_codeIdentifies symbols defined but never referenced.
analyze_impactAnalyzes the blast radius of a proposed change to a function or file.

Configuration

claude_desktop_config.json
{"mcpServers": {"depwire": {"command": "npx", "args": ["-y", "depwire-cli", "mcp"]}}}

Try it

โ†’Analyze the current codebase and provide an architecture summary.
โ†’What is the impact of renaming the 'authService' function in the user module?
โ†’Run a health check on the project and identify any circular dependencies.
โ†’Find all dead code in the src directory and categorize it by confidence level.
โ†’Trace the dependencies for the main API controller to understand its downstream consumers.

Frequently Asked Questions

What are the key features of Depwire?

Deterministic dependency graph generation using tree-sitter parsing. Interactive arc diagram visualization of codebase connections. Automated dependency health scoring across 6 key dimensions. Precise impact analysis for refactoring and code changes. Confidence-based dead code detection and removal analysis.

What can I use Depwire for?

Refactoring large codebases with confidence by visualizing the full blast radius of changes. Onboarding new developers by providing AI-generated architecture and dependency documentation. Identifying and cleaning up technical debt by locating dead code and circular dependencies. Reducing AI token usage by providing structured context instead of scanning entire file trees.

How do I install Depwire?

Install Depwire by running: npx depwire-cli --help

What MCP clients work with Depwire?

Depwire works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Depwire docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare