Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Magpie Deja

MCP server by vshulcz Verified · npm:@vshulcz

Deja-vu gives coding agents local memory and project-scoped recall of past sessions. It indexes existing transcripts from tools such as Claude Code, Codex and Cursor, with no API keys or LLM calls needed for search.

  • Score 90
  • 1.7k stars
  • 1.8k a week
  • MIT
  • Updated

Install Magpie Deja

Built from the published package, never by AI.

claude mcp add magpie-deja -- npx -y @vshulcz/magpie-deja

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Magpie Deja in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the magpie-deja block.

About

Deja-vu indexes the session transcripts that coding agents already save on disk, such as JSONL and SQLite stores under ~/.claude, ~/.codex and Cursor's state database. It builds an append-only inverted index under ~/.cache/deja and makes that history searchable from a terminal TUI, a CLI, an MCP server and lifecycle hooks. Existing transcripts are searchable from the first day, without capture daemons or API keys. Credentials are replaced with redacted markers at index time. The source says it covers 53 coding agents. It is aimed at developers who use several coding agents and want to recall earlier decisions, hand off work between agents, or trace which session changed a line of code.

Written from the project's README and checked against it.

Tools it gives your assistant

  • Search past sessionsRuns lexical and structural search across all indexed agent transcripts with the deja query command.
  • Cross-agent handoffTransfers goal, constraints, touched files, passed checks and open work between supported harnesses.
  • Compaction recoveryCaptures pre-compaction tasks, decisions and files, then injects a bounded recovery packet on the next turn.
  • Code recoveryRecovers edit spans replaced before a git commit using the deja restore command.
  • Line attributionTraces which agent session wrote or replaced a given line with deja blame.
  • Decision trackingMarks reverted approaches as rejected with deja promote and flags search hits when referenced files changed.
  • Repository memoryExports redacted curated notes into .deja/memory.jsonl so teams can share project decisions through git.
  • Secret auditInspects store paths, cleanup risk and leaked keys with deja audit --secrets.

What you need

  • Coding agent session transcripts stored on the local disk
  • macOS or Linux, or Windows through Scoop or winget
  • Node.js if using the npx install route

Try asking

  • Search my past sessions for how I fixed the jwt refresh token bug.
  • Hand off the current goal and open work to Codex.
  • Which agent session last changed line 42 of internal/auth/jwt.go?

Good to know

  • install.sh targets macOS and Linux and exits with unsupported OS on Windows.
  • Network requests occur only for explicit update or sync commands, version checks and configured embed endpoints.
  • Without harness wiring, detected MCP targets are reported as config missing or not-wired.

Security check

C
  • Downloads a script from the internet and runs itIn README.md: curl -fsSL https://raw.githubusercontent.com/vshulcz/deja-vu/main/install.sh | sh

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Magpie Deja

All alternatives →

Compare with Zotero MCP, Agentdb or Genkitx MCP

Magpie Deja: common questions

Does deja-vu need an API key or an LLM to search?

The source says indexing and search run locally with no remote inference and 0 LLM calls. It lists $0 API cost for lookups.

Which coding agents does deja-vu read history from?

The source says it indexes transcripts from fifty-three agents, including Claude Code, Codex, Cursor, OpenCode and Gemini CLI.

Does deja-vu send my session data to a remote service?

The source says indexing and search stay local. Network requests occur only for explicit update or sync commands, version checks and configured embed endpoints.

How do I install Magpie Deja?

In Claude Code run claude mcp add magpie-deja -- npx -y @vshulcz/magpie-deja. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Magpie Deja the official server?

Magpie Deja is published by npm:@vshulcz from its verified domain in the official MCP Registry.

Is Magpie Deja free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Magpie Deja safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to Magpie Deja?

Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.

Does Magpie Deja work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Magpie Deja Install

Add to stack

Loading.