Sqlite Memory MCP logo

Sqlite Memory MCP

Local SQLite memory for MCP agents with WAL concurrency, hybrid search, sessions, tasks, provenance, and optional bridge sync.

Install Sqlite Memory MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sqlite-memory-mcp": {
      "command": "uvx",
      "args": [
        "PyQt6"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio sqlite-memory-mcp -- uvx PyQt6

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx PyQt6

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

sqlite-memory-mcp stores agent memory in a local SQLite knowledge graph designed for concurrent coding-agent sessions. It combines WAL-mode writes, FTS5/BM25 retrieval, optional sqlite-vec semantic search, session snapshots, task management, and provenance tracking. Companion MCP servers extend the core memory tools with sessions, tasks, bridge synchronization, collaboration, entity linking, and multi-agent workflows. Reach for it when agents need persistent, reviewable context without a cloud database or separate database service.

Use cases

  • Persist coding-agent memory across sessions
  • Search project context with keyword and optional semantic retrieval
  • Track tasks and recurring work in SQLite
  • Review and approve candidate facts before canonical promotion
  • Synchronize selected memory across trusted machines

Key features

  • WAL-mode concurrent SQLite access
  • FTS5 BM25 and optional semantic search
  • Session snapshots and task management
  • Provenance-aware memory promotion
  • Cross-project sharing and private bridge sync
  • MCP-compatible knowledge-graph tools

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.

5/5 checks healthy over the last 21d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · PyQt6 (PyPI)

Adoption & maintenance

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

GitHub stars18Stargazers on the source repository.
Last commit10d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How Sqlite Memory MCP works

What sqlite-memory-mcp does

sqlite-memory-mcp provides local-first persistent memory for MCP clients and coding agents. Its data lives in one SQLite file, including entities, observations, relationships, notes, session records, and task data. The core knowledge-graph interface is compatible with the nine tools from @modelcontextprotocol/server-memory, while additional MCP servers cover operational features such as sessions, tasks, collaboration, bridge synchronization, entity linking, and intelligence workflows.

The design emphasizes governed memory rather than unrestricted fact rewriting. Mutations retain provenance, and promotion of a claim to canonical memory can require a one-use operator approval tied to the reviewed claim and its source. Automatically extracted information remains available for review.

How it works

SQLite runs in WAL mode so multiple readers and writers can use the same database file. This supports concurrent sessions while retaining transactional writes and avoiding a separate database process. FTS5 supplies keyword search with BM25 ranking, and an optional sqlite-vec backend can add cosine-similarity results. Reciprocal Rank Fusion combines retrieval results, after which contextual signals such as recency, project affinity, graph proximity, observation richness, canonical status, and active-session relevance can affect ranking.

Projects can scope entities when isolation is needed; leaving the project field unset allows information to be shared across projects. Session snapshots support continuity between restarts, while structured tasks include priorities, sections, due dates, recurring-task data, and typed queries. An optional bridge workflow synchronizes selected graph entities and task, attachment, and extended-memory data between trusted devices through a verified private GitHub repository.

Setup and configuration

The database is represented by a single memory.db file, which can be backed up as a normal file. The implementation uses Python's standard-library sqlite3; fastmcp is the required additional dependency for MCP protocol support. Optional orjson, sqlite-vec, and sentence-transformers packages can improve serialization or enable semantic retrieval.

The server is intended to run without Docker, a separate database service, or API keys. Existing JSONL knowledge graphs can optionally be imported from memory.json during first use. A separate optional HTML report generator can present task data as a Kanban-style overview through GitHub Pages.

Tools and capabilities

  • Store and retrieve entities, observations, and relationships in a SQLite knowledge graph.
  • Search with FTS5/BM25 and optionally combine results with semantic vector retrieval.
  • Track sessions and restore context across agent restarts.
  • Create, query, and manage structured tasks, including recurring tasks and due dates.
  • Share memory across projects or scope it to a project.
  • Record provenance and route candidate knowledge through reviewable promotion.
  • Synchronize authorized memory and task data between trusted machines.
  • Support collaboration and multi-agent debate workflows through companion servers.

Limitations and notes

Semantic retrieval is optional; the FTS5 path remains the primary search backend. Cross-machine synchronization is deliberately restricted to explicitly authorized destinations and selected data. Advanced collaboration, intelligence, and debate workflows are separate optional surfaces alongside the core memory, session, and task servers. The project also separates its open-source runtime from a premium or private-runtime boundary with entitlement and policy checks.

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 Sqlite Memory MCP

sqlite-memory-mcp is an MCP server that connects AI agents to a local SQLite knowledge graph. Its main tools store and search memory, track sessions, manage tasks, and preserve provenance; companion servers add bridge sync, collaboration, entity linking, and multi-agent workflows. FTS5 search is built in, with optional semantic retrieval.

Install the Python MCP dependency `fastmcp`; the server uses Python's built-in `sqlite3` for its database. Optional packages include `orjson`, `sqlite-vec`, and `sentence-transformers`. It runs without Docker, a separate database service, or API keys, and stores data in a single `memory.db` file.

Yes. sqlite-memory-mcp is designed for coding-agent sessions and supports multiple concurrent Claude Code sessions through SQLite WAL mode. Its core knowledge-graph tools are drop-in compatible with `@modelcontextprotocol/server-memory`, and session snapshots preserve context across restarts.

Yes, through an optional bridge-sync workflow. A destination-bound trust policy authorizes selected knowledge-graph entities and transfers task, attachment, and extended-memory data through a verified private GitHub repository. Synchronization is intended for explicitly trusted devices.

Yes, but semantic search is optional. The default retrieval path uses SQLite FTS5 with BM25 ranking; installing and configuring the optional sqlite-vec backend can add cosine-similarity results, which are combined with keyword results through Reciprocal Rank Fusion.

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