Weasley DeepMind logo

Weasley DeepMind

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

Install Weasley DeepMind

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "weasley-deepmind": {
      "command": "npx",
      "args": [
        "-y",
        "weasley-deepmind"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y weasley-deepmind

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 8d ago.

Overview

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · weasley-deepmind (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads183Package downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

Weasley DeepMind

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

Terminal
npm install --global weasley-deepmind

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

server.ts
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:

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

VariablePurposeDefault
DATABASE_URLPostgreSQL connection URLderived from POSTGRES_*
WEASLEY_DEEPMIND_ACCESS_KEYRequired bearer secret for HTTP modenone; HTTP fails closed
WEASLEY_DEEPMIND_AUTH_DISABLEDExplicit loopback-only authentication opt-out; startup rejects non-loopback listenersfalse
WEASLEY_DEEPMIND_AUTO_MIGRATERun migrations before stdio startupfalse (server.json suggests true)
WEASLEY_DEEPMIND_HOMECLI cache and local state directory~/.weasley/deepmind
WEASLEY_DEEPMIND_HOSTHTTP listen address127.0.0.1
PORTHTTP port57332
REDIS_ENABLEDEnable Redis-backed featuresfalse
EMBEDDING_PROVIDERopenai, gemini, ollama, localai, cloudflare, transformers (optional install), or customopenai
EMBEDDING_API_KEYOptional embedding provider secretnone

See .env.example, configuration, and the installation guide 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 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 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.

Development

Terminal
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 and docs/operations. Contributions are welcome through CONTRIBUTING.md.

License

Copyright 2026 Weasley Open Source.

Licensed under the Apache License 2.0. See NOTICE for attribution information.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Weasley DeepMind

Weasley DeepMind is an MCP server that provides self-hosted, fragment-based long-term memory for MCP-compatible AI agents. It stores typed memory fragments, links related evidence, and recalls relevant context without injecting entire conversation histories into prompts. It uses PostgreSQL as its system of record, with optional Redis and external embedding or LLM providers. It supports stdio and…

Install Weasley DeepMind globally with npm, configure PostgreSQL with pgvector, set DATABASE_URL and an HTTP access key, run migrations, and start the server. The documented commands are `npm install --global weasley-deepmind`, `weasley-deepmind migrate`, and `weasley-deepmind serve`.

Weasley DeepMind supports a newline-delimited stdio transport and a Streamable HTTP MCP endpoint. The default HTTP endpoint is `http://127.0.0.1:57332/mcp`; an MCP client can launch `npx -y weasley-deepmind stdio` or connect to the running HTTP endpoint.

HTTP mode requires a configured access key and fails closed when none is set. Clients authenticate with `Authorization: Bearer <WEASLEY_DEEPMIND_ACCESS_KEY>`. Authentication can be disabled only explicitly for local development, and the server rejects that option for non-loopback listeners.

Weasley DeepMind provides memory operations including `remember`, `batch_remember`, `recall`, `forget`, `amend`, `link`, `reflect`, and `context`. Recall merges and ranks keyword, PostgreSQL GIN, graph-neighbor, and optional pgvector search within a token budget; additional tools support statistics, consolidation, graph exploration, history, and trace search.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWeasley DeepMind AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/weasley-deepmind?style=directory)](https://allmcps.com/mcp/weasley-deepmind)
HTML Embed
<a href="https://allmcps.com/mcp/weasley-deepmind"><img src="https://allmcps.com/api/badge/weasley-deepmind?style=directory" alt="Weasley DeepMind on AllMCPs" /></a>