Memory LibSQL

v0.0.17Knowledge & Memorystable

🧠 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.

ai-toolsembeddingsknowledge-graphlibsqlmcp
Share:
84
Stars
0
Downloads
0
Weekly
0/5

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

High-performance persistent memory
Vector search and semantic storage
Knowledge graph and relationship management
spences10

Maintainer

LicenseMIT
Languagetypescript
Versionv0.0.17
UpdatedApr 29, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y mcp-memory-libsql

Manual Installation

npx -y mcp-memory-libsql

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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)
1

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.

2

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"
      }
    }
  }
}
3

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.

4

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.

5

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.

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.

Quick Config Preview

{ "mcpServers": { "mcp-memory-libsql": { "command": "npx", "args": ["-y", "mcp-memory-libsql"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides