Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 🧠 Knowledge & Memory
  3. Zipmem MCP
Zipmem MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 12:01:56 PM

Zipmem MCP

User RatingsBe the first to rate and review this MCP server!
View RepositoryVisit Website
memorylocal-storageterminalsemantic-memorymcp

Local-first MCP server providing long-term semantic memory for terminal AI agents via anchored compacting in a JSON store.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Automated check passedβ€” started and listed 3 tools correctly (1mo ago).
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ahmetakyurt-zipmem-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "zipmem-mcp"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (3) Directory Badge Claim listing Alternatives🧠 More in Knowledge & Memory

Overview

This MCP server enables terminal AI agents like Claude Code to maintain an extensive project memory across sessions without bloating the live context window. It stores distilled semantic information such as blueprints, code anchors, and lessons in a single JSON file under a local .zipmem/ directory, avoiding database or cloud dependencies. The server validates, merges, and persists memory updates while the agent controls the intelligence and compaction process. Use it when you want persistent, efficient project memory without external APIs or embedding costs.

Use cases

β€’Preserve project history and architecture across AI agent sessions
β€’Compactly store code references as file-line-concept anchors
β€’Retain distilled lessons and blueprints verbatim for recall
β€’Avoid context window bloat in long or multi-session interactions
β€’Enable local, offline memory storage without cloud or API keys

Key features

β€’Local JSON memory store under .zipmem/ directory
β€’Anchored Compacting replaces code blocks with file-line anchors
β€’No external database, API keys, or embedding calls required
β€’Injects Constitutional Directive into CLAUDE.md for agent integration
β€’Automatic memory loading and compaction triggered by agent
β€’Per-project initialization and configuration

Capabilities & Tool Schemas (3) ~1.1k tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Verified live Verified liveCaptured by calling this server’s live tools/list endpoint.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Zipmem MCP.

zipmem_load_memory

Load this project's compressed long-term memory. CALL THIS FIRST, at the very start of every session, before doing anything else. Returns architectural blueprints, file-coordinate anchors, and lessons learned from previous sessions so you regain full context at near-zero token cost.

zipmem_save_and_compact

Compress the current session and merge it into long-term memory. CALL THIS when the user signals they are done (exit/quit/goodbye/wrap up) OR when you sense your context window is nearing capacity. Provide your work as structured sections: blueprints (verbatim architecture/schemas/decisions), anchors (file coordinates instead of raw code), and lessons (distilled bug fixes). Never include raw code blocks β€” use anchors.

zipmem_checkpoint

Stage incremental progress for crash-safety. Call this PERIODICALLY during a session β€” after each meaningful unit of work (a feature wired up, a bug fixed, a decision made) β€” so that an abrupt exit (Ctrl+C, a closed terminal, a crash) never loses more than the last few steps. It is cheap and does NOT finalize the session: pass the same structured fields as save_and_compact (blueprints/anchors/lessons + a running summary). The data is buffered durably and folded into memory automatically on the next session if the current one ends without a clean compaction.

Documentation Overview

zipmem-mcp

Endless semantic memory for terminal AI agents β€” without the bloated context window.

zipmem-mcp is a local-first MCP server + CLI that lets agents like Claude Code carry an entire project's history across sessions while keeping the live context window small. It works by Anchored Compacting: stripping semantic noise, replacing massive code blocks with file-coordinate anchors, and preserving architectural blueprints, schemas, and hard-won lessons verbatim.

No cloud. No API keys. No AI calls on the server side. Your memory lives in a single human-readable JSON file under .zipmem/.

ZipMem demo β€” a Claude Code session saving and compacting its memory


The problem

Long, high-intensity agent sessions fill up the context window:

  • Prompt caching only saves money, not space. Cached or not, every re-read of a giant terminal history still consumes window tokens.
  • A 5-minute idle invalidates the cloud KV cache. The next turn re-reads the whole history at full price.
  • Manual "summarize the session" is lossy and tedious, and dumping raw terminal logs just moves the bloat around.

The approach: Anchored Compacting

Instead of storing the session, zipmem stores its meaning:

Raw session contentWhat zipmem keeps
200-line code block you just wrote[src/auth/oauth.ts -> 15-42 -> PKCE flow with refresh-token rotation]
A 6-step debugging sagaA one-line lesson: "Stripe webhook must be idempotent β€” it retries on 5xx"
Architecture you designedA blueprint, preserved verbatim
Repetitive logs, dead ends, pleasantriesDiscarded

Anchors are coordinates, not code β€” the agent re-reads the file on demand when it actually needs the detail. The result is an endless memory loop where the window stays small but nothing foundational is ever lost.

