MCP Memory Sqlite logo

MCP Memory Sqlite

by @pepk

SQLite-backed MCP knowledge graph with ACID transactions and WAL-based concurrent access for shared agent memory.

Install MCP Memory Sqlite

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": {
    "pepk-mcp-memory-sqlite": {
      "command": "npx",
      "args": [
        "-y",
        "@pepk/mcp-memory-sqlite"
      ],
      "env": {
        "MEMORY_DB_PATH": "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 MEMORY_DB_PATH=YOUR_VALUE_HERE --transport stdio pepk-mcp-memory-sqlite -- npx -y @pepk/mcp-memory-sqlite

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

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

Overview

@pepk/mcp-memory-sqlite provides persistent agent memory through a SQLite-backed knowledge graph with entities, observations, and relations. WAL mode, transaction support, and a five-second busy timeout are designed for concurrent reads and writes from multiple sessions. Use it when several agents or Claude sessions need shared memory without the race conditions associated with an unlocked JSONL file. It exposes the same API shape as @modelcontextprotocol/server-memory and runs over stdio.

Use cases

  • Share project knowledge across concurrent agents
  • Persist user preferences between conversations
  • Model services and dependencies as a knowledge graph
  • Search stored facts by entity or observation content

Key features

  • SQLite persistence with WAL mode
  • ACID transactions for graph updates
  • Concurrent reads and writes across sessions
  • Knowledge graph entity, observation, and relation tools
  • API compatibility with @modelcontextprotocol/server-memory
  • Configurable database path

Tools9

What MCP Memory Sqlite lets your agent do. Expand a tool for its parameters.

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

8/8 checks healthy over the last 31d

What it can do

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

Can delete or modify data · 3Read-only tools · 6
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age308 days
Maintainers1

Observed 2026-11-05 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 14d ago via OSV.dev · @pepk/mcp-memory-sqlite (npm)

Adoption & maintenance

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

GitHub stars4Stargazers on the source repository.
npm downloads682Package downloads in the last 30 days.
Last commit5mo 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 exposed9Callable tools this server registers over MCP.

How MCP Memory Sqlite works

What @pepk/mcp-memory-sqlite does

@pepk/mcp-memory-sqlite stores structured memory in a SQLite database and exposes it through the Model Context Protocol. Its data model is a knowledge graph made up of entities, observations attached to entities, and directed relations between entities.

The package is intended as a drop-in replacement for @modelcontextprotocol/server-memory. It is suitable for shared project context, conversation preferences, agent notes, and other facts that need to persist across sessions. SQLite provides indexed queries and transactional updates instead of relying on an unlocked JSONL file.

How it works

The server uses SQLite in Write-Ahead Logging mode. WAL permits reads while a write is in progress and supports multiple processes accessing the same database. SQLite transactions protect updates, while a five-second busy timeout retries lock contention before reporting an error.

Start the package as an MCP stdio process with npx, or install it locally or globally and invoke the installed command. The configured database path determines where memory is persisted. If no path is configured, the server uses ./memory.db in the package directory.

Setup and configuration

Install the package with npm:

Terminal
npm install @pepk/mcp-memory-sqlite

For a one-off launch, use:

Terminal
npx @pepk/mcp-memory-sqlite

Set MEMORY_DB_PATH to the SQLite file that should contain the graph. A Claude Desktop configuration can launch the server like this:

config.json
{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["@pepk/mcp-memory-sqlite"],
      "env": {
        "MEMORY_DB_PATH": "/path/to/your/memory.db"
      }
    }
  }
}

Claude Code uses the same command and environment setting, with the server entry placed in ~/.claude.json. The package requires Node.js 20 or newer.

Tools and capabilities

Entity operations include create_entities, delete_entities, and open_nodes. Entities have a unique name, an entityType, and a list of observations.

Observation tools are add_observations and delete_observations, allowing facts to be appended to or removed from existing entities. Relations can be created and removed with create_relations and delete_relations; each relation identifies a source, destination, and relation type.

For retrieval, read_graph returns the complete graph and search_nodes searches entity names, types, and observation content. These operations support use cases such as looking up project components, retrieving user preferences, or finding facts related to a topic.

Limitations and notes

The database is not encrypted at rest. Avoid storing API keys, passwords, or personally identifiable information that requires encryption. Protect the SQLite file and its containing directory with restrictive filesystem permissions.

Use a local filesystem for MEMORY_DB_PATH; network drives can cause locking problems. If a process holds a write lock longer than the five-second timeout, the server can report a database-locked error. Multiple Claude Desktop windows can share one database, with WAL handling concurrent access.

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

@pepk/mcp-memory-sqlite is an MCP server that connects AI clients to a SQLite-backed knowledge graph for persistent shared memory. Its main tools create, open, search, and delete entities, observations, and relations, while WAL mode and transactions support concurrent access from multiple sessions.

Install it with `npm install @pepk/mcp-memory-sqlite`, or run it directly with `npx @pepk/mcp-memory-sqlite`. Configure the command as an MCP stdio server and set `MEMORY_DB_PATH` to choose the SQLite database file.

Set the `MEMORY_DB_PATH` environment variable to the desired SQLite file path. Without that variable, the server uses `./memory.db` in the package directory.

Yes, multiple Claude sessions can use the same database. SQLite WAL mode supports concurrent reads and coordinates writes, while transactions protect updates from data loss caused by simultaneous access.

No, the database is not encrypted at rest. Store the file with restrictive permissions and avoid putting API keys, passwords, or sensitive personal information in the graph.

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