SM

spences10/mcp-memory-libsql

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

87 stars 18 forks 品質 86 トレンド 34MIT

spences10/mcp-memory-libsql は [https://github.com/spences10/mcp-memory-libsql.] からインポートされた MCP サーバーの候補です

概要

spences10/mcp-memory-libsql は [https://github.com/spences10/mcp-memory-libsql.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

モデルコンテキスト用の高性能で永続的なメモリシステム LLM の最適化されたテキスト検索で libSQL によるプロトコル(MCP) コンテキスト効率。

##特徴

  • BACK 関連するランキングで高性能なテキスト検索
  • 💾 企業と関係の持続的なストレージ
  • 一貫性のある柔軟なテキスト検索
  • LLM の効率のために最適化される 確実なコンテキスト
  • 知識グラフ管理
  • ローカルおよびリモート libSQL データベースと互換性がある バックアップ
  • リモートデータベースのセキュアなトークンベースの認証

設定

このサーバは、MCP の設定の一部として利用するように設計されています。 さまざまな環境の一例をご紹介します。

##Cline 設定

Cline MCP の設定に追加します。

Claude デスクトップと WSL の設定

このサーバーをClaudeデスクトップでセットアップするための詳細なガイド WSL, 参照 WSL で Claude デスクトップで動作する MCP サーバーの取得

WSL環境用のClaudeデスクトップ設定に追加します。

データベースの構成

サーバはローカル SQLite とリモート libSQL データベースの両方をサポート LIBSQL URL 環境変数:

ローカル SQLite データベースの場合:

リモートlibSQLデータベース(例、Turso):

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 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.

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
GitHub で README 全文を見る

インストール

npx -y mcp-memory-libsql
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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