MCP Memory libSQL

by joleyline

Not rated
GitHub

About

A persistent memory system for MCP using libSQL, providing vector search and efficient knowledge storage.

Details

Author
joleyline
Categories
Database, AI, Other, Knowledge Base

Setup

Install MCP Memory libSQL in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/joleyline/mcp-memory-libsql

Follow the installation instructions in the repository README, then restart your MCP client.

A high-performance, persistent memory system for the Model Context Protocol (MCP) powered by libSQL. This server provides vector search capabilities and efficient knowledge storage using libSQL as the backing store.

- πŸš€ High-performance vector search using libSQL
- πŸ’Ύ Persistent storage of entities and relations
- πŸ” Semantic search capabilities
- πŸ”„ Knowledge graph management
- 🌐 Compatible with local and remote libSQL databases
- πŸ”’ Secure token-based authentication for remote databases

This server is designed to be used as part of an MCP configuration. Here are examples for different environments:

{ "mcpServers": { "mcp-memory-libsql": { "command": "npx", "args": ["-y", "mcp-memory-libsql"], "env": { "LIBSQL_URL": "file:/path/to/your/database.db" } } } }

For a detailed guide on setting up this server with Claude Desktop in WSL, seeGetting MCP Server Working with Claude Desktop in WSL.

Add this to your Claude Desktop configuration for WSL environments:

{ "mcpServers": { "mcp-memory-libsql": { "command": "wsl.exe", "args": [ "bash", "-c", "source ~/.nvm/nvm.sh && LIBSQL_URL=file:/path/to/database.db /home/username/.nvm/versions/node/v20.12.1/bin/npx mcp-memory-libsql" ] } } }

The server supports both local SQLite and remote libSQL databases through the LIBSQL_URL environment variable:

{ "env": { "LIBSQL_URL": "file:/path/to/database.db" } }

For remote libSQL databases (e.g., Turso):

{ "env": { "LIBSQL_URL": "libsql://your-database.turso.io", "LIBSQL_AUTH_TOKEN": "your-auth-token" } }

Note: When using WSL, ensure the database path uses the Linux filesystem format (e.g.,/home/username/...) rather than Windows format.

By default, if no URL is provided, it will usefile:/memory-tool.dbin the current directory.

The server implements the standard MCP memory interface with additional vector search capabilities:

- Entity Management

- Create/Update entities with embeddings
- Delete entities
- Search entities by similarity

- Create relations between entities
- Delete relations
- Query related entities

The server uses a libSQL database with the following schema:

- Entities table: Stores entity information and embeddings
- Relations table: Stores relationships between entities
- Vector search capabilities implemented using libSQL's built-in vector operations

Due to npm 2FA requirements, publishing needs to be done manually:
- Create a changeset (documents your changes):
- Version the package (updates version and CHANGELOG):
- Publish to npm (will prompt for 2FA code):

Contributions are welcome! Please read our contributing guidelines before submitting pull requests.

MIT License - see theLICENSEfile for details.

- Built on theModel Context Protocol
- Powered by
libSQL

Persistent AI memory server with 3-layer hybrid search, confidence scoring, and 16 tools. Zero LLM dependency.

A desktop application for managing and interacting with the MCP Memory Service, a semantic memory system built on the Model Context Protocol.

A natural language interface for agentic applications to manage and search data in Redis.

MCP-native memory layer for Claude Code, Cursor, Cline, Continue, and 16 other AI tools. Hybrid search (BM25 + pgvector + graph), self-hosted on Supabase + Vercel, 100% MIT, no paywall.

An intelligent memory management server with 14 optimized tools. It provides AI-powered summaries, a clean interface, and supports an optional PostgreSQL database with pgvector.

Provides AI assistants with persistent memory using ChromaDB vector storage.

Long-term memory mcp server with sqlite fts5 full-text search, bm25 ranking, and access tracking. zero config via npx.com

Local semantic search over documents (txt, md, pdf, docx, pptx, csv). Fully offline, multilingual, hybrid vector + keyword search via LanceDB. No API keys, no cloud.

Persistent memory layer for AI agents with semantic search, consolidation, and cross-session intelligence via MCP.

Query and interact with FalkorDB graph databases using AI models.

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.