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.
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/mcpRun in your terminal. Add --scope user to use it in every project.
Step-by-step: install Stash — Shared AI Memory in Claude Code
{
"mcpServers": {
"stash-shared-ai-memory": {
"url": "https://usestash.io/mcp"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Stash — Shared AI Memory in Claude Desktop
{
"mcpServers": {
"stash-shared-ai-memory": {
"url": "https://usestash.io/mcp"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"stash-shared-ai-memory": {
"url": "https://usestash.io/mcp"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
{
"mcpServers": {
"stash-shared-ai-memory": {
"serverUrl": "https://usestash.io/mcp"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Stash — Shared AI Memory in Antigravity CLI
https://usestash.io/mcpIn ChatGPT: Settings, Connectors, Add custom connector, then paste this URL. Works in any client that supports remote servers.
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
ANo 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 →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
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.
