FactMem logo

FactMem

Local SQLite memory for MCP agents, combining event logs, durable facts, entity relationships, and optional semantic search.

Install FactMem

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": {
    "factmem": {
      "command": "npx",
      "args": [
        "-y",
        "@facthouse/mcp"
      ],
      "env": {
        "FACTHOUSE_DATA": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env FACTHOUSE_DATA=YOUR_VALUE_HERE --transport stdio factmem -- npx -y @facthouse/mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 11 tools correctly ().

Overview

FactMem MCP server stores agent activity and durable knowledge in a SQLite database on your machine. It separates raw events, extracted facts, and integrated knowledge, then reconciles duplicates, contradictions, entities, and outdated facts during consolidation. MCP tools support session recall, fact capture, knowledge search, entity lookups, context expansion, and store statistics. Reach for FactMem when an agent needs persistent, inspectable memory without relying on a hosted memory service.

Use cases

  • Record agent messages and tool activity for later review
  • Capture durable preferences, decisions, and project facts
  • Search prior sessions after context compaction
  • Inspect entities, relationships, and knowledge coverage
  • Consolidate transcript events into reconciled knowledge

Key features

  • Local SQLite storage
  • Event and fact capture
  • Entity graph with relationship traversal
  • Duplicate and contradiction reconciliation
  • Optional semantic search
  • Session briefing resources

Tools11

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

Verified live~4.4k 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.

17/17 checks healthy over the last 89d

What it can do

From the 11 tools this server returned when we ran it.

Handles credentials · 1Makes network requests · 2Read-only tools · 11
Tool definitions changed on 2026-12-02. Review them if you approved this server earlier.
Network at startup3 connections
Files written at startup3
Install scriptsprepare
npm provenanceSigned build
Package age89 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · @facthouse/mcp (npm)

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
npm downloads2.9kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed11Callable tools this server registers over MCP.

How FactMem works

What FactMem does

FactMem provides local memory for AI tools through MCP. Its primary store is a SQLite file that remains under the operator’s control. The system records two related kinds of information: raw activity such as messages, tool calls, results, and artifacts; and durable facts that should remain useful across sessions.

Knowledge passes through three stages. Data contains session events, Information contains newly extracted or explicitly captured facts, and Knowledge contains integrated beliefs. Integration assigns domains, resolves entities, identifies duplicates, reconciles conflicts, and supersedes outdated facts. Historical facts are retained rather than deleted.

How it works

Events can arrive by copying supported session transcripts or by having an MCP client call log_event and capture_fact. Transcript extraction turns raw lines into candidate facts, while capture_fact stores a fact directly without waiting for extraction. consolidate combines copying, extraction, and integration in one operation.

Extraction processes the oldest unexamined lines first and is limited to 50 lines per call unless the caller requests the full backlog. Consolidation may also create embeddings for currently true facts when semantic search is enabled. Keyword search remains available without embeddings; meaning-based matches require an embedding model and coverage of the relevant facts.

The server can provide a briefing through the memory://briefing resource or through get_session_context for clients that do not load MCP resources. A profile resource is also available. Hooks can notify the running process about events such as compaction, but hooks do not call MCP tools directly.

Setup and configuration

FactMem requires Node.js 22.5 or Node.js 24 or newer. Start it with the package runner, then initialize a store:

Terminal
npx -y @facthouse/mcp
facthouse init

Initialization can use a terminal flow or facthouse init --web, which prints a localhost URL for browser-based setup. The setup process can configure transcript copying or assistant-recorded facts, and it prints an MCP configuration snippet after creating the store. The default store is under ~/.facthouse; set FACTHOUSE_DATA to use another absolute path.

The default intelligence path uses the Claude Code CLI and an existing subscription. Without a language-model provider, the built-in fallback can store directly captured facts but does not extract facts from transcripts.

Tools and capabilities

  • log_event records raw conversational or tool activity.
  • get_events retrieves current or previous session events in sequence order.
  • capture_fact stores a durable fact for later consolidation.
  • get_session_context returns the working briefing and newly captured facts.
  • consolidate extracts and integrates pending information.
  • search_knowledge finds reconciled facts, pending captures, or relevant raw episodes.
  • get_entity gathers facts and relationships for a named subject.
  • get_context expands from a topic through related entities for a broader view.
  • get_schemas lists the domains used by the store.
  • get_stats reports fact, entity, domain, extraction, embedding, and storage metrics.

Limitations and notes

Semantic search is off by default and only applies where vectors have been created. Pending facts and raw episodes use keyword matching rather than semantic matching. A fact captured moments ago may therefore be searchable by its exact wording before consolidation, but not by a paraphrase.

Transcript extraction is incremental, and a large backlog can require multiple consolidation calls. Automatic processing depends on the configured client, sources, hooks, and server lifecycle. Closing a client may not trigger the process-exit consolidation step, so an explicit consolidation call can be appropriate before ending a session.

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 FactMem

FactMem is an MCP server that connects AI tools to a local SQLite memory store. Its main tools record events, capture durable facts, consolidate extracted knowledge, search memory, retrieve entities and context, and report store statistics. It is designed for persistent agent memory without a hosted OpenMemory service.

Run the package with Node.js 22.5 or Node.js 24 or newer, then initialize a store with `facthouse init`. The setup flow prints an MCP configuration snippet after writing the store. You can use `facthouse init --web` to configure through a browser form served from localhost.

FactMem stores its primary data in a local SQLite database, using `~/.facthouse` by default. Set `FACTHOUSE_DATA` to an absolute path when you want the database in a different location. The database contains raw session events, pending facts, and integrated knowledge.

Yes, FactMem works with Cursor through MCP. Cursor consumes the tools, including `search_knowledge` and `get_entity`, but does not load the memory resources in the same way as clients that automatically fetch resources. Call `get_session_context` at the start of a session to obtain the briefing.

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