Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Provides persistent memory for AI assistants via MCP, enabling them to store and recall facts, preferences, and tasks across conversations using either local file storage or a cloud backend with semantic search.

README.md

@lakehouse/memory-mcp

Persistent memory for AI assistants via Model Context Protocol (MCP).

Give your AI assistant a memory that persists across conversations. Works with Claude Code, Claude Desktop, Cursor, Windsurf, and any MCP-compatible client.

Features

  • Remember - Store facts, preferences, tasks, and context
  • Recall - Semantic search to find relevant memories
  • Forget - Remove outdated information
  • Two modes:
  • Lakehouse42 (recommended) - Full semantic search, deduplication, knowledge graph
  • Local - Simple file-based storage with keyword search

Quick Start

Claude Code

Add to ~/.claude/claude_code_config.json:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["@lakehouse/memory-mcp"]
    }
  }
}

That's it! Claude Code now has persistent memory using local storage.

With Lakehouse42 Backend (Recommended)

For full semantic search capabilities, connect to Lakehouse42:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["@lakehouse/memory-mcp"],
      "env": {
        "LH42_URL": "https://api.lakehouse42.com",
        "LH42_API_KEY": "lh42_your_api_key"
      }
    }
  }
}

Get your API key at lakehouse42.com.

Claude Desktop

Add to Claude Desktop's config (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["@lakehouse/memory-mcp"],
      "env": {
        "LH42_URL": "https://api.lakehouse42.com",
        "LH42_API_KEY": "lh42_your_api_key"
      }
    }
  }
}

Cursor / Windsurf

Follow the same pattern - add the MCP server to your client's configuration.

Tools

remember

Store a memory for later recall.

Remember that the user prefers dark mode

Parameters:

  • content (required) - The information to remember
  • type - fact, preference, task, event, context, reflection
  • importance - 0.0 to 1.0 (default: 0.5)

recall

Search memories by semantic similarity.

What are the user's preferences?

Parameters:

  • query (required) - What to search for
  • limit - Max results (default: 5)
  • types - Filter by memory types

forget

Delete a memory by ID.

Parameters:

  • memoryId (required) - ID of memory to delete
  • reason - Reason for deletion

list_memories

List recent memories.

Parameters:

  • limit - Max results (default: 10)

memory_status

Check memory system status and backend info.

Local vs Lakehouse42

| Feature | Local | Lakehouse42 | |---------|-------|-------------| | Persistence | ✅ JSON file | ✅ Cloud | | Search | Keyword matching | Semantic (AI-powered) | | Deduplication | ❌ | ✅ 3-tier | | Knowledge graph | ❌ | ✅ Entity relationships | | History tracking | ❌ | ✅ Full audit trail | | Multi-device sync | ❌ | ✅ |

Environment Variables

| Variable | Description | |----------|-------------| | LH42_URL | Lakehouse42 API URL (enables LH42 backend) | | LH42_API_KEY | API key for authentication | | DEBUG | Enable debug logging (true/false) |

Programmatic Usage

import { createMemoryServer, LH42Backend } from "@lakehouse/memory-mcp";

// Create server with custom config
const server = await createMemoryServer({
  lh42Url: "https://api.lakehouse42.com",
  apiKey: "lh42_xxx",
  debug: true,
});

// Or use backends directly
const backend = new LH42Backend({
  url: "https://api.lakehouse42.com",
  apiKey: "lh42_xxx",
});

await backend.initialize();
await backend.remember({ content: "User likes TypeScript" });
const results = await backend.recall({ query: "programming preferences" });

Privacy

  • Local mode: All data stored in ~/.lakehouse42/memory-mcp/memories.json
  • Lakehouse42 mode: Data stored securely in your Lakehouse42 account
  • No data is sent to third parties
  • You control your memories

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Vector & Memory servers.