# Weasley DeepMind

Weasley DeepMind is an MCP server for Claude Code that stores typed memory fragments and retrieves linked context. Agents access it through stdio or HTTP.

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

## What it does

Weasley DeepMind gives an AI agent a self-hosted memory store for facts, decisions, procedures, preferences, episodes, and errors. It keeps provenance and links, then combines keyword search with graph neighbors and optional vector ranking through `pgvector`. The tool set includes `remember`, `recall`, `reflect`, `context`, `forget`, `amend`, and memory-history operations.

The server can run as a local stdio process or expose the Streamable HTTP endpoint `/mcp`. HTTP requests are rejected when `WEASLEY_DEEPMIND_ACCESS_KEY` is missing. Node.js 20.19 or newer and PostgreSQL 15 or newer with `pgvector` are required; Redis 7 is optional for caching and keyword lookup. An `EMBEDDING_API_KEY` is used when an external embedding provider is selected.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `DATABASE_URL`, `WEASLEY_DEEPMIND_AUTO_MIGRATE`, `EMBEDDING_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 DATABASE_URL=<DATABASE_URL> --env WEASLEY_DEEPMIND_AUTO_MIGRATE=<WEASLEY_DEEPMIND_AUTO_MIGRATE> --env EMBEDDING_API_KEY=<EMBEDDING_API_KEY> --transport stdio weasley-deepmind -- npx -y weasley-deepmind
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add weasley-deepmind --env DATABASE_URL=<DATABASE_URL> --env WEASLEY_DEEPMIND_AUTO_MIGRATE=<WEASLEY_DEEPMIND_AUTO_MIGRATE> --env EMBEDDING_API_KEY=<EMBEDDING_API_KEY> -- npx -y weasley-deepmind
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "weasley-deepmind": {
            "command": "npx",
            "args": [
                "-y",
                "weasley-deepmind"
            ],
            "env": {
                "DATABASE_URL": "<DATABASE_URL>",
                "WEASLEY_DEEPMIND_AUTO_MIGRATE": "<WEASLEY_DEEPMIND_AUTO_MIGRATE>",
                "EMBEDDING_API_KEY": "<EMBEDDING_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "weasley-deepmind": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "weasley-deepmind"
            ],
            "env": {
                "DATABASE_URL": "<DATABASE_URL>",
                "WEASLEY_DEEPMIND_AUTO_MIGRATE": "<WEASLEY_DEEPMIND_AUTO_MIGRATE>",
                "EMBEDDING_API_KEY": "<EMBEDDING_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e DATABASE_URL=<DATABASE_URL> -e WEASLEY_DEEPMIND_AUTO_MIGRATE=<WEASLEY_DEEPMIND_AUTO_MIGRATE> -e EMBEDDING_API_KEY=<EMBEDDING_API_KEY> weasley-deepmind npx -y weasley-deepmind
```
Replace <…> with your own values

## When to use it
- carry project decisions across agent sessions
- retrieve linked context without replaying the whole conversation
- search stored memories with keywords and graph relations
- amend or retract an earlier memory fragment
- trace how a memory changed over time

## Example prompts
- Remember the authentication decision for this project and link it to the current ticket.
- Find memories about the PostgreSQL migration and build context for this task.
- Trace the history of the caching decision in the project memory.

## Similar
- [hypermnesia-mcp](https://affpapa.org/en/nevibecode/mcp/hypermnesia-mcp.md) — MCP server · ★ 78 repo stars
- [Memory Vault](https://affpapa.org/en/nevibecode/mcp/memory-vault.md) — MCP server · ★ 67 repo stars
- [memory-industry](https://affpapa.org/en/nevibecode/mcp/memory-industry.md) — MCP server · ★ 30 repo stars
- [Provena Agent Memory](https://affpapa.org/en/nevibecode/mcp/provena-agent-memory.md) — MCP server · ★ 8 repo stars
- [Epitome](https://affpapa.org/en/nevibecode/mcp/epitome.md) — MCP server · ★ 8 repo stars
- [Open Brain](https://affpapa.org/en/nevibecode/mcp/open-brain.md) — MCP server · ★ 8 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
