depwire — Claude Code MCP server: dependency graph, 24 tools
Builds a dependency graph of your project and hands it to the AI assistant through 24 MCP tools. Useful when the agent edits code without seeing who else imports the file.
claude mcp add depwire -- npx -y depwire-cliWhat depwire does
Depwire parses source with tree-sitter and builds a deterministic graph of symbol-level relationships. No embeddings, no similarity search: edges come from parsing, and anything the parser cannot resolve is recorded as unresolved instead of guessed. It covers 16 languages plus Angular templates.
On top of the graph sit 24 MCP tools: impact analysis, What If simulation, graph-aware security scanning, blast radius analysis and a structural diff between commits. There is a dependency scanner and a pre-action check as well. The assistant gets an answer to "what breaks if I delete this" before it deletes anything.
The CLI runs locally and collects no usage telemetry — source code, file names and graph data stay on your machine. Some operations do reach out, though: security scans contact package registries and public advisory databases by default, connect_repo accesses GitHub when given a GitHub URL, and the What If browser page pulls D3 from a CDN. Worth knowing if you work behind a closed network.
What it helps with
- find which files break when a utility is deleted
- check the impact of an edit before applying it
- trace import chains between symbols
- run a vulnerability scan that respects project structure
- compare graph structure across two commits
Example prompts for the agent
- Show me what depends on
src/utils/format.tsbefore I delete it - Simulate a change in
api/client.tsand list the affected modules - Run a security scan over the project dependency graph
How to install depwire
Platform CLI
claude mcp add depwire -- npx -y depwire-cliPlatform CLI
codex mcp add depwire -- npx -y depwire-cliConfig file
{
"mcpServers": {
"depwire": {
"command": "npx",
"args": [
"-y",
"depwire-cli"
]
}
}
}Config file
{
"servers": {
"depwire": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"depwire-cli"
]
}
}
}Platform CLI
gemini mcp add depwire npx -y depwire-cliStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about depwire
How do I install depwire in Claude Code?
One command: claude mcp add depwire -- npx -y depwire-cli.
What does depwire do?
It parses your source, builds a symbol-level dependency graph and serves it to the assistant through 24 MCP tools for impact analysis, change simulation and security scans.
Where does depwire send my data?
Parsing happens locally and no usage telemetry is collected. Security scans contact package registries and advisory databases, connect_repo reaches GitHub, and the simulation page loads D3 from a CDN.