Labsco
joleyline logo

MCP Memory libSQL

β˜… 24

from joleyline

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

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeNeeds API keys

mcp-memory-libsql

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.

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

API

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
  • 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 and embeddings
  • Relations table: Stores relationships between entities
  • Vector search capabilities implemented using libSQL's built-in vector operations

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