Skip to main content
ClaudeWave

Secure, fragment-based long-term memory for MCP-compatible AI agents.

MCP ServersRegistry oficial1 estrellas0 forksJavaScriptApache-2.0Actualizado yesterday
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/potatohoney-p/weasley-deepmind
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "weasley-deepmind": {
      "command": "node",
      "args": ["/path/to/weasley-deepmind/dist/index.js"],
      "env": {
        "DATABASE_URL": "<database_url>",
        "WEASLEY_DEEPMIND_ACCESS_KEY": "<weasley_deepmind_access_key>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Clone https://github.com/potatohoney-p/weasley-deepmind and follow its README for install instructions.
Detected environment variables
DATABASE_URLWEASLEY_DEEPMIND_ACCESS_KEY
Casos de uso

Resumen de MCP Servers

<!-- mcp-name: io.github.potatohoney-p/weasley-deepmind -->

![Weasley DeepMind](assets/weasley-deepmind-hero.png)

# Weasley DeepMind

Weasley DeepMind is a self-hosted memory server for AI agents. It stores small, typed memory fragments, links related evidence, and recalls the right context through MCP without forcing an entire conversation history back into every prompt.

It is part of the **Weasley Open Source** family and is released under Apache-2.0.

## Why DeepMind

- **Useful recall, not a transcript dump.** Keyword, PostgreSQL GIN, graph-neighbor, and optional pgvector search are merged and ranked within a token budget.
- **Memory with structure.** Facts, decisions, procedures, preferences, episodes, and errors keep provenance, importance, links, and lifecycle state.
- **MCP-native.** Use a local stdio process or the Streamable HTTP endpoint at `/mcp`.
- **Fail-closed HTTP security.** The HTTP server rejects requests when no access key is configured. Authentication can only be disabled explicitly for local development.
- **Self-hosted data.** PostgreSQL is the system of record. Redis and external embedding or LLM providers are optional.
- **Operationally ready.** Migrations are serialized with a PostgreSQL advisory lock, secrets are redacted from logs, and updates refuse dirty Git checkouts.

## Requirements

- Node.js 20.19 or newer
- PostgreSQL 15 or newer with the `pgvector` extension
- Redis 7 (optional, for cache and low-latency keyword lookup)

## Install from npm

```bash
npm install --global weasley-deepmind
```

Create a PostgreSQL database with pgvector, then configure the connection:

```bash
export DATABASE_URL='postgresql://postgres:password@localhost:5432/weasley_deepmind'
export WEASLEY_DEEPMIND_ACCESS_KEY='replace-with-a-long-random-secret'

weasley-deepmind migrate
weasley-deepmind serve
```

The HTTP server listens on `http://127.0.0.1:57332` by default. Its MCP endpoint is `http://127.0.0.1:57332/mcp`.

## Add it to an MCP client

The npm package includes a newline-delimited stdio transport. A generic MCP client configuration looks like this:

```json
{
  "mcpServers": {
    "weasley-deepmind": {
      "command": "npx",
      "args": ["-y", "weasley-deepmind", "stdio"],
      "env": {
        "DATABASE_URL": "postgresql://postgres:password@localhost:5432/weasley_deepmind",
        "WEASLEY_DEEPMIND_AUTO_MIGRATE": "true"
      }
    }
  }
}
```

For an already-running HTTP deployment, point the client at `/mcp` and send `Authorization: Bearer <WEASLEY_DEEPMIND_ACCESS_KEY>`.

## Run the repository locally

```bash
git clone https://github.com/potatohoney-p/weasley-deepmind.git
cd weasley-deepmind
npm ci
docker compose -f docker-compose.dev.yml up -d
cp .env.example.minimal .env
npm run migrate
npm start
```

The development Compose file exposes PostgreSQL at `localhost:35432` and Redis at `localhost:36379`. Update `.env` to match those ports before starting the server.

## Core flow

```mermaid
flowchart LR
    Agent["AI agent"] --> MCP["stdio or Streamable HTTP"]
    MCP --> Tools["remember · recall · reflect · context"]
    Tools --> Rank["keyword + graph + vector ranking"]
    Rank --> Postgres["PostgreSQL + pgvector"]
    Rank -. optional cache .-> Redis["Redis"]
```

The main tool set includes `remember`, `batch_remember`, `recall`, `forget`, `amend`, `link`, `reflect`, `context`, `memory_stats`, `memory_consolidate`, `graph_explore`, `fragment_history`, `reconstruct_history`, and `search_traces`. Tool availability can be limited by API-key permissions and operating mode.

## Configuration

| Variable | Purpose | Default |
| --- | --- | --- |
| `DATABASE_URL` | PostgreSQL connection URL | derived from `POSTGRES_*` |
| `WEASLEY_DEEPMIND_ACCESS_KEY` | Required bearer secret for HTTP mode | none; HTTP fails closed |
| `WEASLEY_DEEPMIND_AUTH_DISABLED` | Explicit loopback-only authentication opt-out; startup rejects non-loopback listeners | `false` |
| `WEASLEY_DEEPMIND_AUTO_MIGRATE` | Run migrations before stdio startup | `false` (`server.json` suggests `true`) |
| `WEASLEY_DEEPMIND_HOME` | CLI cache and local state directory | `~/.weasley/deepmind` |
| `WEASLEY_DEEPMIND_HOST` | HTTP listen address | `127.0.0.1` |
| `PORT` | HTTP port | `57332` |
| `REDIS_ENABLED` | Enable Redis-backed features | `false` |
| `EMBEDDING_PROVIDER` | `openai`, `gemini`, `ollama`, `localai`, `cloudflare`, `transformers` (optional install), or `custom` | `openai` |
| `EMBEDDING_API_KEY` | Optional embedding provider secret | none |

See [.env.example](.env.example), [configuration](docs/configuration.en.md), and the [installation guide](docs/INSTALL.en.md) for the complete matrix.

Local transformer embeddings are intentionally excluded from the default install so the core MCP server does not inherit an optional native-image dependency. Follow the pinned setup in [docs/embedding-local.md](docs/embedding-local.md) before selecting `EMBEDDING_PROVIDER=transformers`.

## CLI

```text
weasley-deepmind serve       Start the HTTP MCP server
weasley-deepmind stdio       Start the local stdio MCP server
weasley-deepmind migrate     Apply pending database migrations
weasley-deepmind health      Check database, Redis, and embeddings
weasley-deepmind recall      Search memory from the terminal
weasley-deepmind remember    Store a memory fragment
weasley-deepmind update      Preview or apply an update
```

Run `weasley-deepmind --help` or see the [CLI reference](docs/cli.en.md) for every command.

## Security defaults

- Keep the HTTP listener on loopback unless you have a trusted reverse proxy and an explicit origin allowlist.
- Use a unique, high-entropy `WEASLEY_DEEPMIND_ACCESS_KEY` and never commit `.env`.
- Stdio mode trusts the local MCP host process; protect the host account and database credentials accordingly.
- Report vulnerabilities privately using the instructions in [SECURITY.md](SECURITY.md).

## Development

```bash
npm ci
npm test
npm run lint
npm run lint:migrations
npm pack --dry-run
```

Architecture and operations details live in [docs/architecture.en.md](docs/architecture.en.md) and [docs/operations](docs/operations). Contributions are welcome through [CONTRIBUTING.md](CONTRIBUTING.md).

## License

Copyright 2026 Weasley Open Source.

Licensed under the [Apache License 2.0](LICENSE). See [NOTICE](NOTICE) for attribution information.
ai-memorymcpmodel-context-protocolopen-sourcepgvectorweasley

Lo que la gente pregunta sobre weasley-deepmind

¿Qué es potatohoney-p/weasley-deepmind?

+

potatohoney-p/weasley-deepmind es mcp servers para el ecosistema de Claude AI. Secure, fragment-based long-term memory for MCP-compatible AI agents. Tiene 1 estrellas en GitHub y se actualizó por última vez yesterday.

¿Cómo se instala weasley-deepmind?

+

Puedes instalar weasley-deepmind clonando el repositorio (https://github.com/potatohoney-p/weasley-deepmind) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar potatohoney-p/weasley-deepmind?

+

potatohoney-p/weasley-deepmind aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.

¿Quién mantiene potatohoney-p/weasley-deepmind?

+

potatohoney-p/weasley-deepmind es mantenido por potatohoney-p. La última actividad registrada en GitHub es de yesterday, con 0 issues abiertos.

¿Hay alternativas a weasley-deepmind?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega weasley-deepmind en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: potatohoney-p/weasley-deepmind
[![Featured on ClaudeWave](https://claudewave.com/api/badge/potatohoney-p-weasley-deepmind)](https://claudewave.com/repo/potatohoney-p-weasley-deepmind)
<a href="https://claudewave.com/repo/potatohoney-p-weasley-deepmind"><img src="https://claudewave.com/api/badge/potatohoney-p-weasley-deepmind" alt="Featured on ClaudeWave: potatohoney-p/weasley-deepmind" width="320" height="64" /></a>

Más MCP Servers

Alternativas a weasley-deepmind