# memoweft

memoweft stores AI conversation memory with structure: raw facts separate from derived understanding, with corrections, retractions and access control.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6 repo stars
- Author: memoweft
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/memoweft/memoweft
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/memoweft

## What it does

memoweft records what the user said as Evidence — verbatim text tagged with provenance. From these records the engine builds World objects: entities, relationships, events, evaluations, cognitions. When the user corrects the AI or retracts a fact, no version is lost — the system knows the origin of each piece.

The server exposes eight tools: five for reading (search, history, dependencies), three for writing (new fact, correction, deletion). Forgetting is selective: the engine previews what else depends on that fact and removes linked copies in conversations. Requires `MEMOWEFT_DB_PATH` environment variable pointing to a local SQLite database. Node 24 uses the built-in driver; Node 20 and 22 pull in `better-sqlite3`.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `MEMOWEFT_DB_PATH` — 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 memoweft -e MEMOWEFT_DB_PATH=<MEMOWEFT_DB_PATH> -- npx -y @memoweft/mcp-server
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add memoweft --env MEMOWEFT_DB_PATH=<MEMOWEFT_DB_PATH> -- npx -y @memoweft/mcp-server
```
Replace <…> with your own values

### Cursor

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

### GitHub Copilot

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

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e MEMOWEFT_DB_PATH=<MEMOWEFT_DB_PATH> memoweft npx -y @memoweft/mcp-server
```
Replace <…> with your own values

## When to use it
- track where the AI got every remembered fact
- forget a fact along with dependent mentions in conversations
- store a user correction and show the original version
- separate verbatim user statements from model interpretation
- maintain a log of memory retractions and corrections

## Example prompts
- Remember the project uses PostgreSQL 15 with the `pgvector` extension
- Show all facts about me from the last three conversations
- Forget what I said about migrating to TypeScript

## Similar
- [emem](https://affpapa.org/en/nevibecode/mcp/emem.md) — MCP server · 1175 installs
- [footnote](https://affpapa.org/en/nevibecode/mcp/footnote.md) — MCP server
- [PMB AI](https://affpapa.org/en/nevibecode/mcp/pmb-ai.md) — MCP server · ★ 291 repo stars
- [claudex](https://affpapa.org/en/nevibecode/mcp/claudex.md) — MCP server · ★ 97 repo stars
- [hypermnesia-mcp](https://affpapa.org/en/nevibecode/mcp/hypermnesia-mcp.md) — MCP server · ★ 78 repo stars
- [SynaBun](https://affpapa.org/en/nevibecode/mcp/synabun.md) — MCP server · ★ 75 repo stars

---
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
