SM

spences10/mcp-memory-libsql

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

87 stars 18 forks 품질 86 트렌드 20MIT

spences10/mcp-memory-libsql은 MCP 서버 후보로 https://github.com/spences10/mcp-memory-libsql.에서 수입되었습니다

개요

spences10/mcp-memory-libsql은 MCP 서버 후보로 https://github.com/spences10/mcp-memory-libsql.에서 수입되었습니다

개요(AI 번역)

고성능, 모형 Context를 위한 지속적인 기억 체계 LLM에 최적화된 텍스트 검색으로 libSQL에 의해 구동되는 Protocol (MCP) context 효율성.

특징

  • 고기능 텍스트 검색 relevance 순위
  • Per Persistent 저장 및 관계
  • ܧ 유연한 텍스트 검색 fuzzy matching
  • LLM 효율 최적화
  • 지식 그래프 관리
  • 로컬 및 원격 libSQL 데이터베이스와 호환
  • 원격 데이터베이스의 안전한 토큰 기반 인증

구성

이 서버는 MCP 구성의 일부로 사용하도록 설계되었습니다. 다음은 다른 환경에 대한 예입니다.

Cline 구성

Cline MCP 설정에 이것을 추가하십시오:

WSL 윤곽을 가진 표창 데스크탑

Claude Desktop에서 이 서버를 설정하는 자세한 가이드 WSL, 참조 MCP Server를 WSL에서 Claude Desktop으로 작업하십시오.

WSL 환경에 대한 Claude Desktop 구성에 이것을 추가하십시오.

데이터베이스 구성

서버는 로컬 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" } } } }