# ManuelWarland/MemCore [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/ManuelWarland/MemCore  
**GitHub Stars:** 2  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/manuelwarland-memcore

## Description
Long-term memory shared by every AI coding assistant on one machine: a single local SQLite file with FTS5 search and optional multilingual semantic search, no daemon and no cloud, reachable over MCP, a CLI or plain SQLite.

## Tools
Capabilities this server exposes over MCP:

- **memory_search** — Full-text search across all scopes (AND→OR fallback). `debug=true` returns the matched mode + raw queries.
- **memory_write** — Create or update. Pass `expected_updated_at` to guard against concurrent overwrites.
- **memory_get** — One entry.
- **memory_list** — Browse entries without a query — everything in a scope, all of one type, or what's archived.
- **memory_recent** — Most recently modified entries.
- **memory_events** — Read the append-only audit log (writes, conflicts, redactions).
- **memory_history** — Previous versions of an overwritten/deleted entry.
- **memory_archive** — Reversible soft-delete / undelete.
- **memory_scopes** — Scopes + entry counts.
- **memory_stats** — Totals + DB path.
- **memory_healthcheck** — End-to-end self-test on a throwaway entry. Use before trusting a connection — search can misbehave silently while the connection looks up.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/ManuelWarland/MemCore), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/ManuelWarland/MemCore.git
```

2. Configure:

```sh
python scripts/memcore.py init          # creates the database
```

3. Install:

```sh
pip install -r requirements-semantic.txt
```

## Documentation

## What ManuelWarland/MemCore does

ManuelWarland/MemCore stores deliberately selected facts that should survive a conversation, terminal session, project switch, or change of AI tool. Decisions, corrections, implementation notes, and rejected approaches can be written once and retrieved by other assistants using the same machine.

The database is a local SQLite file. MCP clients, the command-line interface, a line-delimited JSON bridge, and direct SQLite users can all work with the same store. Data remains on the machine, with no daemon, cloud dependency, or telemetry described as part of the design.

Memory is organized into scopes and entry types. Entries can be searched across scopes, listed within a scope, reviewed by recency, archived and restored, or inspected through their edit history. Writes are intentional rather than automatically collected from conversations.

## How it works

Lexical retrieval uses SQLite FTS5. A multi-word search first attempts an AND query and then falls back to a ranked OR query, so one unmatched term does not necessarily eliminate useful results. Optional semantic retrieval combines FTS with vector nearest-neighbour search using a multilingual sentence model. That mode requires sqlite-vec and fastembed; without them, the system remains lexical-only.

Writes are protected with optimistic concurrency. A caller can provide the expected update timestamp, and a concurrent change produces a conflict instead of silently replacing newer data. Previous versions remain available after overwrites, while archive operations act as reversible soft deletion.

Each create, update, conflict, refusal, archive, and restore is recorded in an append-only event log with actor, origin, and optional session information. Secret-shaped values such as API keys, tokens, and password lines are redacted during writes and flagged in the audit trail.

## Setup and configuration

The repository can be installed by cloning it and initializing the database with the Python CLI:

```bash
git clone https://github.com/ManuelWarland/MemCore.git
cd MemCore
python scripts/memcore.py init
python scripts/memcore.py healthcheck
```

The CLI, JSON bridge, and importers use Python 3.11 or newer standard-library components. The MCP server uses the official MCP SDK, installed with `pip install "mcp>=2,<3"`.

Run the health check before relying on a connection. It performs an end-to-end test with a temporary entry and can reveal search problems that are not obvious from an apparently connected client. Per-connection restrictions include read-only mode and server-enforced scope locking. Markdown synchronization re-imports files whose modification times changed since the previous run, and files named as credentials are excluded from import.

## Tools and capabilities

The MCP interface includes:

- `memory_search`, with optional debug output for the selected mode and raw queries
- `memory_write`, including expected-timestamp conflict protection
- `memory_get`, `memory_list`, and `memory_recent` for retrieval and browsing
- `memory_events` and `memory_history` for audit and prior versions
- `memory_archive` for reversible deletion and restoration
- `memory_scopes` and `memory_stats` for inventory and database details
- `memory_healthcheck` for connection and search validation

Background embedding handles new and edited entries when semantic search is installed; `embed-backfill` can process existing entries on demand.

## Limitations and notes

MemCore returns stored text and related metadata; it does not determine whether a fact is still true or current. It also does not capture conversations automatically, so an assistant or user must decide what deserves a write. Semantic search is optional and adds dependencies, while lexical search has no such requirement. A plain-files knowledge base can remain the human-editable source of truth, with MemCore serving as a searchable index that does not rewrite those files silently.

_Full upstream README: https://allmcps.com/mcp/manuelwarland-memcore/readme_