The intelligence lives in the prompt, not the server. zipmem init injects a Constitutional Directive into your CLAUDE.md. The agent itself produces the compact, structured payload; the server only validates, deduplicates, merges, and persists. That keeps the server dependency-free and instant.


Install

Terminal
npm install -g zipmem-mcp

Requires Node.js β‰₯ 18.

Quick start

bash
# 1. Initialize in your project root (once per project)
cd your-project
zipmem init

# 2. Register the MCP server with Claude Code
#    (add -s user to make it available in every project β€” see below)
claude mcp add -s user zipmem-mcp -- npx zipmem-mcp

That's it. zipmem init:

  • creates .zipmem/state.json (your memory store),
  • injects the Constitutional Directive into CLAUDE.md (or memory.md, or creates CLAUDE.md),
  • adds .zipmem/ to .gitignore (keep memory local β€” see Shared memory),
  • records a checkpoint mode (balanced by default; pass --checkpoint=conservative|aggressive to change it).

From the next session on, the agent loads memory automatically at the start and compacts automatically when you say goodbye or it nears its context limit. You don't run anything by hand.

Manual MCP config

If you register MCP servers via a JSON config (claude_desktop_config.json or similar):

config.json
{
  "mcpServers": {
    "zipmem-mcp": {
      "command": "npx",
      "args": ["zipmem-mcp"]
    }
  }
}

The server reads CLAUDE_PROJECT_DIR (set automatically by Claude Code) to find the project's .zipmem/. It otherwise falls back to the nearest .zipmem/ ancestor of the working directory.


Using zipmem across multiple projects

zipmem works per-project, and getting it running everywhere depends on two separate, independent steps. If it works in one project but seems dead in another, one of these is almost always the reason:

1. Register the MCP server at the right scope. Claude Code's claude mcp add defaults to local scope β€” the server is then only visible inside the one directory where you ran it. In any other project the tools simply don't exist. To register it once for all your projects, use user scope:

Terminal
claude mcp add -s user zipmem-mcp -- npx zipmem-mcp

Verify what's registered (and at which scope) from inside the project that isn't working:

Terminal
claude mcp list

If zipmem-mcp isn't listed there, that's the problem β€” re-add it with -s user (or -s project to share it with a repo via a committed .mcp.json).

2. Run zipmem init in every project. This is per-project, not per-machine. Registering the server is not enough on its own, because init is what:

  • creates that project's .zipmem/state.json (without it there's no memory to load), and
  • injects the Constitutional Directive into that project's CLAUDE.md. Without the directive the agent never learns to call the tools β€” the server is running but nothing triggers it, so it looks like "zipmem doesn't work here."
bash
cd your-other-project
zipmem init

Heads-up on project resolution. The server locates memory via CLAUDE_PROJECT_DIR β†’ the nearest .zipmem/ ancestor β†’ cwd. If a project has no .zipmem/ of its own but sits inside another project that does, the agent can silently read/write the parent project's memory. Running zipmem init in each project gives it its own .zipmem/ and avoids this.

Quick checklist when a project "doesn't work":

SymptomCheckFix
Tools not offered at allclaude mcp list β€” is zipmem-mcp there?claude mcp add -s user zipmem-mcp -- npx zipmem-mcp
Server runs but agent never calls itIs the directive in this project's CLAUDE.md? Is there a .zipmem/?zipmem init in the project root
Wrong / unexpected memory loadsDoes a parent folder have a .zipmem/?zipmem init here so the project has its own store

How the loop works

Code
Session start ──► agent calls zipmem_load_memory ──► regains full context (few tokens)
      β”‚
      β”‚   ... work ...
      β”‚
"we're done" message / context pressure ──► agent calls zipmem_save_and_compact
                                         β”‚
                                         β–Ό
                          validate β†’ dedup-merge β†’ prune β†’ write .zipmem/state.json

MCP tools

ToolWhen the agent calls itWhat it does
zipmem_load_memoryFirst thing, every sessionReturns blueprints, anchors, and lessons as compact text. Surfaces a recovery banner if the previous session ended abruptly.
zipmem_checkpointDepends on the checkpoint mode (every unit of work, only at milestones, or when you say checkpoint)Stages progress into a crash-safe buffer (session.json) β€” intermediate, not final, never touches state.json. Called many times per session.
zipmem_save_and_compactWhen you signal the session is wrapping up in a chat message ("we're done", "that's all", "goodbye", or save), or when context nears its limitFinalizes: folds the staged buffer + final delta into persistent memory (state.json), prunes, closes the session. Usually once at the end.

The tool descriptions are written so the agent knows when and why to call them without you prompting it.

