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

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.

  • Score 83
  • 34 stars
  • 1.6k a week
  • Apache-2.0
  • Updated

Install Pi Extension

Built from the published package, never by AI.

claude mcp add pi-extension -- npx -y @the-librarian/pi-extension

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

Step-by-step: install Pi Extension 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 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

A

No 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 →

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.

Pi Extension Install

Add to stack

Loading.