Pi Extension
MCP server by code-ministry-ltd Verified · npm:@the-librarian
Connects the Pi coding agent to a self-hosted Librarian server for shared memory, handoffs and journal history. Adds 8 native tools and a primer that teaches the agent how to use them.
Install Pi Extension
Built from the published package, never by AI.
claude mcp add pi-extension -- npx -y @the-librarian/pi-extensionRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pi-extension": {
"args": [
"-y",
"@the-librarian/pi-extension"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"pi-extension": {
"args": [
"-y",
"@the-librarian/pi-extension"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pi-extension": {
"args": [
"-y",
"@the-librarian/pi-extension"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pi-extension -- npx -y @the-librarian/pi-extension{
"mcpServers": {
"pi-extension": {
"args": [
"-y",
"@the-librarian/pi-extension"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add pi-extension npx -y @the-librarian/pi-extensionGemini 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-extension block.
About
The Librarian Pi extension connects the Pi coding agent to a Librarian MCP server. It adds a primer hook that teaches the agent how to use the server, and it exposes the 8 memory, handoff and journal tools as native Pi tools. The Librarian stores memories, handoffs and references as plain markdown notes linked by wikilinks in a git-backed vault.
The server includes a resident curator that files and links new memories as they arrive. Work started in one harness, such as Claude Code, Codex, Hermes, OpenCode or Pi, can be packaged as a handoff and claimed in another. The extension suits Pi users who run their own Librarian server and want shared memory and cross-harness handoffs.
Written from the project's README and checked against it.
Tools it gives your assistant
recallHybrid search over memories, returning active memories by default.rememberSubmits a memory to the curator's intake inbox, which files it asynchronously.flag_memoryReports a wrong, misleading or outdated memory with a reason.store_handoffStores a five-section handoff document for work in progress.list_handoffsLists handoffs in the current project or working directory.claim_handoffAtomically claims a handoff by id so another agent can pick it up.search_referencesSearches long-form reference material such as specs, papers and manuals.journalReads or searches the dated history of past conversations.
What you need
- A running Librarian server
- Docker for the stable server install
- Node.js to run the npx install command
- The Librarian MCP URL and agent token
Try asking
- Recall what we decided about the database schema last week.
- Store a handoff for this work so Claude Code can pick it up.
- Claim the latest handoff for this project and continue from it.
Good to know
- Stable server installs need Docker. Snap-packaged Docker is unsupported.
- Claiming a handoff is one-shot, so other callers cannot claim it afterwards.
- flag_memory reports queue status, not whether the memory was corrected.
- References are never auto-recalled and must be searched with search_references.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Pi Extension
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 Extension: common questions
Does this extension need a separate server?
Yes. It connects to a Librarian MCP server, which the source describes as a small self-hosted server reachable locally or over the network.
Where is memory data stored?
Memories are plain markdown notes in a git-backed vault. The source says nothing is locked in a database.
Does The Librarian send usage data?
Anonymous usage stats are on by default and never include memory content. They can be turned off in Settings, or with DO_NOT_TRACK=1 or LIBRARIAN_TELEMETRY=off.
How do I install Pi Extension?
In Claude Code run claude mcp add pi-extension -- npx -y @the-librarian/pi-extension. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Pi Extension the official server?
Pi Extension is published by npm:@the-librarian from its verified domain in the official MCP Registry.
Is Pi Extension free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Pi Extension safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Pi Extension?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Pi Extension 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.
