MemCore logo

MemCore

by ManuelWarland

Shared local SQLite memory for AI coding tools, with MCP access, FTS5 search, audit history, and optional semantic retrieval.

Install MemCore

Run the project’s own setup commands, in order.

Setup steps from the project

ManuelWarland/MemCore installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/ManuelWarland/MemCore.git
    
  2. 2. Configure
    python scripts/memcore.py init          # creates the database
    
  3. 3. Install
    pip install -r requirements-semantic.txt
    

Overview

ManuelWarland/MemCore provides a shared long-term memory store for AI coding assistants through one local SQLite database. It exposes search, writing, history, auditing, archiving, health, and statistics over MCP, while also supporting a CLI, JSON bridge, and direct SQLite access. Full-text search works without extra dependencies, while optional multilingual semantic search uses sqlite-vec and fastembed. Reach for it when multiple agents need durable, cross-project facts without a daemon, cloud service, or automatic session capture.

Use cases

  • Share coding decisions across AI assistants and projects
  • Search previously recorded corrections before proposing an approach
  • Review recent work and unresolved state when reopening a session
  • Audit, restore, or inspect earlier versions of stored entries

Key features

  • Local SQLite storage shared across clients
  • FTS5 search with AND-to-OR fallback
  • Optional multilingual semantic search
  • Append-only audit events and version history
  • Optimistic locking and reversible archiving
  • Server-enforced read-only and scope restrictions

Tools11

What MemCore lets your agent do. Expand a tool for its parameters.

Self-reported~198 tokens of context

Security & health

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

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 38d

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
Last commit19d agoMost recent push to the default branch.
Tools exposed11Callable tools this server registers over MCP.

How MemCore works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about MemCore

ManuelWarland/MemCore is an MCP server that connects AI coding assistants to one shared local SQLite memory database. Its main tools search, write, retrieve, list, archive, audit, inspect history, report statistics, and run health checks, allowing durable facts to move across projects and client applications.

Clone the repository, initialize its database, and run the health check with the included Python CLI. The MCP server requires the official MCP SDK installed with `pip install "mcp>=2,<3"`; the CLI and importers use Python 3.11 or newer standard-library components.

Yes, semantic search is optional. Install sqlite-vec and fastembed to blend FTS5 results with vector nearest-neighbour retrieval using a multilingual sentence model. Without those packages, MemCore uses lexical FTS5 search only.

Pass `expected_updated_at` to `memory_write` to enable optimistic locking. If another writer changed the entry first, MemCore reports a conflict rather than silently replacing the newer version, and the event is recorded in the append-only audit log.

Yes, it can be used with Cursor through MCP. The server is designed for MCP-speaking tools and uses a local SQLite database, while read-only mode and scope restrictions can constrain each connection.

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 PreviewMemCore AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/manuelwarland-memcore?style=directory)](https://allmcps.com/mcp/manuelwarland-memcore)
HTML Embed
<a href="https://allmcps.com/mcp/manuelwarland-memcore"><img src="https://allmcps.com/api/badge/manuelwarland-memcore?style=directory" alt="MemCore on AllMCPs" /></a>