Memory MCP
Local, persistent memory for Claude Desktop and MCP-compatible AI assistants.
A lightweight MCP server that gives your AI durable, searchable memory — entirely on your machine. Built with TypeScript, SQLite + FTS5, and minimal dependencies.
Installation
Requires Node.js 18+
Run this command to automatically configure Claude Desktop:
This will:
Detect your OS (macOS/Windows/Linux)
Configure Claude Desktop with the memory server
Create backup of existing config
Set up platform-appropriate database location
After installation, restart Claude Desktop completely.
Related MCP server: ClaudeKeep
Database Location
Memories are stored locally:
macOS:
~/.claude-memories/memory.dbWindows:
%APPDATA%/claude-memories/memory.dbLinux:
~/.local/share/claude-memories/memory.db
The database is a single portable SQLite file. Back it up by copying the file.
Tools
Tool | Description |
| Store a memory with auto-summarization and entity extraction |
| Search memories with token-aware loading |
| Soft-delete a memory (preserves audit trail) |
Features
FTS5 full-text search (fast, no embeddings needed)
Token budgeting for context-aware responses
Automatic entity extraction and summarization
Soft deletes with provenance tracking
Hybrid relevance scoring (recency + importance + frequency)
Manual Configuration
If auto-setup doesn't work, add to your Claude Desktop config:
Config locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add this to your config (the installer does this automatically):
Environment Variables
Variable | Default | Description |
| Platform-specific | Database file location |
|
| Default memory expiration |
Troubleshooting
Tools not appearing in Claude Desktop?
Restart Claude Desktop completely (quit and reopen)
Verify config file syntax is valid JSON
Check that Node.js 18+ is installed:
node --versionRe-run installer:
npx @whenmoon-afk/memory-mcp
Dependencies
@modelcontextprotocol/sdk- MCP protocol implementationbetter-sqlite3- Fast native SQLite with FTS5
Links
Disclaimer
This project is provided as-is. It is actively maintained but may have breaking changes between minor versions.
License
MIT