# Deja Vu MCP server

> Search the session histories of Claude Code, Codex, Cursor and other coding agents from one local memory index.

- Listing: https://mcp.tc/i/deja-vu
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: no API key needed
- Category: [AI & Machine Learning](https://mcp.tc/c/ai-ml)
- Vendor: vshulcz
- Homepage: <https://vshulcz.github.io/deja-vu/>
- Repository: <https://github.com/vshulcz/deja-vu>
- Package: npm `@vshulcz/deja-vu`

## About

Deja Vu indexes the session histories that coding agents already save to disk, including Claude Code, Codex, Cursor and dozens more. It exposes that shared index over MCP so an agent can recall earlier fixes, decisions, opened files and commands. Credentials are stripped as the index is built.

It runs locally as a single Go binary over stdio, installed with a script, Homebrew, Scoop, winget, npm or go install, or started with npx @vshulcz/deja-vu. Indexing and search are local, with no model, no embeddings and no remote service. No sign-in or API key is needed.

## What it can do

- Search months of past coding agent sessions locally
- Share one memory index across many coding agents
- Recall opened files, commands and edits from earlier turns
- Mark past decisions as rejected or accepted
- Warn when files from a past session have changed
- Hand off context to another agent

## Example prompts

- "Have we dealt with JWT refresh rotation before? Check your memory."
- "Search my past sessions for the connection pool exhausted error and show the fix."
- "What commands did I run last time I debugged the CI cache issue?"
- "Recall what we decided about the database migration approach in this project."

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport stdio deja-vu -- npx -y @vshulcz/deja-vu mcp
```

2. Start Claude Code and type `/mcp`. **deja-vu** should show as connected.

Add `--scope user` to make it available in every project.

### Claude Desktop

1. Open **Settings → Developer → Edit Config**. It opens `claude_desktop_config.json`. Add:

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "deja-vu": {
      "command": "npx",
      "args": [
        "-y",
        "@vshulcz/deja-vu",
        "mcp"
      ]
    }
  }
}
```

2. Save the file and restart Claude Desktop.

Needs Node.js on your computer. The file lives in `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=deja-vu&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB2c2h1bGN6L2RlamEtdnUiLCJtY3AiXX0%3D>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "deja-vu": {
      "command": "npx",
      "args": [
        "-y",
        "@vshulcz/deja-vu",
        "mcp"
      ]
    }
  }
}
```

Needs Node.js on your computer.

### VS Code

[Install in VS Code](<https://vscode.dev/redirect/mcp/install?name=deja-vu&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40vshulcz%2Fdeja-vu%22%2C%22mcp%22%5D%7D>) (opens VS Code)

Or from a terminal:

```bash
code --add-mcp '{"name":"deja-vu","type":"stdio","command":"npx","args":["-y","@vshulcz/deja-vu","mcp"]}'
```

Or commit it to the repo in `.vscode/mcp.json`:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "deja-vu": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vshulcz/deja-vu",
        "mcp"
      ]
    }
  }
}
```

Needs Node.js on your computer.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "deja-vu": {
      "command": "npx",
      "args": [
        "-y",
        "@vshulcz/deja-vu",
        "mcp"
      ]
    }
  }
}
```

2. Refresh the MCP server list in Cascade.

Devin Desktop is the new name for Windsurf.

### Codex

```bash
codex mcp add deja-vu -- npx -y @vshulcz/deja-vu mcp
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.deja-vu]
command = "npx"
args = ["-y", "@vshulcz/deja-vu", "mcp"]
```

Needs Node.js on your computer.

### Gemini CLI

```bash
gemini mcp add deja-vu npx -- -y @vshulcz/deja-vu mcp
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients that start local servers accept this shape:

```json
{
  "mcpServers": {
    "deja-vu": {
      "command": "npx",
      "args": [
        "-y",
        "@vshulcz/deja-vu",
        "mcp"
      ]
    }
  }
}
```

Zed puts servers under `context_servers` in its settings, with the same `command`, `args` and `env` fields.

Needs Node.js on your computer.

## Recent changes

- 2026-11-12 14:26 UTC: New version 0.24.2 (was 0.24.1), read from npm. Source: automatic check.
- 2026-11-09 20:30 UTC: New version 0.24.1 (was 0.24.0), read from npm. Source: automatic check.
- 2026-11-05 11:31 UTC: New version 0.24.0 (was 0.23.5), read from npm. Source: automatic check.
- 2026-11-03 08:33 UTC: New version 0.23.5 (was 0.23.4), read from npm. Source: automatic check.
- 2026-11-01 23:24 UTC: New version 0.23.4 (was 0.23.3), read from npm. Source: automatic check.

More on the History tab, with descriptions before and after for the newest entries: https://mcp.tc/i/deja-vu#history (Atom feed: https://mcp.tc/i/deja-vu/history.xml). It records what mcp.tc's anonymous checks saw, every 3 hours where the tool list can be read without sign-in; it is not a security review.

## Details

- Server version: 0.24.2
- Last checked: 2026-10-09
- Listed: 2026-10-09
- Updated: 2026-10-26

---
Source: https://mcp.tc/i/deja-vu (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
