Memory LibSQL
🧠 High-performance persistent memory system for Model Context Protocol (MCP) powered by libSQL. Features vector search, semantic knowledge storage, and efficient relationship management - perfect for AI agents and knowledge graph applications.
What is Memory LibSQL?
Memory LibSQL is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🧠 high-performance persistent memory system for model context protocol (mcp) powered by libsql. features vector search, semantic knowledge storage, and efficient relationship management - perfect for...
🧠 High-performance persistent memory system for Model Context Protocol (MCP) powered by libSQL. Features vector search, semantic knowledge storage, and efficient relationship management - perfect for AI agents and knowledge graph applications.
This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 🧠 High-performance persistent memory system for Model Contex
Use Cases
Maintainer
Works with
Installation
NPM
npx -y mcp-memory-libsqlManual Installation
npx -y mcp-memory-libsqlConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Memory LibSQL
mcp-memory-libsql is a high-performance persistent memory system for AI agents built on libSQL, the open-source SQLite-compatible database. It stores entities and their relationships in a local or remote libSQL/Turso database, enabling semantic search and knowledge-graph style retrieval across sessions. Developers use it to give Claude and other MCP-compatible assistants long-term, structured memory that survives conversation restarts.
Prerequisites
- Node.js 18 or later installed
- An MCP-compatible client such as Claude Desktop or Claude Code
- A libSQL database URL — either a local file path (e.g. file:/path/to/db.db) or a remote Turso URL (libsql://your-db.turso.io)
- A Turso auth token if using a remote database (LIBSQL_AUTH_TOKEN)
Decide on a database backend
Choose between a local SQLite-compatible file (no account needed) or a remote Turso cloud database. For local use, any file path works. For remote use, create a free Turso account at turso.tech, create a database, and copy the connection URL and auth token.
Add the server to your MCP client config
Open your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS) and add the mcp-memory-libsql entry under mcpServers. Set LIBSQL_URL to your database path. LIBSQL_AUTH_TOKEN is only required for remote Turso databases.
{
"mcpServers": {
"memory-libsql": {
"command": "npx",
"args": ["-y", "mcp-memory-libsql"],
"env": {
"LIBSQL_URL": "file:/Users/yourname/.mcp-memory/memory.db"
}
}
}
}Restart your MCP client
Quit and reopen Claude Desktop (or reload your editor) so it picks up the new server configuration. The database file will be created automatically on first use if it does not exist.
Store your first entities
Ask Claude to remember facts about you or a project. The server's entity-management tools will create nodes and observations in the libSQL database, ready for later retrieval.
Query stored knowledge
Use natural language to retrieve previously stored facts. The server supports text-based relevance search across entities, making it easy to ask Claude what it already knows about a topic.
Memory LibSQL Examples
Client configuration
Local database configuration for Claude Desktop. Swap the LIBSQL_URL and add LIBSQL_AUTH_TOKEN for a remote Turso database.
{
"mcpServers": {
"memory-libsql": {
"command": "npx",
"args": ["-y", "mcp-memory-libsql"],
"env": {
"LIBSQL_URL": "file:/Users/yourname/.mcp-memory/memory.db"
}
}
}
}Prompts to try
Example prompts that demonstrate the server's entity storage and retrieval capabilities.
- "Remember that my preferred coding style is functional TypeScript with strict null checks."
- "What do you know about my project architecture preferences?"
- "Create an entity for the 'auth-service' and note that it uses JWT tokens and Redis for session caching."
- "Show me everything you know about the entities related to 'auth-service'."
- "Delete all observations about the deprecated 'legacy-api' entity."Troubleshooting Memory LibSQL
Server starts but the database file is not created
Ensure the directory in your LIBSQL_URL path already exists. libSQL will create the .db file but not intermediate directories. Create the parent folder manually before starting the server.
Remote Turso connection fails with 'unauthorized'
Verify that LIBSQL_AUTH_TOKEN is set correctly in the env block of your config. Tokens can be generated or rotated in the Turso dashboard under Database > Tokens.
npx cannot find the package or hangs on first run
Run 'npx -y mcp-memory-libsql' once from a terminal to pre-download the package, then restart your MCP client. This avoids first-launch timeout issues in some client implementations.
Frequently Asked Questions about Memory LibSQL
What is Memory LibSQL?
Memory LibSQL is a Model Context Protocol (MCP) server that 🧠 high-performance persistent memory system for model context protocol (mcp) powered by libsql. features vector search, semantic knowledge storage, and efficient relationship management - perfect for ai agents and knowledge graph applications. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Memory LibSQL?
Install via npm with the command: npx -y mcp-memory-libsql. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Memory LibSQL?
Memory LibSQL works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Memory LibSQL free to use?
Yes, Memory LibSQL is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Memory LibSQL Alternatives — Similar Knowledge & Memory Servers
Looking for alternatives to Memory LibSQL? Here are other popular knowledge & memory servers you can use with Claude, Cursor, and VS Code.
MemPalace
★ 52.6kA local AI memory system that stores all conversations verbatim and organizes them into navigable structures. It provides 19 MCP tools for AI assistants to search and retrieve past decisions, debugging sessions, and architecture debates automatically
Kratos
★ 25.7k🏛️ Memory System for AI Coding Tools - Never explain your codebase again. MCP server with perfect project isolation, 95.8% context accuracy, and the Four Pillars Framework.
Context Mode
★ 15.4kAn MCP server that preserves LLM context by intercepting large data outputs and returning only concise summaries or relevant sections. It enables efficient sandboxed code execution, file processing, and documentation indexing across multiple programm
Memu
★ 13.7kMemory for 24/7 proactive agents like OpenClaw.
MemOS
★ 9.3kMemOS (Memory Operating System) is a memory management operating system designed for AI applications. Its goal is: to enable your AI system to have long-term memory like a human, not only remembering what users have said but also actively invoking, u
Everos
★ 5.4kBuild, evaluate, and integrate long-term memory for self-evolving agents.
Browse More Knowledge & Memory MCP Servers
Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Memory LibSQL in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Memory LibSQL?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.