Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Memstack

by isiomaCversion 0.8.5i★ –iRuns on your computer
Registry nameio.github.isiomaC/memstack

Install

Overview

Description from the maker (original English)

MCP server for persistent, searchable memory for AI agents.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Search & AI memory

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • The registry lists no key to fill in.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "memstack": {
      "command": "npx",
      "args": [
        "-y",
        "@memstack/mcp"
      ]
    }
  }
}

Run this in your terminal

claude mcp add memstack -- npx -y @memstack/mcp

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "memstack": {
      "command": "npx",
      "args": [
        "-y",
        "@memstack/mcp"
      ]
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "memstack": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@memstack/mcp"
      ]
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 6, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account isiomaC, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Search & AI memoryi

  • More stars than 0% of the other 7223 servers in this category
  • Published to the registry more recently than 56% of the other 7223 servers in this category
  • Basic checks equal to or better than 100% of the other 7223 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Memstack safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.8.5) reached the registry 29 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Context7, Codebase Memory, Exa

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Context7

by upstash

Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.

Computer or cloud★ 64,224MITUpdated 3 days ago
Install

Codebase Memory

by DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

Runs on your computer★ 48,148MITUpdated 20 days ago
Install

Exa

by exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

Runs in the cloud★ 5,213MITUpdated 44 days ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

MemStack

Persistent memory for AI agents. Claude Code and Codex share one memory per project, and your own agents get the same pipeline: store, retrieve, summarize, and prune.

