</>MCP Agents Market
MCP Server

stash

by alash3al768GoUpdated 2026-06-14

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.

Claude DesktopCursorWindsurfClineContinue

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

PostgreSQL + pgvector backend for semantic memory storage and vector similarity search
9-stage consolidation pipeline that transforms raw observations into facts, relationships, patterns, and hypotheses
SSE-based MCP server accessible at http://localhost:8080/sse for any MCP client
Single Docker Compose deployment with automatic migrations and background processing
OpenAI-compatible API support for embeddings and reasoning models (works with Atlas Cloud, Ollama, OpenRouter)
Fully local operation option using Ollama for private embeddings and inference without cloud dependencies
Incremental consolidation that processes only new data since the last run
Apache 2.0 licensed with optional hosted cloud version at usestash.io

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 more

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.

Related searches