Stash
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Stash
Your AI has amnesia. We fixed it.
Every LLM starts every conversation from zero. Stash gives your agent persistent memory — it remembers, recalls, consolidates, and learns across sessions. No more explaining yourself from scratch.
Open source. Self-hosted. Works with any MCP-compatible agent.
Want persistent AI memory in 30 seconds — no Docker, no Postgres, no API keys?
Stash Cloud (usestash.io) is the hosted version built for everyday cross-tool use — free to start, no credit card required.
Add one remote MCP URL to Claude, Claude Code, Cursor, Codex, OpenCode, or Replit:
https://usestash.io/mcpSign in and approve the connection (OAuth — per-app access you can revoke in one click).
Get semantic search, structured folders, pinned project rules, live skills, version history, and shared team brains out of the box.
Listed in the Official MCP Registry (
io.usestash/memory) · Try Stash Cloud →
Quick Start
git clone https://github.com/alash3al/stash.git
cd stash
cp .env.example .env # edit with your API key + model
docker compose upThat's it. Postgres + pgvector, migrations, MCP server with background consolidation — all in one command.
Next: Getting Started guide — connect your MCP client, run init / remember / recall, and verify everything works.
Fully local (no cloud API): Ollama setup guide — host Ollama + Docker Compose, private embeddings and reasoner.
Related MCP server: HAM
Atlas Cloud
Atlas Cloud is a full-modal AI inference platform that gives developers a single AI API to access video generation, image generation, and LLM APIs. Instead of managing multiple vendor integrations, you connect once and get unified access to 300+ curated models across all modalities.
Check out Atlas Cloud's coding plan promotion: https://www.atlascloud.ai/console/coding-plan
Stash already supports Atlas Cloud through its OpenAI-compatible API. Set your .env like this:
STASH_OPENAI_API_KEY=your-atlas-cloud-api-key
STASH_OPENAI_BASE_URL=https://api.atlascloud.ai/v1
STASH_EMBEDDING_MODEL=text-embedding-3-small
STASH_REASONER_MODEL=deepseek-ai/DeepSeek-V3-0324
STASH_VECTOR_DIM=1536Atlas Cloud works well here because Stash only needs:
an embeddings model for vectorization
a chat-capable reasoning model for consolidation
an OpenAI-compatible base URL and API key
See Getting Started for a fuller configuration checklist.
MCP Client Setup
After docker compose up, Stash exposes an MCP server over SSE at:
http://localhost:8080/ssePoint any MCP-compatible client at that URL. Example configs:
Cursor — ~/.cursor/mcp.json
{
"mcpServers": {
"stash": {
"url": "http://localhost:8080/sse"
}
}
}Claude Desktop — claude_desktop_config.json
{
"mcpServers": {
"stash": {
"url": "http://localhost:8080/sse"
}
}
}OpenCode — ~/.config/opencode/config.json
{
"mcp": {
"stash": {
"type": "remote",
"url": "http://localhost:8080/sse",
"enabled": true
}
}
}Windsurf — ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"stash": {
"url": "http://localhost:8080/sse"
}
}
}Works with any agent that supports MCP over SSE — Claude Desktop, Cursor, Windsurf, Cline, Continue, OpenAI Agents, Ollama, OpenRouter, Atlas Cloud-backed setups, and more.
What It Does
Stash is a cognitive layer between your AI agent and the world. Episodes become facts. Facts become relationships. Relationships become patterns. Patterns become wisdom.
A 9-stage consolidation pipeline turns raw observations into structured knowledge — facts, relationships, causal links, patterns, contradictions, goal tracking, failure patterns, and hypothesis verification. Each stage only processes new data since the last run.
Stash Cloud vs. Self-Hosted
For most people, Stash Cloud (usestash.io) is the fastest way to get persistent memory across every AI tool without maintaining a database, embeddings provider, or local server:
Stash Cloud (usestash.io) | Self-Hosted (this repo) | |
Setup | Add | Clone, configure |
Transport | Remote Streamable HTTP + OAuth (per-app revoke) | Local SSE ( |
Memory model | Structured folders, semantic search, pinned project rules, live skills, version history | Episodes, facts, and 9-stage background consolidation |
Teams & sharing | Shared team brains with roles + consented brain-to-brain handovers | Single self-hosted instance |
Cost | Free personal tier (no ads, never trains on your data) | Your own infrastructure + LLM/embedding API bills |
Stash Cloud is built from scratch as a multi-tenant hosted product and shares no code with this repository. This open-source repository stays Apache 2.0 for anyone who prefers to self-host locally (including fully offline with Ollama).
Connect your AI to Stash Cloud →
Learn More
License
Apache 2.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Persistent memory for AI agents to retain, retrieve, and recall conversation context through MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to store, retrieve, and manage contextual knowledge across sessions using semantic search with PostgreSQL and vector embeddings. Supports memory relationships, clustering, multi-agent isolation, and intelligent caching for persistent conversational context.28 npm50MIT

HAMofficial
AlicenseNot gradedqualityCmaintenanceProvides persistent, scoped shared memory for collaborating AI agents, with tools for storing observations, semantic recall, and handoff workflows. Backed by PostgreSQL and exposed through MCP.1Apache 2.0- AlicenseNot gradedqualityDmaintenanceProvides MCP agents with persistent memory operations (store, recall, forget, consolidate, list) backed by Redis, Postgres, and pgvector, including semantic search and background consolidation.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to persist, retrieve, and share source-linked memory across sessions via MCP tools, backed by PostgreSQL with project/session management, decision tracking, keyword search, and cross-host context handoff.Apache 2.0