Skip to content
MCP server

Weft

Local MCP server that searches your past AI coding sessions by file or phrase

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.1
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

The README says Weft indexes the agent sessions already stored on your machine, including Claude Code, Codex, DeepSeek Harness and Pi, and records which files each turn read, wrote or edited. Queries return the conversation turns tied to a given file or exact phrase, with a link back to the original session.

The MCP server runs over stdio and exposes four read-only tools: why_check, why_file, find and recall_turn. Session files are read but never written, and the derived index is kept under ~/.weft, where it can be deleted with a purge command. Facts about file changes come from tool calls rather than model-generated text, while lines drawn from answers are flagged as candidate explanations.

It suits developers who want their coding agent or themselves to recall why a file looks the way it does, drawing on earlier Claude Code or Codex work. The package requires Node.js 20 or newer and the local session logs on the machine running it.

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 2 of 4 tools read data; 2 names don't say.

From the server's own tool labels and tool names; not verified by us.

why_checkName suggests: reads
Checks whether there is conversation history for the current context.
why_file
Returns the conversations that shaped a given file.
findName suggests: reads
Finds where exact words were asked, answered or attached.
recall_turn
Recalls a specific turn from a session.

What it does

File-based history lookup
Lists the conversation turns that read, wrote or edited a given file, with timestamps and what changed.
Exact phrase search
Finds where specific words were asked, answered or attached across indexed sessions.
Read-only session access
Session files are never written, and the index can be removed with a single purge command.
Stdio MCP tools
Four tools, why_check, why_file, find and recall_turn, are registered for MCP clients that accept mcpServers JSON.
Traceable results
Every hit links back to the originating conversation so results can be checked in context.

Good for

  • Check whether earlier agent sessions already touched a file before editing it
  • Recall the reasoning behind a past code change from an earlier Claude Code or Codex session
  • Search old prompts and answers for a specific phrase or term
  • Give a coding agent read-only access to prior project history through MCP

Pricing

Open source

Installed from npm; the README does not describe a paid plan.

Weft FAQ

Does Weft modify my agent session files?

No. The README says session files are read, never written, and the index is stored separately in ~/.weft.

Which agent session formats are indexed?

The README lists Claude Code, Codex, DeepSeek Harness and Pi sessions found on the local machine.

How do I install the MCP server?

Install the npm package weft-canvas globally, then configure an MCP client to run the weft command with the mcp argument.

Does Weft send my history to a cloud service?

The README says the index is local, but retrieved text is returned to the calling agent and may enter that agent's model context, so provider settings should be reviewed.

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 ThoughtDAG, Coding Tools MCP, MCP Token Optimizer, Industry Pulse and Edit MCP.

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