# Stash — Shared AI Memory

> Stash — Shared AI Memory is a freemium MCP server for knowledge and memory. Persistent shared memory for AI tools, usable via a remote MCP URL or self-hosted. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** Web, API, Self-hosted
- **Website:** https://usestash.io
- **Repository:** https://github.com/alash3al/stash
- **MCP Registry name:** io.usestash/memory
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [agent memory](https://ai-powered.com/categories/agent-memory)
- **Listing updated:** 2026-11-28

## About

Stash gives AI assistants a memory that survives between sessions and carries across clients. You add a single remote MCP URL to a tool such as Claude, Claude Code, Cursor, Codex, OpenCode or Replit, sign in through OAuth, and the connection can be revoked per app.

The hosted Stash Cloud stores memory in structured folders and retrieves it by meaning rather than keywords. It also supports pinned project rules, live skills, version history, and shared team brains with roles and consented brain-to-brain handovers. The hosted service says it does not train on user data.

There is also a separate open-source, self-hosted version under Apache 2.0. It runs through Docker Compose with Postgres and pgvector and exposes an MCP server over SSE. A nine-stage background consolidation pipeline turns episodes into facts, relationships, patterns, contradictions and goal tracking. It can use an OpenAI-compatible API or run fully local with Ollama.

## Features

- **Semantic memory search:** Finds past decisions and notes by meaning instead of exact keywords.
- **Pinned project rules:** Keeps project instructions persistently available to connected AI tools.
- **Live skills:** Stores reusable skills that connected assistants can draw on.
- **Shared team brains:** Teams share knowledge with roles and consented brain-to-brain handovers.
- **Version history:** Tracks changes to stored memory in the hosted product.
- **OAuth remote connection:** One MCP URL with per-app access that can be revoked in one click.
- **Memory consolidation pipeline:** The self-hosted edition runs a nine-stage process that turns raw episodes into structured knowledge.
- **Fully local option:** Self-hosted setup can use Ollama for private embeddings and reasoning.

## Good for

- Carry project context between Claude, Cursor and Codex sessions
- Pin coding conventions so every assistant follows them
- Share team knowledge across members' AI tools
- Recall earlier design decisions by describing them
- Self-host private agent memory with local models

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http memory https://usestash.io/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "memory": {
      "type": "http",
      "url": "https://usestash.io/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://usestash.io/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "memory": {
      "url": "https://usestash.io/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "memory": {
      "type": "http",
      "url": "https://usestash.io/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://usestash.io/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add memory --url https://usestash.io/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.memory]
url = "https://usestash.io/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "memory": {
      "httpUrl": "https://usestash.io/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http memory https://usestash.io/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "memory": {
      "serverUrl": "https://usestash.io/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "memory": {
      "url": "https://usestash.io/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "memory": {
      "type": "streamableHttp",
      "url": "https://usestash.io/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "memory": {
      "url": "https://usestash.io/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "memory": {
      "url": "https://usestash.io/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "memory": {
      "url": "https://usestash.io/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "memory": {
      "url": "https://usestash.io/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://usestash.io/mcp
```

Enter a Name (for example "Stash — Shared AI Memory"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "memory": {
      "type": "http",
      "url": "https://usestash.io/mcp"
    }
  }
}
```

## FAQ

### How do I connect to Stash Cloud?

Add the remote MCP URL https://usestash.io/mcp to your client, then sign in and approve the connection with OAuth.

### Which clients work with Stash — Shared AI Memory?

The hosted service names Claude, Claude Code, Cursor, Codex, OpenCode and Replit. The self-hosted server also works with other MCP clients such as Windsurf, Cline and Continue.

### Can I self-host Stash — Shared AI Memory?

Yes. The open-source repository is Apache 2.0 and runs with Docker Compose, Postgres and pgvector, and can use Ollama for fully local operation.

### Does Stash — Shared AI Memory cost anything?

Stash Cloud has a free personal tier that needs no credit card. Self-hosting costs your own infrastructure and model API usage.

### Is the hosted version the same code as the repository?

No. Stash Cloud is a separate multi-tenant product and shares no code with the open-source repository.

### How do I add Stash — Shared AI Memory to Claude Code?

Run this command in your terminal: claude mcp add --transport http memory https://usestash.io/mcp

### What are the best alternatives to Stash — Shared AI Memory?

The closest alternatives to Stash — Shared AI Memory are Gnosis Memory, stagenth · AI 记忆库, Stompy – AI Memory for Claude & MCP Agents, Stashr and Brainiall Memory.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Gnosis Memory](https://ai-powered.com/mcp/gnosis-memory): Gnosis Memory is a freemium MCP server for knowledge and memory.
- [stagenth · AI 记忆库](https://ai-powered.com/mcp/stagenth-ai): stagenth · AI 记忆库 is an MCP server for knowledge and memory.
- [Stompy – AI Memory for Claude & MCP Agents](https://ai-powered.com/mcp/stompy-ai-memory-for-claude-and-mcp-agents): Stompy – AI Memory for Claude & MCP Agents is an MCP server for knowledge and memory.
- [Stashr](https://ai-powered.com/mcp/stashr): Stashr is an MCP server for knowledge and memory.
- [Brainiall Memory](https://ai-powered.com/mcp/brainiall-memory): Brainiall Memory is a freemium MCP server for knowledge and memory.
- [stash](https://ai-powered.com/mcp/stash-2): stash is an MCP server for knowledge and memory.
- [Multitude](https://ai-powered.com/mcp/multitude): Multitude is a freemium MCP server for knowledge and memory.
- [Stashpad](https://ai-powered.com/mcp/stashpad): Stashpad is an open-source MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/stash-shared-ai-memory
