MCP libSQL by xexr
@Xexr
About MCP libSQL by xexr
Secure MCP server for libSQL databases with comprehensive tools, connection pooling, and transaction support. Built with TypeScript for Claude Desktop, Claude Code, Cursor, and other MCP clients.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-libsql": {
"command": "node",
"args": [
"dist/index.js",
"-v",
"#",
"check",
"version"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP libSQL by xexr?
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 MCP libSQL by xexr?
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 MCP libSQL by xexr
- 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 MCP libSQL by xexr
- 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
FAQ from MCP libSQL by xexr
What are the prerequisites?
Node.js 20+, pnpm (or npm), a libSQL database (file-based or remote), and Claude Desktop for MCP integration.
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.
What logging modes are available?
--log-mode accepts: file (default), console, both, or none. Console mode is useful for development debugging.
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.
Which platforms are supported?
macOS, Linux, and Windows (using WSL2). Use native Node.js installations on macOS/Linux, WSL2 with Node.js on Windows.
Frequently asked questions
What are the prerequisites?
Node.js 20+, pnpm (or npm), a libSQL database (file-based or remote), and Claude Desktop for MCP integration.
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.
What logging modes are available?
`--log-mode` accepts: `file` (default), `console`, `both`, or `none`. Console mode is useful for development debugging.
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.
Which platforms are supported?
macOS, Linux, and Windows (using WSL2). Use native Node.js installations on macOS/Linux, WSL2 with Node.js on Windows.
Basic information
More Databases MCP servers
PostgreSQL Model Context Protocol (PG-MCP) Server
stuzeroXata MCP Server
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.
MCP Alchemy
runekaagaardA MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.

nuzur
nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi
Neon MCP Server
neondatabase-labsMCP server for interacting with Neon Management API and databases
Comments