# NestWeaver

> NestWeaver is an MCP server for developer tools. Local code knowledge graph for symbol search, callers and change impact. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, macOS, Linux, Web
- **Website:** https://docs.nestweaver.kehl.io
- **Repository:** https://github.com/kehl-io/nestweaver
- **MCP Registry name:** io.github.Kehl-io/nestweaver
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [agent tooling](https://ai-powered.com/categories/agent-tooling)
- **Listing updated:** 2026-11-23

## About

NestWeaver parses a repository once into symbols, calls and imports, and answers questions from that graph rather than from a pile of files. Results are a short ranked neighbourhood of related symbols, the same one shown in its browser workspace.

It parses 32 languages with Tree-sitter, tracks calls, imports, uses and accesses, and can index Markdown notes such as Obsidian vaults beside the code. Indexing and structural queries run locally; semantic embeddings and shared servers are optional.

The MCP server exposes 43 tools, or six in a lite mode for Cursor, and a setup command connects editors such as Claude Code, Cursor, Codex and Gemini CLI. Commands like pr-impact and affected-tests score a diff before merge.

## Features

- **Code knowledge graph:** Indexes symbols, calls and imports across 32 languages.
- **Task-focused context:** Returns ranked symbols around a name or file for an agent.
- **Change impact:** Scores a diff and lists tests to run.
- **Dead code review:** Lists unused code as a review list, not a delete list.
- **Web workspace:** Browse the graph with source, callers and callees.
- **One-command setup:** Connects 16 AI tools such as Claude Code, Cursor and Codex.

## Good for

- Trace who calls a function before changing it
- Estimate the risk of a pull request
- Find which tests a change affects
- Give an agent relevant symbols instead of whole files
- Explore an unfamiliar repository

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add nestweaver -- npx -y nestweaver
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "nestweaver": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add nestweaver -- npx -y nestweaver
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.nestweaver]
command = "npx"
args = ["-y", "nestweaver"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user nestweaver npx -- -y nestweaver

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "nestweaver": {
      "command": "npx",
      "args": [
        "-y",
        "nestweaver"
      ]
    }
  }
}
```

## FAQ

### How is NestWeaver installed?

With npm; prebuilt binaries mean no Rust toolchain is needed.

### Which platforms are supported?

macOS 13.3+ and Linux with glibc 2.35+, on x86_64 or arm64.

### Does NestWeaver run locally?

Indexing and structural queries run locally; embeddings and shared servers are optional.

### How many MCP tools are there?

43, or six in Cursor's lite mode.

### How do I add NestWeaver to Claude Code?

Run this command in your terminal: claude mcp add nestweaver -- npx -y nestweaver

### What are the best alternatives to NestWeaver?

The closest alternatives to NestWeaver are Contextweaver, Codemesh, Codeweave, Cgraphy and N3mo.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Contextweaver](https://ai-powered.com/mcp/contextweaver-2): Contextweaver is an open-source MCP server for developer tools.
- [Codemesh](https://ai-powered.com/mcp/codemesh): Codemesh is an open-source MCP server for developer tools.
- [Codeweave](https://ai-powered.com/mcp/codeweave): Codeweave is an open-source MCP server for developer tools.
- [Cgraphy](https://ai-powered.com/mcp/cgraphy): Cgraphy is an open-source MCP server for developer tools.
- [N3mo](https://ai-powered.com/mcp/n3mo): N3mo is a freemium MCP server for developer tools.
- [Knowing](https://ai-powered.com/mcp/knowing): Knowing is an open-source MCP server for developer tools.
- [Lynx](https://ai-powered.com/mcp/lynx-2): Lynx is an open-source MCP server for developer tools.
- [Vectr](https://ai-powered.com/mcp/vectr): Vectr is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/nestweaver