Website and install guides: [memstack.stalewell.com](https://memstack.stalewell.com/)

Tell one agent how your project works. The other already knows. Claude Code learns a convention; a new Codex session recalls it and gets the task right:

npm install -g @memstack/cli @memstack/mcp better-sqlite3@^11.10.0   # MemStack never installs storage drivers

memstack init # LLM provider (optional) + store memstack connect claude-code memstack connect codex

Every session then starts with the project's key memories, and both agents save what you ask them to remember. How harness memory works.

Building your own agent?

# Use MemStack in your application

npm install @memstack/core

Give your coding agents the MemStack skill (-g: every project; omit it for this project only)

npx skills add isiomaC/memstack -g

@memstack/core is the runtime SDK; the Agent Skill teaches compatible coding agents how to integrate and operate MemStack correctly. Without -g, the skill installs into the current project (.agents/skills/, plus a .claude/skills/ link for Claude Code). Update it later with npx skills update.

The problem: AI agents forget. Every interaction starts from zero. You either stuff everything into the context window (expensive, slow, degrades output quality) or the agent has no memory of past conversations.

What MemStack does: A persistent memory pipeline that lives between your agent and the LLM. It stores every interaction, retrieves only what's relevant, summarizes old memories to save tokens, and prunes stale ones automatically. One method call, no infrastructure required.

Think of it as the open-source alternative to Mem0 — pluggable storage, bring your own LLM, zero vendor lock-in.


Table of Contents

  • Why MemStack
  • Quick Start
  • Harness Memory (Claude Code & Codex)
  • How it works
  • Commands
  • What connect changes
  • Projects
  • Storage
  • Troubleshooting
  • The Memory Pipeline
  • Store
  • Retrieve
  • Compile Context
  • Summarize
  • Prune
  • Real-World Use Cases
  • Support Agent
  • RAG Pipeline
  • Multi-User Chatbot
  • Memory Type Reference
  • Retrieval Strategies
  • Embeddings
  • Adapters
  • LLM Adapters
  • Embedding Adapters
  • Storage Adapters
  • Full API Reference
  • MemStack Client
  • Memory Subsystem
  • Export / Import
  • Health & Close
  • Harness Memory API
  • Configuration
  • Harness configuration file
  • Advanced Usage
  • Custom Storage
  • Custom LLM / Embedding
  • Event Hooks
  • LongMemEval-S Retrieval Benchmark
  • Development
  • Setup & Tests
  • Debugging
  • Publishing to npm
  • Contributing
  • License

Why MemStack

LLMs have context windows, not memory. The difference matters.

ApproachProblem
Stuff everything in contextCost is O(n²). 100 conversations = thousands of tokens = dollars per call. Quality degrades from "lost in the middle" effect.
Use a vector DB directlyYou get similarity search. You don't get summarization, pruning, recency weighting, deduplication, or token budget management. You're building the pipeline yourself.
Use Mem0Proprietary, cloud-only with their hosted API. You don't control where your data lives.
Use MemStackFull pipeline. Pluggable everything. Your data, your infrastructure. Open source.

What MemStack handles that raw vector DBs don't:

  • Summarization — compress 100 old interactions into one paragraph, keep meaning, save tokens
  • Recency weighting — recent memories matter more; MemStack sorts them higher
  • Importance scoring — not all memories are equal; high-importance ones survive pruning
  • Deduplication — identical or near-identical memories are collapsed in context assembly
  • Token budget — compileContext() tells you how many tokens you're spending before the LLM call
  • Memory-type routing — interactions, summaries, observations treated differently at retrieval time
  • Auto-pruning — old, low-importance memories clean themselves up

Quick Start

Claude Code and Codex

Persistent memory across agent harnesses: what you tell Claude Code, Codex recalls in the same project, and the reverse.

npm install -g @memstack/cli @memstack/mcp better-sqlite3@^11.10.0  # MemStack never installs storage drivers for you

memstack init # choose an LLM provider and a store memstack connect claude-code memstack connect codex

Then, in Claude Code: "Remember that this project uses Hono." In Codex, in the same repository: "What framework does this project use?" Codex answers Hono. See Harness Memory for how it works.

As a library
npm install @memstack/core
OpenAI
import { MemStack, OpenAILLMAdapter, OpenAIEmbeddingAdapter, InMemoryStorageAdapter } from "@memstack/core";

const llm = new OpenAILLMAdapter({ apiKey: process.env.OPENAI_API_KEY! });

const memstack = new MemStack({ llm, embedding: new OpenAIEmbeddingAdapter({ apiKey: process.env.OPENAI_API_KEY! }), storage: new InMemoryStorageAdapter(), });

DeepSeek (no embeddings)

DeepSeek provides chat completions but has no embedding API. Use the OpenAI-compatible LLM adapter with baseURL and omit the embedding adapter — retrieval falls back to keyword + recency + importance ranking. You still get the full pipeline: store, summarize, prune, and compileContext.

import { MemStack, OpenAILLMAdapter, InMemoryStorageAdapter } from "@memstack/core";

const llm = new OpenAILLMAdapter({ apiKey: process.env.DEEPSEEK_API_KEY!, baseURL: "https://api.deepseek.com/v1", defaultModel: "deepseek-flash", });

const memstack = new MemStack({ llm, storage: new InMemoryStorageAdapter(), // No embedding adapter — retrieval uses keyword matching });

OpenRouter / Together AI / any OpenAI-compatible API

Same pattern — change baseURL and defaultModel:

// OpenRouter

const llm = new OpenAILLMAdapter({ apiKey: process.env.OPENROUTER_API_KEY!, baseURL: "https://openrouter.ai/api/v1", defaultModel: "openai/gpt-4o-mini", });

// Together AI const llm = new OpenAILLMAdapter({ apiKey: process.env.TOGETHER_API_KEY!, baseURL: "https://api.together.xyz/v1", defaultModel: "meta-llama/Llama-3.3-70B-Instruct-Turbo", });

// Gemini (OpenAI-compatible endpoint) const llm = new OpenAILLMAdapter({ apiKey: process.env.GEMINI_API_KEY!, baseURL: "https://generativelanguage.googleapis.com/v1beta/openai", defaultModel: "gemini-2.0-flash", });

Store and retrieve
// 1. Store what happened

await memstack.memory.store({ actorId: "support-bot-42", content: "User reports login failing with error 503 on Chrome 125.", tags: ["login", "bug", "chrome"], importance: 0.8, });

// 2. Later, retrieve relevant context const memories = await memstack.memory.retrieve({ actorId: "support-bot-42", query: "login error", strategy: "hybrid", });

// 3. Assemble an LLM-ready context const ctx = await memstack.memory.compileContext({ actorId: "support-bot-42", maxTokens: 2000, });

const response = await llm.complete({ system: You are a support bot. Here is what you remember:\n${ctx.systemPrompt}, user: "The user is back and still can't log in. What do you do?", });

console.log(response.text); // "Based on our history, the user has been experiencing 503 errors on Chrome 125..."

// 4. Every 100 interactions, summarization triggers automatically. // Old interactions are compressed into a paragraph. Token costs stay flat.


Harness Memory (Claude Code & Codex)

Coding agents forget everything between sessions, and they don't share what they learn with each other. MemStack gives Claude Code and Codex one memory per project: a decision made with one agent is known to the other, and to every later session.

How it works
  • Saving. Each agent gets five MemStack tools (memory_store, memory_retrieve, memory_get, memory_delete, memory_stats) through the MCP harness profile. When you say "remember that…", or the agent learns a durable fact, decision, preference, or rule, it calls memory_store. MemStack asks your LLM for a few topic tags, so "uses Hono" can later be found by "which framework?". If tagging fails, the memory is still saved.
  • Recalling. A session-start hook loads the project's most important memories into every new session, so the agent starts out knowing them. During a session the agent calls memory_retrieve with plain questions. Recall runs locally with keyword ranking (BM25 with stemming) and never calls the LLM, so it is fast and works offline.
  • Scope. Memories belong to the current project. Preferences that apply everywhere can be saved as global (scope: "global") and are recalled in every project. One project can never read or delete another's memories.
  • Safety. Agents don't get bulk or destructive tools, and the LLM key stays in ~/.memstack/config.json (readable only by you), never in agent configs. Agents are told never to store secrets, and MemStack checks too: a memory that contains a credential (a private key, a cloud or source-host token, a JWT, a password in a connection string, a password = "..." assignment) is refused before the LLM or the store sees it, and the error names the kind of secret without repeating it. The check is pattern-based, so a secret in a format it doesn't know will pass; MEMSTACK_SECRET_POLICY=redact stores the memory with `[REDACT

Only the beginning is shown; read the rest in the repo

Ask PopNx