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

Stash — Shared AI Memory

MCP server by alash3al Verified · usestash.io

Stash gives AI agents persistent memory that carries across sessions and tools. It is an open source, self-hosted MCP server for developers who want to run their own memory layer.

  • Score 92
  • 772 stars
  • Apache-2.0
  • Updated

Install Stash — Shared AI Memory

Built from the published package, never by AI.

claude mcp add --transport http stash-shared-ai-memory https://usestash.io/mcp

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

Step-by-step: install Stash — Shared AI Memory 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 stash-shared-ai-memory block.

About

Stash is an open source MCP server that gives an AI agent persistent memory across sessions. It stores episodes and runs a 9-stage background consolidation pipeline that turns raw observations into facts, relationships, patterns and other structured knowledge. Each stage processes only new data since the last run. The self-hosted version runs with Docker Compose, which starts Postgres with pgvector, migrations and the MCP server.

The server exposes an MCP endpoint over SSE at localhost:8080/sse. The source names Cursor, Claude Desktop, Windsurf and OpenCode as clients that can connect. Embeddings and a chat reasoning model come from an OpenAI-compatible API, and Ollama can be used for a fully local setup. It suits developers who want to self-host their own AI memory. A separate hosted product, Stash Cloud, is also described in the source, but it shares no code with this repository.

Written from the project's README and checked against it.

Tools it gives your assistant

  • rememberStores a memory. The getting started guide lists it as a command to run.
  • recallRetrieves stored memories. The getting started guide lists it as a command to run.
  • initInitial setup command listed in the getting started guide.
  • Background consolidationA 9-stage pipeline turns raw episodes into facts, relationships and patterns.
  • Local embeddings with OllamaRuns private embeddings and reasoning on your own host, without a cloud API.

What you need

  • Docker and Docker Compose
  • An API key and model for embeddings and reasoning, or Ollama for local use
  • An MCP-compatible client

Try asking

  • Remember that this project uses Postgres with pgvector for storage.
  • Recall what we decided about the deployment setup last week.
  • Save my coding style rules to memory for future sessions.

Good to know

  • The self-hosted setup is a single instance, according to the comparison table.
  • Team brains and brain-to-brain handovers are listed for Stash Cloud, not this repository.
  • Self-hosting requires your own infrastructure and LLM or embedding API bills.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Stash — Shared AI Memory

All alternatives →

Compare with Zotero MCP, Agentdb or Genkitx MCP

Stash — Shared AI Memory: common questions

Is Stash free to self-host?

The repository is licensed under Apache 2.0. The source says self-hosting costs your own infrastructure plus LLM and embedding API bills.

Can Stash run without a cloud API?

Yes. The source describes a fully local setup using Ollama for private embeddings and the reasoner.

How does Stash store memories?

It stores episodes and uses Postgres with pgvector. A background consolidation pipeline turns them into structured knowledge.

How do I install Stash — Shared AI Memory?

In Claude Code run claude mcp add --transport http stash-shared-ai-memory https://usestash.io/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Stash — Shared AI Memory the official server?

Stash — Shared AI Memory is published by usestash.io from its verified domain in the official MCP Registry.

Is Stash — Shared AI Memory free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Stash — Shared AI Memory safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. 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 Stash — Shared AI Memory?

Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.

Does Stash — Shared AI Memory work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

Stash — Shared AI Memory Install

Add to stack

Loading.