MCP Libsql MCP Server

MCP server for libSQL database operations

Local serverstdioTypeScript

What is the MCP Libsql MCP server?

Mcp libsql mcp server lets Claude, Cursor and other MCP clients work with MCP Libsql directly. MCP server for libSQL database operations.

What MCP Libsql does

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.

Tools it exposes

Once connected, the assistant can call these 6 tools directly:

  • 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

Installing the mcp libsql mcp server

The server is distributed via npm as @xexr/mcp-libsql, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

Before the server will start you need to supply one environment variable: LIBSQL_AUTH_TOKEN. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. MCP Libsql sits in that group, and the shape of its toolset — read-query, write-query, create-table among others — tells you what it is really for. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • Maintained by Xexr, written in TypeScript.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the mcp libsql mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
read-queryExecute SELECT queries with comprehensive security validation
write-queryINSERT/UPDATE/DELETE operations with transaction support
create-tableDDL operations for table creation with security measures
alter-tableTable structure modifications (ADD/RENAME/DROP operations)
list-tablesDatabase metadata browsing with filtering options
describe-tableTable schema inspection with multiple output formats

How to install the MCP Libsql MCP server

```json
{
  "mcpServers": {
    "mcp-libsql": {
      "command": "mcp-libsql",
      "args": [
        "--url",
        "libsql://your-database.turso.io"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
LIBSQL_AUTH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use MCP Libsql to read-query.
  • Use MCP Libsql to write-query.
  • Use MCP Libsql to create-table.

Frequently asked questions

It connects MCP Libsql to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (read-query, write-query, create-table, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Libsql directly.