XM

xexr/mcp-libsql

Developer tools

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

21 stars 5 forks 品質 82 トレンド 8MIT

LibSQLデータベース用のセキュアなMCPサーバーで、包括的なツール、接続プール、トランザクションサポートを利用できます。 Claudeデスクトップ、Claudeコード、CursorなどのMCPクライアント用のTypeScriptで構築されています.

概要

LibSQLデータベース操作用のモデルコンテキストプロトコル(MCP)サーバー、Claude Desktop、Claude Code、Cursor、その他のMCP互換クライアントによる安全なデータベースアクセスを提供します。 3. Node.js パスとデータベース URL を使って (下記の設定例を参照) ✅ - すべての6コアツールが実装し、テスト ✅ - すべてのインジェクションベクターをカバーする67のセキュリティテスト ✅ - 244合計テスト(177ユニット+ 67セキュリティ)100%パスレート ✅ - MCPクライアントでうまく作業 ✅ - 接続再試行、優雅な劣化、および監査ロギング - : 包括的なセキュリティ検証で SELECT クエリを実行します。 : INSERT/UPDATE/DELETE トランザクションサポートによる操作 - : セキュリティー対策でテーブル作成のための DDL 操作 - : 表構造変更 (ADD/RENAME/DROP 操作) - : フィルタリングオプションでデータベースメタデータブラウジング - : 複数の出力フォーマットでテーブルスキーマ検査 - 包括的なセキュリティ検証 - 健康監視と自動再試行ロジック - と...

概要(AI 翻訳)

LibSQLデータベース操作用のモデルコンテキストプロトコル(MCP)サーバー、Claude Desktop、Claude Code、Cursor、その他のMCP互換クライアントによる安全なデータベースアクセスを提供します。

TypeScript で書かれている Node 上で実行する

##************ クイックスタート**

1.インストール:

2.ローカルのテスト:

3.Node.js パスとデータベース URL で Claude Desktop を構成する (下記の設定例を参照してください)

Â̂ m 点

✅完全なデータベース管理機能 - 実装およびテストされたすべての6コアツール ✅包括的なセキュリティ検証 - すべてのインジェクションベクトルをカバーする67のセキュリティテスト ✅標準テストカバレッジ - 244合計テスト(177ユニット+ 67セキュリティ)100%パスレート ✅** 生産展開検証** - MCP クライアントとうまく作業 ✅Robustエラー処理 - 接続再試行、優雅な劣化、および監査ロギング

️️ ️

##対応ツール

  • read-query: 包括的なセキュリティ検証でSELECTクエリを実行
  • write-query:トランザクションサポートによるINSERT/UPDATE/DELETE操作 -create-table:セキュリティ対策でテーブル作成用のDDL操作

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

README

以下は原文 README の抜粋です。原文を見る。

MCP libSQL by xexr

A Model Context Protocol (MCP) server for libSQL database operations, providing secure database access through Claude Desktop, Claude Code, Cursor, and other MCP-compatible clients.

Runs on Node, written in TypeScript

🔧 Quick Start

  1. Install:

    pnpm install -g @xexr/mcp-libsql
    
  2. Test locally:

    mcp-libsql --url file:///tmp/test.db --log-mode console
    
  3. Configure Claude Desktop with your Node.js path and database URL (see configuration examples below)

🚀 Status

✅ Complete database management capabilities - All 6 core tools implemented and tested
✅ Comprehensive security validation - 67 security tests covering all injection vectors
✅ Extensive test coverage - 244 total tests (177 unit + 67 security) with 100% pass rate
✅ Production deployment verified - Successfully working with MCP clients
✅ Robust error handling - Connection retry, graceful degradation, and audit logging

🛠️ Features

Available Tools

  • read-query: Execute SELECT queries with comprehensive security validation
  • write-query: INSERT/UPDATE/DELETE operations with transaction support
  • create-table: DDL operations for table creation with security measures
  • alter-table: Table structure modifications (ADD/RENAME/DROP operations)
  • list-tables: Database metadata browsing with filtering options
  • describe-table: Table schema inspection with multiple output formats

Security & Reliability

  • Multi-layer SQL injection prevention with comprehensive security validation
  • Connection pooling with health monitoring and automatic retry logic
  • Transaction support with automatic rollback on errors
  • Comprehensive audit logging for security compliance

🔐 Security details: See docs/SECURITY.md for comprehensive security features and testing.

Developer Experience

  • Beautiful table formatting with proper alignment and NULL handling
  • Performance metrics displayed for all operations
  • Clear error messages with actionable context
  • Parameterized query support for safe data handling
  • Development mode with enhanced logging and hot reload

📋 Prerequisites

  • Node.js 20+
  • pnpm (or npm) package manager
  • libSQL database (file-based or remote)
  • Claude Desktop (for MCP integration)

Platform Requirements

  • macOS: Native Node.js installation
  • Linux: Native Node.js installation
  • Windows: Native Node.js installation or WSL2 with Node.js installation

🔧 Installation

# Use your package manager of choice, e.g. npm, pnpm, bun etc

# Install globally
pnpm install -g @xexr/mcp-libsql
mcp-libsql -v # check version

# ...or build from the repository
git clone https://github.com/Xexr/mcp-libsql.git
cd mcp-libsql
pnpm install # Install dependencies
pnpm build # Build the project
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "mcp-libsql": { "command": "mcp-libsql", "args": [ "--url", "file:///Users/username/database.db" ] } } }