Pi Deja
MCP server by vshulcz Verified · npm:@vshulcz
Pi Deja indexes the session logs that coding agents already keep on disk, so past work can be searched and recalled. It runs locally with no LLM calls and is aimed at developers who use several coding agents.
Install Pi Deja
Built from the published package, never by AI.
claude mcp add pi-deja -- npx -y @vshulcz/pi-dejaRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pi-deja": {
"args": [
"-y",
"@vshulcz/pi-deja"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"pi-deja": {
"args": [
"-y",
"@vshulcz/pi-deja"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pi-deja": {
"args": [
"-y",
"@vshulcz/pi-deja"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pi-deja -- npx -y @vshulcz/pi-deja{
"mcpServers": {
"pi-deja": {
"args": [
"-y",
"@vshulcz/pi-deja"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add pi-deja npx -y @vshulcz/pi-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 pi-deja block.
About
Pi Deja is a memory layer for coding agents. It reads the session logs that agents such as pi, Claude Code, Codex, Cursor and OpenCode already store on disk, and indexes them in place into a local append-only index under ~/.cache/deja. The source states that indexing and search run locally, with no LLM calls and no API key.
The index can be used from a terminal TUI, a CLI, an MCP server and lifecycle hooks. Past sessions can be recalled at session start and on each prompt. Users can hand off goals and open work between agents, recover overwritten uncommitted edits, and trace lines back to the sessions that wrote them. Credentials are redacted at index time. It suits developers who work with several coding agents and want history from before the tool was installed.
Written from the project's README and checked against it.
Tools it gives your assistant
deja <query>Searches all indexed agent sessions with multi-word and quoted-phrase matching.deja handoffTransfers goal, constraints, touched files and open work between agents.deja restoreRecovers an edit span that was replaced before a git commit.deja blameShows which agent session wrote or replaced a given line of a file.deja audit --secretsInspects store paths, cleanup risk and leaked keys in indexed sessions.deja promoteMarks a past approach as rejected or accepted so later hits show its state.deja repo addExports redacted curated notes into .deja/memory.jsonl for team sharing through git.deja briefPrints a concise plain-text summary of recent sessions.deja viewGenerates a standalone local HTML explorer for session history.deja forgetPermanently excludes sessions from the index across rebuilds.
What you need
- Session logs on disk from supported coding agents
- macOS, Linux or Windows
- Homebrew, Scoop, winget or npm, or the install script, for installation
Try asking
- Search my past coding sessions for how we handled JWT refresh tokens.
- Hand off the current goal and open work from Claude Code to Codex.
- Find which agent session wrote line 42 of internal/auth/jwt.go.
Good to know
- install.sh supports macOS and Linux only; Windows needs Scoop, winget or the zip.
- Copilot CLI installs only the skill from the bundle unless deja install copilot-auto is run.
- Network requests happen only for explicit update or sync commands, version checks and configured embed endpoints.
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 Pi 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
Pi Deja: common questions
Does Pi Deja send my coding sessions to a remote service?
The source says indexing and search run locally with no remote inference. Network requests occur only for explicit update or sync commands, version checks and configured embed endpoints.
Which coding agents does it read?
The source says it reads transcripts from fifty-three coding agents, including pi, Claude Code, Codex, Cursor, OpenCode and Gemini CLI.
Does it need an API key or LLM?
No. The source states that it needs no LLM or API key and reports 0 LLM calls and $0 API cost.
How do I install Pi Deja?
In Claude Code run claude mcp add pi-deja -- npx -y @vshulcz/pi-deja. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Pi Deja the official server?
Pi Deja is published by npm:@vshulcz from its verified domain in the official MCP Registry.
Is Pi Deja free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Pi 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 Pi Deja?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Pi 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.
