stash
Stash — persistent memory layer for AI agents. Episodes, facts, and working context stored in Postgres. MCP server included. Self-hosted, single binary, no cloud required.
MCP Agents Market is an independent directory. We are not affiliated with alash3al or stash, and we do not host or distribute it. All links point to the official GitHub repository.
Stash is a self-hosted MCP server that provides persistent memory for AI agents using PostgreSQL and pgvector. It captures episodes, consolidates them into facts and relationships, and enables semantic recall across sessions. The server runs as a single Docker Compose stack with automatic background consolidation through a 9-stage pipeline. It works with any MCP-compatible client including Claude Desktop, Cursor, Windsurf, and Cline via server-sent events (SSE).
Key Features
Use Cases
- 01Enabling AI coding assistants to remember project context, coding patterns, and past decisions across sessions
- 02Building conversational agents that recall user preferences, past interactions, and learned facts over time
- 03Creating knowledge bases from agent observations that surface patterns and contradictions automatically
- 04Tracking long-term goals and failure patterns to help agents learn from mistakes
- 05Running fully private AI memory systems using local Ollama models without external API calls
- 06Prototyping memory-augmented agents with quick Docker-based setup before moving to production
Related MCP Servers
View morefirecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
markitdown
Python tool for converting files and office documents to Markdown.
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
stash — FAQ
What is Stash MCP server?+
Stash is a persistent memory layer for AI agents delivered as an MCP server. It stores episodes, facts, and working context in PostgreSQL with pgvector, enabling agents to remember and recall information across sessions instead of starting from zero each time.
How do I install and run Stash?+
Clone the repository, copy .env.example to .env and add your API key and model settings, then run 'docker compose up'. The MCP server will be available at http://localhost:8080/sse and includes Postgres, pgvector, and background consolidation out of the box.
Which MCP clients work with Stash?+
Stash works with any MCP client that supports server-sent events (SSE), including Claude Desktop, Cursor, Windsurf, Cline, Continue, and OpenCode. Add the http://localhost:8080/sse URL to your client's MCP configuration JSON.
Do I need API keys or can I run Stash completely locally?+
You need an OpenAI-compatible API for embeddings and reasoning by default (OpenAI, Atlas Cloud, OpenRouter). However, Stash fully supports Ollama for completely local, private operation without any cloud API keys using the Ollama setup guide.
Is Stash free and open source?+
Yes, the self-hosted version is Apache 2.0 licensed and completely free. There is also a hosted cloud version at usestash.io currently in free beta, which is a separate codebase with different features.
What database does Stash require?+
Stash requires PostgreSQL with the pgvector extension for vector similarity search. The Docker Compose setup includes both automatically with migrations and configuration handled for you.
How do I install stash?+
Open the source repository on GitHub and follow its README. stash is a mcp server — MCP Agents Market links you directly to the official repo.
Is stash free?+
stash is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.