Skip to content
MCP server

Weft

Local search over your Claude Code and Codex conversations, linked to the files they

Runs locally

Weft is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.5.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add weft -- npx -y weft-canvas

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

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "weft": {
      "command": "npx",
      "args": [
        "-y",
        "weft-canvas"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "weft": {
      "command": "npx",
      "args": [
        "-y",
        "weft-canvas"
      ]
    }
  }
}

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "weft": {
      "command": "npx",
      "args": [
        "-y",
        "weft-canvas"
      ]
    }
  }
}

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "weft": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "weft-canvas"
      ]
    }
  }
}

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add weft -- npx -y weft-canvas

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.weft]
command = "npx"
args = ["-y", "weft-canvas"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "weft": {
      "command": "npx",
      "args": [
        "-y",
        "weft-canvas"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "weft": {
          "command": "npx",
          "args": [
            "-y",
            "weft-canvas"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user weft npx -- -y weft-canvas

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "weft": {
          "command": "npx",
          "args": [
            "-y",
            "weft-canvas"
          ]
        }
      }
    }

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "weft": {
          "command": "npx",
          "args": [
            "-y",
            "weft-canvas"
          ]
        }
      }
    }

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

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "weft": {
          "command": "npx",
          "args": [
            "-y",
            "weft-canvas"
          ]
        }
      }
    }

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "weft": {
          "command": "npx",
          "args": [
            "-y",
            "weft-canvas"
          ]
        }
      }
    }

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "weft": {
          "command": "npx",
          "args": [
            "-y",
            "weft-canvas"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "weft": {
          "command": "npx",
          "args": [
            "-y",
            "weft-canvas"
          ]
        }
      }
    }

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "weft": {
          "command": "npx",
          "args": [
            "-y",
            "weft-canvas"
          ]
        }
      }
    }

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Weft

Weft reads the agent session logs already stored on your computer and indexes each turn by the files it read, wrote or edited. You can look up which conversations shaped a given file, find where exact wording was asked or answered, and jump back to the original session.

Facts are taken from recorded tool calls rather than from model-generated summaries, and session files are only read, never modified. The index is kept in a local folder and can be deleted with a single command. Answer-derived explanations are labelled separately from observed changes so they are not mistaken for verified reasons.

The package also ships a local canvas app and an MCP server with four read-only tools, so an agent can check for prior history before editing a file. It suits developers who work with coding agents on their own machine and want to recover the reasoning behind past changes.

What it does

File-based history lookup
Lists the agent conversations that read, wrote or edited a given file, with timestamps and what changed.
Phrase search across sessions
Finds where exact words were asked, answered or attached in indexed conversations.
Read-only MCP tools
Exposes four read-only tools over stdio so an MCP-capable agent can query past history.
Local canvas viewer
Opens sessions as graphs in a browser canvas served only on localhost.
Source-linked results
Every hit links back to the original conversation it came from.
Local-only storage
Index files live in a private local folder and can be removed with one command.

Good for

  • Check whether a file has prior agent conversations before editing it
  • Recover why a piece of code was written a certain way
  • Find the session where a specific phrase was discussed
  • Browse past Claude Code or Codex sessions as a graph on a local canvas
  • Give a coding agent read-only access to its own project history

Pricing

Open source

Weft FAQ

Which agent session formats does Weft index?

It indexes sessions from Claude Code, Codex, DeepSeek Harness and Pi that are already on the machine.

Does Weft modify my session files?

No. Session files are read but never written.

What do I need to run Weft?

Node.js 20 or newer and supported session logs on the machine running the server.

How do I install Weft?

Install the npm package weft-canvas globally, which provides the weft command.

Is Weft free?

Yes. Weft is open source, so you can use and self-host it for free.

How do I add Weft to Claude Code?

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

What are the best alternatives to Weft?

The closest alternatives to Weft are Weft, Callimachus, CCRider, Claudex and ThoughtDAG.

Where this comes from

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

How AIPoweredBot checks servers