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.
Install Magpie Deja
Built from the published package, never by AI.
claude mcp add magpie-deja -- npx -y @vshulcz/magpie-dejaRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"magpie-deja": {
"args": [
"-y",
"@vshulcz/magpie-deja"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"magpie-deja": {
"args": [
"-y",
"@vshulcz/magpie-deja"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"magpie-deja": {
"args": [
"-y",
"@vshulcz/magpie-deja"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add magpie-deja -- npx -y @vshulcz/magpie-deja{
"mcpServers": {
"magpie-deja": {
"args": [
"-y",
"@vshulcz/magpie-deja"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add magpie-deja npx -y @vshulcz/magpie-dejaGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
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.
