Weasley DeepMind

Registre officiel IA et agents

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

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package weasley-deepmind
Claude Code
claude mcp add weasley-deepmind -e 'DATABASE_URL=<your database_url>' -e 'WEASLEY_DEEPMIND_AUTO_MIGRATE=true' -e 'EMBEDDING_API_KEY=<your embedding_api_key>' -- npx -y weasley-deepmind@1.0.0 stdio
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "weasley-deepmind": {
            "command": "npx",
            "args": [
                "-y",
                "weasley-deepmind@1.0.0",
                "stdio"
            ],
            "env": {
                "DATABASE_URL": "<your database_url>",
                "WEASLEY_DEEPMIND_AUTO_MIGRATE": "true",
                "EMBEDDING_API_KEY": "<your embedding_api_key>"
            }
        }
    }
}

Variables d'environnement

  • DATABASE_URL obligatoire secret PostgreSQL connection URL for a database with pgvector installed.
  • WEASLEY_DEEPMIND_AUTO_MIGRATE Apply pending database migrations before starting the stdio server.
  • EMBEDDING_API_KEY secret Optional embedding provider API key for semantic recall.

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. Weasley DeepMind
  2. Why DeepMind
  3. Requirements
  4. Install from npm
  5. Add it to an MCP client
  6. Run the repository locally
  7. Core flow
  8. Configuration
  9. CLI
  10. Security defaults
  11. Development
  12. License

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

npm install --global weasley-deepmind

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

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:

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

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

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

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

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.

Questions fréquentes

Qu'est-ce que Weasley DeepMind ?

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

Comment installer Weasley DeepMind ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add weasley-deepmind -e 'DATABASE_URL=<your database_url>' -e 'WEASLEY_DEEPMIND_AUTO_MIGRATE=true' -e 'EMBEDDING_API_KEY=<your embedding_api_key>' -- npx -y weasley-deepmind@1.0.0 stdio. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour Weasley DeepMind ?

Oui. Il attend DATABASE_URL, EMBEDDING_API_KEY, à renseigner dans sa configuration.

Weasley DeepMind est-il open source ?

Oui. Son code est sur GitHub sous licence Apache-2.0.

Qui maintient Weasley DeepMind ?

Il est publié par potatohoney-p. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.