Weavatrix Js logo

Weavatrix Js

Analyzes local JavaScript and TypeScript repositories with graph, health, dead-code, endpoint, and architecture tools over MCP.

Install Weavatrix Js

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "weavatrix-js": {
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-js"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y weavatrix-js

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The weavatrix-js MCP server builds a local repository graph covering files, symbols, imports, calls, inheritance, and selected health findings. Agents can query dependencies, inspect symbols and source, identify dead code, review architecture, trace endpoints, and rebuild the graph after changes. Reach for it when an AI coding agent needs bounded repository context and change-impact evidence without sending repository data over the network.

Use cases

  • Inspect repository dependencies before changing a symbol
  • Find dead files, exports, and dependencies
  • Trace endpoint implementations and call sites
  • Review architecture violations and change impact
  • Rebuild the graph after repository changes

Key features

  • Local repository graph analysis
  • TypeScript and JavaScript LSP-assisted references
  • Dead-code and dependency audits
  • Endpoint and source inspection
  • Architecture and change-impact queries
  • Structural graph-delta reporting

Tools3

What Weavatrix Js lets your agent do. Expand a tool for its parameters.

Self-reported~70 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · weavatrix-js (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads290Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed3Callable tools this server registers over MCP.

How Weavatrix Js works

What weavatrix-js MCP server does

The weavatrix-js MCP server analyzes a local repository and exposes its derived structure to an MCP-compatible coding agent. The graph can represent files, symbols, imports, calls, inheritance, clone families, health findings, and Git-history coupling. Its tools support repository exploration, source inspection, dependency tracing, endpoint discovery, dead-code review, audit checks, and architecture analysis.

The package is the JavaScript implementation of Weavatrix and includes a TypeScript/JavaScript language-server overlay for more precise references. It is read-only with respect to analyzed source: the engine reads and analyzes code but does not edit the repository. Graph data is stored outside the repository in a per-user registry under ~/.weavatrix/graphs/.

How it works

Run the server with a repository root as its positional argument. It derives or updates a reusable graph and exposes bounded views through MCP tools. If a graph is missing, graph and health reads can reconcile the working graph automatically; an agent can also call rebuild_graph explicitly. Rebuilds report structural changes and preserve the previous graph as graph.prev.json.

The default offline profile supports local repository switching and selected cross-repository reads. The pinned profile restricts operation to the supplied repository and omits those cross-repository capabilities. A custom comma-separated capability set is also supported.

Language-server precision is enabled by default for new graphs and upgrades confirmed TypeScript and JavaScript references to EXACT_LSP when applicable. Set WEAVATRIX_PRECISION=off for parser-only operation. Java and Rust analysis does not include a bundled language server and remains parser-derived.

Setup and configuration

The weavatrix-js MCP server requires Node.js 18 or newer. It can be launched through npx -y weavatrix-js <repoRoot>, or from a local clone with Node and the package installation completed. The README provides registrations for Claude Code and Codex CLI, including an optional Codex TOML configuration.

The final positional argument selects a profile when needed, such as pinned. Optional repository-root files include .weavatrixignore for analysis exclusions, .weavatrix.json for HTTP client and wrapper contracts, and .weavatrix-deps.json for dependency and entrypoint conventions. Precision budgets can be adjusted with environment variables including WEAVATRIX_PRECISION_MAX_SYMBOLS, WEAVATRIX_PRECISION_PREWARM, WEAVATRIX_PRECISION_MAX_REFERENCES, WEAVATRIX_PRECISION_MAX_LINKS, and WEAVATRIX_PRECISION_TIMEOUT_MS.

Tools and capabilities

The server exposes 34 tools across these areas:

  • Graph queries: statistics, nodes, neighbors, graph searches, shortest paths, communities, dependents, change impact, history, diffs, and architecture contracts.
  • Search and source: repository search, source reads, context bundles, symbol inspection, endpoint listing, and endpoint tracing.
  • Health analysis: dead code, audits, duplicate detection, coverage maps, hot-path review, and architecture violations.
  • Build and repository selection: graph rebuilding, opening known repositories, and listing registered repositories where the profile permits it.
  • Cross-repository analysis: API-contract tracing between local registered graphs in the default offline profile.

run_audit can report capability information, unused files, exports and dependencies, missing or duplicate dependencies, typosquats, and lockfile drift. find_dead_code focuses on unused code findings. The initial tool list can depend on the selected capability profile.

Limitations and notes

The graph is derived data rather than a copy of the repository and is kept in the user registry. The server does not modify source files. Test execution is disabled by default; running an existing package test, check, or verify script requires both run_tests:true and WEAVATRIX_ALLOW_TEST_RUNS=1, while arbitrary commands are rejected.

After upgrading the package, reconnect the MCP server or start a new agent task because some clients cache the tool list for the connection lifetime. Precision analysis has bounded budgets, and repositories that exceed a hard ceiling may be reported as PARTIAL. The JavaScript language-server overlay applies to TypeScript and JavaScript; other supported languages do not receive that bundled precision layer.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Weavatrix Js

weavatrix-js is an MCP server that connects AI coding agents to a local repository graph. Its main tools query nodes, neighbors, paths, dependencies, health findings, dead code, audits, source, endpoints, and graph rebuilds. It analyzes repository data locally, does not edit source files, and does not make outbound HTTP requests.

Install it by registering `npx -y weavatrix-js <repoRoot>` with an MCP client, using Node.js 18 or newer. The README includes commands for Claude Code and Codex CLI. You can also clone the repository, run `npm install`, and launch its MCP entry point with the repository root.

Yes, weavatrix-js works with Claude Code through a standard MCP registration. Use `claude mcp add -s user weavatrix-js -- npx -y weavatrix-js <repoRoot>`. The repository also includes an optional Claude Code skill with usage recipes.

It uses the `find_dead_code` tool to report dead-code findings from the analyzed repository graph. The related `run_audit` tool can also identify unused files, exports, and dependencies, along with other dependency and lockfile issues.

Yes, call `rebuild_graph` to regenerate the graph and receive a structural delta. The previous graph is retained as `graph.prev.json`, allowing the rebuild result to preserve prior state for comparison.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWeavatrix Js AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/weavatrix-js?style=directory)](https://allmcps.com/mcp/weavatrix-js)
HTML Embed
<a href="https://allmcps.com/mcp/weavatrix-js"><img src="https://allmcps.com/api/badge/weavatrix-js?style=directory" alt="Weavatrix Js on AllMCPs" /></a>