# strata

A self-hosted memory server: your notes and files stay on your own machine, and the agent searches by meaning.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6
- Author: agenerationforwordz-tech
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/agenerationforwordz-tech/strata
- Updated: 2026-07-25
- HTML: https://affpapa.org/en/nevibecode/mcp/agenerationforwordz-tech-strata

## What it does

strata gives any MCP-compatible agent a memory that survives the end of a session and never leaves your hardware. Every entry becomes a 768-dimensional vector, so a search for "new job" also surfaces what you wrote about switching careers. The embedding model runs locally through ONNX Runtime, takes roughly 100–150 MB of RAM and unloads itself after five idle minutes.

Real files can be attached to a thought — source code, documents, project archives. On disk they are grouped by device and month, and text files come back to the agent capped at 5 MB so the context window stays sane. Auto-tagging, duplicate detection and access tracking are included, so you can see which memories actually get used. Deleting requires an admin key; an agent cannot wipe your data on its own.

Version 2.2 adds a PostgreSQL plus pgvector backend for concurrent multi-agent writes, while SQLite stays the default for quick demos. Each agent gets its own key with `read / write / delete / admin / kill` permissions, and a global kill switch cuts every agent off from MCP, REST and `/api/*` — only a human admin can turn it back on. The repository is marked as superseded by SOLUM, and the author points new users there.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `STRATA_URL`, `STRATA_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env STRATA_URL=<STRATA_URL> --env STRATA_API_KEY=<STRATA_API_KEY> --transport stdio agenerationforwordz-tech-strata -- npx -y strata-mcp-server
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add agenerationforwordz-tech-strata --env STRATA_URL=<STRATA_URL> --env STRATA_API_KEY=<STRATA_API_KEY> -- npx -y strata-mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "agenerationforwordz-tech-strata": {
            "command": "npx",
            "args": [
                "-y",
                "strata-mcp-server"
            ],
            "env": {
                "STRATA_URL": "<STRATA_URL>",
                "STRATA_API_KEY": "<STRATA_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "agenerationforwordz-tech-strata": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "strata-mcp-server"
            ],
            "env": {
                "STRATA_URL": "<STRATA_URL>",
                "STRATA_API_KEY": "<STRATA_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e STRATA_URL=<STRATA_URL> -e STRATA_API_KEY=<STRATA_API_KEY> agenerationforwordz-tech-strata npx -y strata-mcp-server
```
Replace <…> with your own values

## When to use it
- find a note by meaning instead of exact keywords
- attach source files to a thought and hand the agent only what it needs
- give each agent its own key instead of sharing one
- cut every agent off from memory with a single switch
- import older memories under negative IDs

## Example prompts
- Save a thought about the PostgreSQL migration and attach `server.py`
- Find everything I wrote about budgets and investments
- Show which memories nobody opened this month

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

## Other versions with the same name
- [strata · klavis-ai](https://affpapa.org/en/nevibecode/mcp/strata.md) — ★ 5823

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
