MCP server for querying and managing local or remote libSQL databases from compatible AI clients.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Libsql.
The xexr/mcp-libsql MCP server connects MCP-compatible clients to libSQL databases. It supports local database files and remote endpoints, including Turso URLs, through a command-line server written in TypeScript for Node.js.
The server provides six database operations: executing read-only SELECT statements, applying INSERT/UPDATE/DELETE statements, creating tables, changing table structures, listing tables, and inspecting table schemas. Table and query responses can be formatted for readability, including handling for NULL values. Operations also expose performance information and return errors with contextual details.
Start the server with a database URL supplied through the --url option. Examples in the project use file:///tmp/test.db for a local database, an HTTP URL for a remote endpoint, and a libsql:// URL for Turso. MCP clients start the process and communicate with it using their normal server configuration.
For authenticated databases, the server accepts a token through LIBSQL_AUTH_TOKEN or the --auth-token command-line option. The documentation recommends the environment variable because command-line arguments can be visible in process listings. File-based databases do not require a token.
The xexr/mcp-libsql MCP server applies multiple layers of SQL injection validation. Write operations support transactions, with rollback when an operation fails. Connection pooling, health checks, retry behavior, and audit logging are included in the documented reliability and security features.
Node.js 20 or newer and a package manager such as pnpm or npm are required. The documented global installation command is:
After installation, run mcp-libsql with a database URL. The project also supports installation from source by cloning the repository, installing dependencies, building the project, and starting node dist/index.js.
Claude Desktop configuration uses the installed mcp-libsql executable and passes --url in the server's args array. The README includes platform-specific examples for macOS, Linux, and Windows through WSL2. Development mode is available with --dev, and logging can target the console, a file, or both through --log-mode.
read-query.write-query, including transaction support.create-table.alter-table.list-tables requests.describe-table and its supported output formats.The server requires a libSQL-compatible database URL and does not document support for unrelated database engines. Remote credentialed databases need an authentication token, while local file databases can run without one. The README describes Claude Desktop, Claude Code, Cursor, and other MCP-compatible clients; client-specific configuration may differ. Tokens placed in MCP configuration files should be protected from version control, and the project recommends scoped tokens, secret management, and regular rotation for production use.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/xexr-mcp-libsql)<a href="https://allmcps.com/mcp/xexr-mcp-libsql"><img src="https://allmcps.com/api/badge/xexr-mcp-libsql?style=directory" alt="MCP Libsql on AllMCPs" /></a>