Heads-up about exit / quit: these are Claude Code's own CLI commands β€” they close the terminal instantly, before the agent gets a turn, so they do not trigger zipmem_save_and_compact. To get a clean final save, send a normal chat message first ("we're done", "save", "goodbye"), let the agent compact, then quit. Otherwise durability falls back to your last checkpoint + next-session recovery.

Checkpoint vs. save β€” the one-line version

Checkpoint = cheap, frequent, "don't lose my progress" insurance (recovered only on the next session if you crash). Save & compact = the authoritative commit to long-term memory that a future zipmem_load_memory reads back. Many checkpoints during a session; one save at the end.


Checkpoint modes

zipmem_checkpoint is the main cost ↔ safety knob. Each checkpoint is agent-generated output, so frequent checkpoints mean more durability but more tokens. You pick the cadence at init time and it's baked into the injected directive (the server treats every checkpoint identically β€” only the instruction to the agent changes):

bash
zipmem init --checkpoint=balanced     # default
ModeThe agent is told to…Best for
aggressiveCheckpoint after every meaningful unit of work (a feature wired up, a bug fixed). Maximum durability against hard exits.Long, high-stakes sessions where losing even a few steps hurts.
balanced (default)Checkpoint only at major milestones β€” a big refactor finished, a critical bug resolved, a foundational decision made.Most projects: low token overhead, still protects the work that matters.
conservativeNever persist on its own. Memory is written only when you say so, via two plain words: say checkpoint β†’ the agent stages progress (zipmem_checkpoint); say save β†’ the agent does a full compaction (zipmem_save_and_compact). Either way it runs the tool immediately and replies with a one-line confirmation.Token-tight workflows where you want full manual control.

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Knowledge & Memory View all alternatives
  • Moxie Docs MCP logoMoxie Docs MCP
    β˜… Featured

    MCP & Agent Skills for Automated Documentation, and codebase conventions + context

    🧠 Knowledge & Memory21 views
    Compare vs Moxie Docs MCP β†’
  • Scrivener MCP logoScrivener MCP

    Connect Scrivener 3 writing projects to Claude and other AI assistants. 47 tools for document management, writing analysis, semantic search, character/plot memory, and content enhancement. Progressive skill loading, relationship engine with HMS triplets, and JS fallback for offline semantic search. npm i -g scrivener-mcp

    🧠 Knowledge & Memory16 views
    Compare vs Scrivener MCP β†’
  • Basic Memory logoBasic Memory

    Persistent, local-first AI memory: a semantic knowledge graph of plain Markdown files that humans and LLMs both read and write. Works with any MCP client, with optional cloud sync and team workspaces.

    🧠 Knowledge & Memory2 views
    Compare vs Basic Memory β†’
  • Engram logoEngram

    Local-first persistent memory for AI agents. SQLite + local embeddings (all-MiniLM-L6-v2), hybrid semantic + FTS5 recall, secret detection, and contradiction handling. 6 MCP tools (remember, recall, forget, feedback, context, status) over stdio. Zero cloud, no API keys, fully offline. Works with Claude Desktop/Code, Cursor, and Windsurf. npm install -g @hbarefoot/engram

    🧠 Knowledge & Memory2 views
    Compare vs Engram β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

npm downloads
48
Package downloads in the last 30 days.
Last commit
2mo ago
Most recent push to the default branch.
Availability
100%
Our rolling endpoint + install checks that succeeded.
Install check
Passed
Our sandbox started it and listed its tools.
Tools exposed
3
Callable tools this server registers over MCP.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Zipmem MCP

No, it operates fully locally without cloud dependencies or API keys.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewZipmem MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ahmetakyurt-zipmem-mcp?style=directory)](https://allmcps.com/mcp/ahmetakyurt-zipmem-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/ahmetakyurt-zipmem-mcp"><img src="https://allmcps.com/api/badge/ahmetakyurt-zipmem-mcp?style=directory" alt="Zipmem MCP on AllMCPs" /></a>

Technical Specs & Signals

Category🧠Knowledge & Memory
PricingFree
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
AuthNo auth required
ClientsClaude Desktop
Last updatedAug 9, 2026
10/10 checks healthy over the last 32d
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars0
GitHub Star CountTotal stargazers on GitHub representing community popularity (0 stars).
Last commit2mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Jul 1, 2026
npm downloads48/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
69Quality signal: Great Β· 69/100How this signal is calculated β–Ύ
Server availability25/25
Verified ownership10/20
Documentation & tools30/30
Adoption & activity4/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 23d ago via OSV.dev Β· zipmem-mcp (npm)

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 🧠 Knowledge & Memory β†’Best MCP servers for Memory & Knowledge β†’Alternatives to Zipmem MCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code