Feedback

libSQL Database MCP Server

@xexr Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
xexr
Submitted by
Community
Quality
40
Stars
21

About libSQL Database MCP Server

libSQL Database enables secure operations on libSQL and SQLite databases. Compatible with popular SQLite browser tools for easy management.

libSQL Database is a MCP server in the Databases category listed in the AddMCP.net directory, published by xexr. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 21 GitHub stars. Source code is hosted on github.com. Related topics: ai-tools, claude, community, database, databases.

Setup

{
    "mcpServers": {
        "mcp-libsql": {
            "command": "npx",
            "args": [
                "-y",
                "@xexr/mcp-libsql"
            ],
            "env": {
                "LIBSQL_AUTH_TOKEN": "your-turso-auth-token-here"
            }
        }
    }
}

libSQL Database MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mcp-libsql": {
            "command": "npx",
            "args": [
                "-y",
                "@xexr/mcp-libsql"
            ],
            "env": {
                "LIBSQL_AUTH_TOKEN": "your-turso-auth-token-here"
            }
        }
    }
}

libSQL Database MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is libSQL Database?

MCP libSQL by xexr is a Model Context Protocol server for libSQL database operations. It provides secure database access through Claude Desktop, Claude Code, Cursor, and other MCP-compatible clients. Runs on Node, written in TypeScript.

How to use libSQL Database?

Install globally via pnpm install -g @xexr/mcp-libsql. Test locally with mcp-libsql --url file:///tmp/test.db --log-mode console. Then configure the MCP server in your client using the command mcp-libsql with arguments --url and the database URL. Supports file (file://), HTTP, and Turso (libsql://) databases. Authentication is provided via the LIBSQL_AUTH_TOKEN environment variable or the --auth-token CLI parameter.

Key features of libSQL Database

  • 6 core tools: read-query, write-query, create-table, alter-table, list-tables, describe-table
  • Multi-layer SQL injection prevention with 67 security tests
  • Connection pooling with health monitoring and automatic retry
  • Transaction support with automatic rollback on errors
  • Comprehensive audit logging for security compliance
  • Beautiful table formatting with performance metrics

Use cases of libSQL Database

  • Managing local libSQL databases through an AI assistant
  • Connecting Claude Desktop to a Turso cloud database
  • Securely executing SQL queries with transaction support
  • Inspecting database schema and browsing metadata
  • Integrating libSQL operations into MCP-compatible workflows

Frequently asked questions

1 What are the prerequisites?

Node.js 20+, pnpm (or npm), a libSQL database (file-based or remote), and Claude Desktop for MCP integration.

2 How do I authenticate with Turso?

Use the LIBSQL_AUTH_TOKEN environment variable or the --auth-token CLI parameter when starting the server. Environment variables are safer.

3 What logging modes are available?

--log-mode accepts: file (default), console, both, or none. Console mode is useful for development debugging.

4 How is security implemented?

Multi-layer SQL injection prevention with 67 security tests, connection pooling with health monitoring, automatic retry logic, and comprehensive audit logging.

5 Which platforms are supported?

macOS, Linux, and Windows (using WSL2). Use native Node.js installations on macOS/Linux, WSL2 with Node.js on Windows.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