// may the 4th be with you⚔️
ai-mldatabases

LibSQL Memory

by spences10

LibSQL Memory offers a persistent memory database using LibSQL to store and retrieve knowledge graph entities and relati

Provides a LibSQL-based persistent memory database for storing and retrieving knowledge graph entities and relations across conversations.

github stars

81

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

High-performance text search with rankingWorks with local and remote databasesOptimized for LLM context efficiency

best for

  • / AI assistants that need long-term memory
  • / Building persistent knowledge bases from conversations
  • / LLM applications requiring context continuity
  • / Knowledge graph management for AI systems

capabilities

  • / Store entities and relationships in knowledge graphs
  • / Search stored knowledge with fuzzy text matching
  • / Persist memory across conversation sessions
  • / Connect to local SQLite or remote LibSQL databases
  • / Rank search results by relevance
  • / Manage knowledge graph relationships

what it does

Provides a persistent LibSQL database for storing knowledge graph entities and relationships that persist across AI conversations. Enables AI assistants to remember and build upon previous interactions.

about

LibSQL Memory is a community-built MCP server published by spences10 that provides AI assistants with tools and capabilities via the Model Context Protocol. LibSQL Memory offers a persistent memory database using LibSQL to store and retrieve knowledge graph entities and relati It is categorized under ai ml, databases.

how to install

You can install LibSQL Memory in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

LibSQL Memory is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

mcp-memory-libsql

A high-performance, persistent memory system for the Model Context Protocol (MCP) powered by libSQL with optimized text search for LLM context efficiency.

<a href="https://glama.ai/mcp/servers/22lg4lq768"> <img width="380" height="200" src="https://glama.ai/mcp/servers/22lg4lq768/badge" alt="Glama badge" /> </a>

Features

  • 🚀 High-performance text search with relevance ranking
  • 💾 Persistent storage of entities and relations
  • 🔍 Flexible text search with fuzzy matching
  • 🎯 Context-optimized for LLM efficiency
  • 🔄 Knowledge graph management
  • 🌐 Compatible with local and remote libSQL databases
  • 🔒 Secure token-based authentication for remote databases

Configuration

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

Cline Configuration

Add this to your Cline MCP settings:

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

Claude Desktop with WSL Configuration

For a detailed guide on setting up this server with Claude Desktop in WSL, see Getting 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"
			]
		}
	}
}

Database Configuration

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

For local SQLite databases:

{
	"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 use file:/memory-tool.db in the current directory.

API

The server implements the standard MCP memory interface with optimized text search:

  • Entity Management
    • Create/Update entities with observations
    • Delete entities
    • Search entities by text with relevance ranking
    • Explore entity relationships
  • Relation Management
    • Create relations between entities
    • Delete relations
    • Query related entities

Architecture

The server uses a libSQL database with the following schema:

  • Entities table: Stores entity information with timestamps
  • Observations table: Stores entity observations
  • Relations table: Stores relationships between entities
  • Text search with relevance ranking (name > type > observation)

Development

Publishing

Due to npm 2FA requirements, publishing needs to be done manually:

  1. Create a changeset (documents your changes):
pnpm changeset
  1. Version the package (updates version and CHANGELOG):
pnpm changeset version
  1. Publish to npm (will prompt for 2FA code):
pnpm release

Contributing

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

License

MIT License - see the LICENSE file for details.

Acknowledgments

FAQ

What is the LibSQL Memory MCP server?
LibSQL Memory is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for LibSQL Memory?
This profile displays 37 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.6 out of 5—verify behavior in your own environment before production use.

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
MCP server reviews

Ratings

4.637 reviews
  • Hana Rao· Dec 24, 2024

    We wired LibSQL Memory into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Carlos Abebe· Dec 24, 2024

    According to our notes, LibSQL Memory benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Olivia Robinson· Dec 20, 2024

    LibSQL Memory reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Yusuf White· Dec 20, 2024

    I recommend LibSQL Memory for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Ganesh Mohane· Dec 12, 2024

    Useful MCP listing: LibSQL Memory is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Ren Robinson· Nov 15, 2024

    LibSQL Memory has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Yash Thakker· Nov 11, 2024

    LibSQL Memory reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Aarav Shah· Nov 11, 2024

    Strong directory entry: LibSQL Memory surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Sakshi Patil· Nov 3, 2024

    We evaluated LibSQL Memory against two servers with overlapping tools; this profile had the clearer scope statement.

  • Chaitanya Patil· Oct 22, 2024

    I recommend LibSQL Memory for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

showing 1-10 of 37

1 / 4