# dreamd MCP server

> Gives AI agents auditable long-term memory whose lessons cite their source events, so bad memories can be traced and removed.

- Repository: https://github.com/botzrDev/dreamd
- Page: https://hostedmcp.org/servers/botzrdev/dreamd
- Transport: stdio
- Stars: 6
- License: Apache-2.0
- Latest version: 1.3.0

## Install

### Claude Code

```sh
claude mcp add dreamd -- npx -y dreamd-mcp
```

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

```json
{
  "mcpServers": {
    "dreamd": {
      "command": "npx",
      "args": [
        "-y",
        "dreamd-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "dreamd": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "dreamd-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"dreamd","type":"stdio","command":"npx","args":["-y","dreamd-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "dreamd": {
      "command": "npx",
      "args": [
        "-y",
        "dreamd-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add dreamd -- npx -y dreamd-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.dreamd]
command = "npx"
args = ["-y", "dreamd-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user dreamd npx -- -y dreamd-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "dreamd": {
      "command": "npx",
      "args": [
        "-y",
        "dreamd-mcp"
      ]
    }
  }
}
```

## FAQ

### What is dreamd?

dreamd is local-first, long-term memory for AI agents where every lesson cites the events it came from and can be traced and removed.

### How do I install dreamd with Claude Code or Cursor?

Run the setup command with npx, which scaffolds the .agent/ store and writes the harness MCP config.

### How do I find which memory caused a bad answer?

Use the blame command with a query to list the stored memories behind a recall, including ids, timestamps, source and score.

### How do I remove a bad memory?

Run forget with the event id; use --dry-run to preview and --proof to write a forget receipt. It refuses while the daemon is running.

### Which MCP tools does dreamd expose?

The MCP surface is two tools, search_nodes and append_node; everything else is CLI over the same files.
