# Knowl

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/dat999zx/knowl  
**GitHub Stars:** 112  
**npm Downloads (last month):** 979  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/knowl

## Description
Persistent memory for Claude Code, Cursor and Codex. Facts retire when they change.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "knowl": {
    "command": "npx",
    "args": ["-y","@dat999zx/knowl","serve"]
  }
}
```

## Documentation

## What Knowl does

Knowl is a local persistent-memory system for AI agents working with code, research, and everyday information. It exposes memory operations through the Model Context Protocol and also provides a command-line interface. Agents can read and write knowledge as they work instead of relying only on manually maintained instruction files.

Its central behavior is fact supersession. When a new fact replaces an older one, Knowl retires the earlier record rather than presenting both as current. If the replacement relationship is unclear, it keeps both facts active and provides a `knowl supersede` command for an explicit decision.

## How it works

Running `knowl init` creates a `.knowl/` directory, installs project guidance files, updates `.gitignore`, and registers Knowl with detected agents. The setup also starts warming a local embedding model of approximately 53 MB in the background. If that model is unavailable, keyword search remains available.

Knowl stores its data locally and requires no API key. The package includes native components for SQLite, tree-sitter, and the embedding runtime. Node.js executes the CLI even when another package manager is used to install it.

The server is intended for shared continuity across supported agents. The same memory can be used from separate terminals, allowing one agent to record a change and another to retrieve it later.

## Setup and configuration

Use Node.js 22 or later on macOS, Linux, or Windows. Install the package globally and initialize a project:

```bash
npm install -g @dat999zx/knowl
cd your-project
knowl init
```

The package can also be installed globally with pnpm, Yarn, or Bun, or run directly with `npx @dat999zx/knowl init`. Bun can install the package, but the CLI itself must run under Node.js because of its native components.

Use `knowl init --all` to refresh repositories and already configured machine-wide hosts after an update. Global setup can be created with `knowl init --global <host>`. The initialization process registers detected agents and sets up the project files used to connect them to Knowl.

## Tools and capabilities

- Exposes 28 MCP tools for agent memory workflows.
- Stores persistent knowledge for projects and other use cases.
- Retrieves information through keyword search and local embeddings.
- Retires facts that are superseded by newer information.
- Keeps conflicting facts active when replacement is uncertain.
- Provides the `knowl supersede` command for manual fact resolution.

Knowl is designed for local operation, with no API key required and local data handling. Its main value is continuity across sessions and agents rather than replacing a source-control or project documentation system.

_Full upstream README: https://allmcps.com/mcp/knowl/readme_

